Any apache Rewrite experts out there?
I just added zope to my site and have it serve all the public stuff. I want the apache still to serve all the user directories on our server, but I'm having real troubles to set up my httpd.conf to steer www.domain.com/~user to where it belongs while www.domain.com/ is taken to the zope. Currently the public www stuff resides in a folder WWW which is on the zope root. There's one VHM on the zope root also Below is the httpd.conf file as it is now, but it won't rewrite /~user requests right. Any help very much appreciated. jokke h. ---- <VirtualHost my.domain.com> ProxyPass / http://localhost:8080/VirtualHostBase/http/www.domain.com:80/VirtualHostRoot /WWW/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/www.domain.com:80/VirtualHostRoot /WWW/ RewriteEngine On Rewriterule /~(.+) http://users.domain.com/~$1 [R,L] RewriteRule /WWW/.* http://localhost:8080/VirtualHostBase/http/www.domain.com:80/VirtualHostRoot /WWW/ [R] RewriteRule /index.html http://localhost:8080/VirtualHostBase/http/www.domain.com:80/VirtualHostRoot /WWW/ [R] ServerName www.domain.com </VirtualHost>
On Tue, May 07, 2002 at 03:50:44PM +0300, Jokke Heikkil? wrote:
Below is the httpd.conf file as it is now, but it won't rewrite /~user requests right.
RewriteEngine On
Rewriterule /~(.+) http://users.domain.com/~$1 [R,L]
My regexp is "RewriteRule ^/~(.*) -" from http://www.zope.org/Members/mwr/VHosts_With_Zope_Default ; I'd have to look up the details of the differences between your version and mine in a regex book, but it's definitely working for me. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
participants (2)
-
Jokke Heikkilä -
Mike Renfro