I have an Apache/1.3.29@OpenBSD httpd.conf configured and following VirtualHost and especially RewriteRule is not working (test.example.com goes to ProxyPass rule - see full config).
I guess its error in the config, but I was unable to identify it - with my current (not so big) knowledge - for several days now : (
- Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /var/www/
ServerName test.example.com
ServerAdmin admin@example.com
ErrorLog logs/error_test_log
TransferLog logs/access_test_log
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteRule ^/(.*) http://10.0.0.2:81/$1 [L,P]
RewriteRule ^/(.*) http://www.whatever.com/$1 [L,P]
</IfModule>
CustomLog logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
I even tried the RewriteRule without "/" in regular expession, but no result there. Trying ProxyPass/ProxyPassReverse - no change either.
The whole httpd.conf is here: http://darkarid.ufouni.cz/httpdHELP.conf. Thank you very much in advance!
Paul, Prague