Virtual hosting in lighttpd?

Posted by lighttpdnewbie on Server Fault See other posts from Server Fault or by lighttpdnewbie
Published on 2012-03-30T21:31:47Z Indexed on 2012/03/30 23:32 UTC
Read the original article Hit count: 157

Filed under:
|

Ok, here it goes... I've seen some other posts dealing with this, but it didn't help that much. I am using windows XP. My problem is with trying to get lighttpd working with virtual hosts. Now, I managed to get everything up and working with the default /htdocs and the default page shows up just fine on the internet, but since I have several sites to host, I need virtual hosting. I managed to do it in apache, so I guessed it would work out just fine in lighttpd, but apparently I'm missing something.

Ok, let's say I have domain (www.)example.org. I want everyone using that url going to the correct index.html, obviously. Let's say that index.html is in directory "websites/website1" placed under the lighttpd dir. (thus, the full path is c:/ProgramsFiles/lighttpd/websites/website1/index.html)

Now: how, exactly, do I set up my virtual host (in the config file)? In detail, please, since I've tried for hours with the vague hints I got from fora and such, but it doesn't work.

Also; is there something additional to do? Change the "server.bind" or get rid of the default server.document-root, or something?

I appreciate all the help you can give! Especially if it's a verbatim/step-by-step solution you're offering! ;-p

Edit: And, yes, my mod_simple_vhost has been enabled.

© Server Fault or respective owner

Related posts about hosting

Related posts about lighttpd