503 Service Unavailable using RewriteRule to

Discussion in 'General' started by gboudreau, Mar 27, 2014.

  1. gboudreau

    gboudreau Member

    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.
  2. NiteWave

    NiteWave Administrator

    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.

Share This Page