Apache Server configuration support - RewriteRule adds literal string "htdocs" into Substitution

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > May 2007 > RewriteRule adds literal string "htdocs" into Substitution





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RewriteRule adds literal string "htdocs" into Substitution
Matt Wilson

2007-05-21, 1:22 am

This 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:

<VirtualHost *>

ServerAdmin matt@uv

ServerName uv

<Directory / >
Options FollowSymLinks
Order allow,deny
allow from all
RewriteEngine on
RewriteRule (.*) http://uv:8080$1 [P]
</Directory>

LogLevel debug

</VirtualHost>


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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com