[Klone-users] configuration for multiple domains

thomas fossati tho at koanlogic.com
Sat Dec 19 14:06:46 EST 2009


Hi Patrick,

On Dec 19, 2009, at 7:15 PM, Patrick wrote:
> I am making my way through the API and I am experimenting with  
> embedding Lua but everything is going well but slowly, we just had a  
> baby girl yesterday so I basically have more important things on the  
> go :-)

congrats on your new baby !!!  Beware, as in software, the hard work  
comes after the release :)

> Does anyone know if it is possible to serve multiple domains? If it  
> was just 2 or 3 I would probably just run multiple instances on  
> different ports but I have about 25 I would like to run . Each  
> domain has very little content.

yes, you can use multiple virtual hosts on the same listening port,  
like this:

server_list     main
...
main
{
     ...
     addr.port       80
     ...

     # default vhost
     dir_root        /path/to/www.mysite.com/

     # applies when Host: www.example.com
     www.example.com
     {
         dir_root        /path/to/www.example.com/
     }

     # applies when Host: www.hello.com
     www.hello.com
     {
         dir_root        /path/to/www.hello.com/
     }
     ...
}

ciao, t.




More information about the Klone-users mailing list