[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] redirection in apache



José Luis Gómez Dans <j.l.gomez-dans [at] sheffield.ac.uk> writes:

> 	Let's say that my zope server is "zope", and that my apache
> server is "www". I want an user to access "zope" through the following
> URL (or similar)
> 	http://www/zope
>
> 	I understand you need mod_rewrite (which will do the mapping 
> from www's zope directory to zope and re-write the headers). Can anyone
> give any hints?

you want something like:

RewriteEngine on
RewriteRule ^/zope/(.*) http://zope/$1

this, will, however, issue an HTTP redirect, that will cause the URL
http://www/zope/foo to appear as http://zope/foo

if you wish to completely hide the fact that the zope stuff is on the
second server, you can also use mod_proxy, to get www to proxy for the
zope server, in which case, you can change the rewriting to:

RewriteEngine on
RewriteRule ^/zope/(.*) http://zope/$1 P

(the P stands for "proxy" unsurprisingly :)


  -Eric
___________________________________________________________________

Sheffield Linux User's Group - http://www.sheflug.co.uk . 
To unsubscribe from this list send mail to 
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.