Monday, July 11, 2011

Create virtual host - subdomain in lighttpd

Virtual hosting allows sharing a lighttpd web server so that you can have multiple domains hosted on single web server or on the same IP address. There are two basic methods of accomplishing virtual hosting Name-based and IP-based

We'll configure Lighttpd for name-based virtual hosting :

Let us say your setup is as follows

Public IP address: 111.212.8.8

Domain names: domain1.com and domain2.net

Default Document Root: /home/lighttpd/default/http

Default Document Root for domain1.com: /home/lighttpd/domain1.com/http

Default Document Root for domain2.net: /home/lighttpd/domain2.net/http

First, create required directories:

Create domain1.com virtual host configuration

Create domain2.net virtual host configuration

Read more http://blogmee.info/index.php/create-virtual-host-subdomain-in-lighttpd/

 

1 comment:

  1. Well this is first time i am reading about this concept and great read for me.web hosting provider,

    ReplyDelete