2009/6/30 tomcatastrophe <nabble@xxxxxxxxxxxxxxxx>: > Now I want to add URL rewriting for one of my hosts. > > I added my rules and directive to the virtual host (these work fine on > Linux): > > ProxyPreserveHost On > ProxyPassReverse / ajp://localhost:8009/ > RewriteEngine On > RewriteRule ^/(.*)$ ajp://localhost:8009/$1 [P] > > But when trying to start Apache after doing this I get an error that the > service failed to start. You don't want to use mod_rewrite for such a simple reverse proxy by mod_proxy. Use the directive ProxyPass instead. You'll need mod_proxy and mod_proxy_ajp (you'll need them as well if you're using mod_rewrite). ProxyPreserveHost On ProxyPass / ajp://localhost:8009/ ProxyPassReverse / ajp://localhost:8009/ > I've read all over about .htaccess files, etc, but I don't have any I thought we're talking about the main server configuration file (httpd.conf) and not a per-directory configuration file?! Bob --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx