RewriteRule adds literal string "htdocs" into Substitution
am 21.05.2007 05:14:34 von matt wilsonThis configuration is meant to set up a simple proxy. When I hit http://uv,
I want to see the results from the webserver running on http://uv:8080.
I believe this is a standard reverse proxy. Here's the relevant
configuration:
ServerAdmin matt@uv
ServerName uv
Options FollowSymLinks
Order allow,deny
allow from all
RewriteEngine on
RewriteRule (.*) http://uv:8080$1 [P]
LogLevel debug
And here is the error message I get:
Proxy Error
Your browser sent a request that this server could not understand.
The proxy server could not handle the request GET /.
Reason: URI cannot be parsed: http://uv:8080htdocs/
I don't have any directories on my system named htdocs. I have no
idea why "htdocs is getting added to the beginning of every
substitution.
Any ideas?
I'm using apache2 that I installed through Ubuntu's package system.
My DocumentRoot is set to /var/www, and the contents of that dir are:
$ ls /var/www
apache2-default
$ ls /var/www/apache2-default/
apache_pb22_ani.gif apache_pb22.gif apache_pb22.png apache_pb.gif
apache_pb.png index.html
I don't know what to do. Any advice is appreciated.
Matt