Hosting Multiple Websites
Added by cybernet over 16 years ago
I'm using lighttpd on Ubuntu 8.04
what i'm trying to find out is
how to enable vhost on multiple domains
i find this on a tutorial: how to host multiple websites on single lighttpd server
$HTTP["host"] =~ "(^|\.)xxx\.com$" {
server.document-root = "/home/lighttpd/xxx.com/http"
server.errorlog = "/var/log/lighttpd/xxx.com/error.log"
accesslog.filename = "/var/log/lighttpd/xxx.com/access.log"
server.error-handler-404 = "/e404.php"
}
$HTTP["host"] =~ "(^|\.)xxx1\.com$" {
server.document-root = "/home/lighttpd/xxx1.com/http"
server.errorlog = "/var/log/lighttpd/xxx1.com/error.log"
accesslog.filename = "/var/log/lighttpd/xxx1.com/access.log"
server.error-handler-404 = "/e404.php"
}
like this line in lighttpd.conf
- evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/" *1
how should modify *1 so it can be used by these 2 domains ?
something like
i i ask in the browser for sub1.xxx.com
the domain root should be
in /var/www/xxx.com/subs/%3
i'm sorry for my english please post back if you dont understand and i will try to make it more readable
Thank you in advance :D