1 |
Hi all, |
2 |
|
3 |
I hope some Apache guru can help me out. I must be missing something |
4 |
very obvious. |
5 |
|
6 |
Assume a default Apache 2.2.17 with all modules installed and -D PROXY |
7 |
-D INFO in /etc/conf.d/apache2. |
8 |
|
9 |
My update to the default VHOST: |
10 |
|
11 |
ForensicLog /var/log/apache2/forensic.log |
12 |
ProxyRequests off |
13 |
RewriteEngine on |
14 |
RewriteLogLevel 9 |
15 |
RewriteLog /var/log/apache2/rewrite.log |
16 |
<VirtualHost *:80> |
17 |
ServerName localhost |
18 |
ServerAdmin root@localhost |
19 |
DocumentRoot "/var/www/localhost/htdocs" |
20 |
<Directory "/var/www/localhost/htdocs"> |
21 |
Options Indexes FollowSymLinks |
22 |
AllowOverride All |
23 |
Order deny,allow |
24 |
Deny from all |
25 |
Allow from 127.0.0.1 |
26 |
</Directory> |
27 |
RewriteRule ^/website$ http://localhost/website/ [T] |
28 |
ProxyPassMatch ^/website/(.*)$ |
29 |
http://localhost:8000/website/$1 |
30 |
</VirtualHost> |
31 |
|
32 |
The ProxyPassMatch fires but (AFAICT) the RewriteRule does not. I.e. |
33 |
http://localhost/website (no slash) ==> 404 (in fact, it's trying to |
34 |
serve /var/www/localhost/htdocs/website) but http://localhost/website |
35 |
(with slash) ==> works. |
36 |
|
37 |
Why does the RewriteRule not run? FYI, rewrite.log is created but |
38 |
stays empty. I don't see any errors or warnings in access.log or |
39 |
error.log. |
40 |
|
41 |
Cheers, |
42 |
Hilco |