virtual hosts on lighttpd can't load

Posted by Jake on Server Fault See other posts from Server Fault or by Jake
Published on 2012-08-31T14:58:50Z Indexed on 2012/08/31 15:41 UTC
Read the original article Hit count: 190

Filed under:
|
|
|
|

Thats what I did:

  1. Added following code to lighttpd.conf

    $HTTP["host"] =~ "(^|\.)test\.com$" {
        server.document-root = "/home/test"
    }
    
  2. created /home/test

  3. Restarted Lighttpd

but it doesn't load anything

Google chrome Error:

No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this webpage later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

Firefox:

The connection was reset
The connection to the server was reset while the page was loading.
  The site could be temporarily unavailable or too busy. Try again in a few
    moments.
  If you are unable to load any pages, check your computer's network
    connection.
  If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.

can you please explain How can I fix this?

Really Thanks

© Server Fault or respective owner

Related posts about centos

Related posts about webserver