i'm using zope w/ apache (fast_cgi if that's important) and trying to setup a series of virtual hosts. the virtual hosts themselves work just fine, as to the /image directories i've defined within them, however when i try and hit the virtualhost directly via the url "utilities.mycompany.com" it dumps me into the zope management interface at the root of the folder that i am trying to setup as the root of the virtual host. i'm pretty sure this is due to me screwing up this rewrite rule: RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/utilities.iensemble.com:80/utilit... (that's all one line in the httpd.conf) i generated that based on the blurb the virtualhostmonster i created spat out. is there something obvious i've done wrong here? -- jacob walcik jwalcik@notwithstanding.org
On Wed, 30 May 2001, jacob walcik wrote:
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/utilities.iensemble.com:80/utilit...
I am not sure whether you can rewrite URL to a different posrt. At least, without proxy flag. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
i was under the impression that you could, as long as a valid service was answering on that port. in the VirtualHostMonster i've created, it says: If your Zope is running on port 8080, and you want generated URLs not to include this port number, you must use "/VirtualHostBase/http/www.foo.com:80". i have zope running on 8080, and i'd prefer to not have the port in the url. if i've interpretted this incorrectly, please let me know. i'm rather perplexed by this because the <exact> virtual host definition was working just fine on another machine. if anyone else out there is doing something like this (handling virtual hosting of zope sites by combining apache/mod_rewrite and virtualhostmonsters), could you please post some of your rewrite rules? -- jacob walcik jwalcik@notwithstanding.org On Thu, 31 May 2001, Oleg Broytmann wrote:
On Wed, 30 May 2001, jacob walcik wrote:
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/utilities.iensemble.com:80/utilit...
I am not sure whether you can rewrite URL to a different posrt. At least, without proxy flag.
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Thu, 31 May 2001, jacob walcik wrote:
i was under the impression that you could, as long as a valid service was answering on that port. in the VirtualHostMonster i've created, it says: If your Zope is running on port 8080, and you want generated URLs not to include this port number, you must use "/VirtualHostBase/http/www.foo.com:80".
i have zope running on 8080, and i'd prefer to not have the port in the url. if i've interpretted this incorrectly, please let me know.
No, I meant different problem. You are rewriting from Aapche (running on port 80) to localhost:8080. This AFAIK requires proxy ([P] flag to the RewriteRule).
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/utilities.iensemble.com:80/utilit...
I am not sure whether you can rewrite URL to a different port. At least, without proxy flag.
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
it's still doing the same thing w/ the [P] on the end of the rewrite rule. when i access the virtualhost, i'm prompted to login, then it forwards me to the management screen for "/utilities". i'm almost positive there's something very simple that i've screwed up, i'm just not sure what it is. -- jacob walcik jwalcik@notwithstanding.org On Thu, 31 May 2001, Oleg Broytmann wrote:
On Thu, 31 May 2001, jacob walcik wrote:
i was under the impression that you could, as long as a valid service was answering on that port. in the VirtualHostMonster i've created, it says: If your Zope is running on port 8080, and you want generated URLs not to include this port number, you must use > > "/VirtualHostBase/http/www.foo.com:80".
i have zope running on 8080, and i'd prefer to not have the port in the url. if i've interpretted this incorrectly, please let me know.
No, I meant different problem. You are rewriting from Aapche (running on port 80) to localhost:8080. This AFAIK requires proxy ([P] flag to the RewriteRule).
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/utilities.iensemble.com:80/utilit...
I am not sure whether you can rewrite URL to a different port. At least, without proxy flag.
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
jacob walcik -
Oleg Broytmann