Thanks, bathory.
Firstly, one obvious possible error ins the use of the term 'mod_rewrite' instead of just 'rewrite'. There in no module 'mod_rewrite' in /etc/apache/mods-available, only 'rewrite' (or, rather 'rewrite.load'). My flawed memory (literally speaking - my head was knocked 18 months ago in a road accident) must have caused me to think that 'mod_rewrite' was the syntactically correct way to refer to the 'rewrite' module.
However fixing that and follwing your suggestion did not solve my problem.
I am going go try to get the rewrite module to work on a Debian Linux 6.00 partition, rather than on a Linux Mint or Ubuntu partition and see if that changes anything. If necessary, I will (try to) debug the C source code.
Quote:
Originally Posted by bathory
Hi,
Try to put the RewriteLog stuff outside a <Directory ..></Directory> part.
|
I have tried that (see APPENDIX 1,), but it didn't work.
Quote:
If you're using vhosts better put RewriteLog directives inside the vhost stanza
Regards
|
By "the vhost stanza", you mean, for example, "<VirtualHost *:80> ...</VirtualHost>"?
I am not using that on my desktop testbed machine.
Appendix 1
This is /etc/apache2/conf.d/testebed2.conf with suggestion of bathory (crudely) applied. It didn't solve the problem. (I commented out "RewriteBase /testbed2/" because apache complained, "RewriteBase: only valid in per-directory config files".)
Code:
Alias /testbed2 /usr/share/testbed2
RewriteEngine on
# RewriteBase /testbed2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ?q=$1 [L,QSA]
RewriteLog "/var/log/apache2/testbed2Rewrite.log"
RewriteLogLevel debug
<Directory /usr/share/testbed2/>
Options +FollowSymLinks
AllowOverride All
order allow,deny
allow from all
</Directory>