LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Zope rewrite problem

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2010, 05:47 AM
telesma telesma is offline
New Member
 
Join Date: Mar 2008
Posts: 4
Default Zope rewrite problem

First, happy new year to you all!

I want to use LSWS in front of Zope and added a virtual host with a rewrite rule and a webserver as an external app.

The rewite rule looks like this:

Code:
RewriteRule ^/(.*) /live/josephheeg/VirtualHostRoot/$1
RewriteCond HTTP_HOST !:
RewriteRule ^(.*) localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/$1 [P,L]
The rule is working fine, but when I hit reload in the browser LSWS hangs... I think it has something to do with the ports in the rewrite rule... When I change the rule to

Code:
RewriteRule ^(.*) localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:8080/$1 [P,L]
the behaviour is fine even with browser reload.

You can have look at it:
Code:
telesma.dyndns.org

Any suggestions would be great!
Frank

ps. I can't post links, so I removed the h t t p : / / from the rules
Reply With Quote
  #2  
Old 01-05-2010, 01:30 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Most browser wont send ":80" in the URL, just strip it. it might be the reason why.
Not something wrong with the rewrite rule, just browser do not want to do what you want and causes looping redirect between web server and browser.
Reply With Quote
  #3  
Old 01-05-2010, 02:36 PM
telesma telesma is offline
New Member
 
Join Date: Mar 2008
Posts: 4
Thank you! Stripped the ":80", but the problem persits.
Reply With Quote
  #4  
Old 01-06-2010, 12:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It wont fix the problem. You should turn on debug logging and rewrite log, and analyze why from the log.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:53 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.