On Aug 11, 5:02 am, Davide Bianchi <davideyeahs....RemoveThis@onlyforfun.net>
wrote:
> On 2007-08-11, IamDave <raven....RemoveThis@gmail.com> wrote:
>
> > Okay, I added RewriteLog /etc/apache2/sites-enabled/rewrite_log.txt to
> > the virtual host configuration but nothing has been logged. Does that
> > mean that even though the module is installed it's not activated or
> > something?
>
> If the log file shows up, it means that the module is loaded and the
> directive is read, but the rewrite rule is never applied or reached.
> On the other hand, if the log doesn't even appear, it means that the
> vhost is never initialized. Since your rewrite rule is in the .htaccess
> file, are you sure that file is processed? Do you have an
> AllowOverride in your vhost?
>
> > Where should I go from here?
>
> I suggest you use apachectl configtest to check if there are obvious
> errors in your configuration, then post your configuration so we can
> have a look and maybe spot the error.
>
> Davide
>
> --
> Who's this 'general failure'? And why is he reading my disk??
Okay, I did that and it said the syntax was ok. Also, the log file is
showing up but nothing is being logged in it. I was initially putting
the rewrite stuff in the vhost but I switched to .htaccess to see if
it made a difference. I've gone back to doing it in the vhost now and
below is my configuration:
<VirtualHost *>
ServerAdmin dwill.RemoveThis@ravenflight.net
ServerName
www.ravenflight.net
ServerAlias ravenflight.net
RewriteEngine On
RewriteLog /etc/apache2/sites-enabled/rewrite_log.txt
RewriteRule ^dave\.html$ test.php [R]
DocumentRoot /var/www/ravenflight
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/ravenflight>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see
apache2's
# default start page (in /apache2-default) when you go
to /
#RedirectMatch ^/$ /apache2-default/
</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 /var/log/apache2/ravenflighterror.log
# Possible values include: debug, info, notice, warn, error,
crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/ravenflightaccess.log combined
ServerSignature On
# Alias /doc/ "/usr/share/doc/"
# <Directory "/usr/share/doc/">
# Options Indexes MultiViews FollowSymLinks
# AllowOverride None
# Order deny,allow
# Deny from all
# Allow from 127.0.0.0/255.0.0.0 ::1/128
# </Directory>
</VirtualHost>