Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an apache server on a linux ubuntu server. I would like to configure a lighttpd server to serve all the static content.

share|improve this question

migrated from Feb 22 '10 at 15:36

This question came from our site for computer enthusiasts and power users.

up vote 0 down vote accepted

This is a very common setup. You'll find many advanced guides through a google search.

But the brief answer to this is both coding related and server configuration related. You'll need to set up lightthd to serve up requests in a similar fashion as the apache server. Then you'll need to set your code to query your images/js/css from the lighttpd server rather than the apache server.

So the apache server responds to and within the source of the webpage requests will go to, and Set up DNS to point those three subdomains to your lighttpd server.

Your DNS entries should do this (Use A records)

  • -> apache server ip
  • -> lighttpd server ip
  • -> lighttpd server ip
  • -> lighttpd ip server
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.