On Thu, 25 Oct 2012, Gorka wrote:
I've put my .htaccess under /var/www with this lonely line ...
IndexIgnore *
... also there is in /etc/apache2/sites-available/default the following
content ...
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn,
error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
... As you can see, I've already changed AllowOverride from None to All
But .htaccess doesn't seem to work yet. When I point to the url it
lists the
whole content of /var/www
What's the matter? Any idea?
Put what you would have put inside .htaccess inside the appropriate
Directory directive inside the web server's configuration file. Remember
to reload. .htaccess is only for when you don't actually have write
access to the web server's configuration.
Regards,
/Lars