503 Service Unavailable using RewriteRule to

gboudreau

Well-Known Member
#1
some.host.com is a Virtual Host. It has a Web Server External App configured:
- Name: another.host.net
- Address: another.host.net:80
- Max Connections: 50
- Initial Request Timeout (secs): 2
- Retry Timeout (secs): 0
- Response Buffering: No

And it has Rewrite enabled with the following rule:

RewriteRule ^/(.*)$ http://another.host.net/$1 [p]

This works fine when I restart lsws, but after a while, if some.host.com changes IP address, it stops working.
i.e. lsws seems to keep trying to use the previous IP address, and all requests start returning 503.

Is there any way I could force lsws to refresh it's DNS cache for that redirect?

Thanks.
 

NiteWave

Administrator
#2
I think current lsws don't support this feature (dynamic web server) -- one big reason: it'll reduce the performance, since dns take time, if every request do dns lookup, it'll drop the performance greatly.

any other web server support this feature ? apache ?

if IP changes, you have to restart lsws, it'll work again.
 
Top