Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.


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
  If you are unable to load any pages, check your computer's network
  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

share|improve this question
The service appears to not be starting properly. Are there any errors in the logs or on the console during the service's start? Can you provide your full configuration? –  Shane Madden Aug 31 '12 at 15:01
I'm sure that lighttpd is running, because I have a wordpress site on server's root, here is my configuration file: pastebin.com/dPyzt0rP Thanks –  Zim3r Aug 31 '12 at 15:25
Oh, my mistake, "connection to the server was reset while the page was loading" tells us that the server stopped the connection midway through the request, after establishing a connection. This points to an error in serving the content - anything interesting in either the lighttpd logs or the server's general logs? –  Shane Madden Aug 31 '12 at 15:27
Insert a line server.errorlog = "/var/log/lighttpd/test.com.error_log" underneath the document-root, then try again and post the error_log here. –  quanta Aug 31 '12 at 15:27
server.errorlog is already set, what the /var/log/lighttpd/error.log say? –  j0k Aug 31 '12 at 15:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.