October 29, 2009
Subdomain with lighttpd
Untuk membuat subdomain pada lighttpd cukup tambahkan script ini ada /etc/lighttpd/lighttpd.conf
$HTTP["host"] =~ "www.mydomain.info" {
$HTTP["host"] =~ "mydomain.info" {server.document-root =
"/home/mydomain/www"server.errorlog =
"/var/log/lighttpd/mydomain.info/error.log"accesslog.filename =
"/var/log/lighttpd/mydomain.info/access.log"}
$HTTP["host"] =~ "www.forums.mydomain.info" {server.document-root =
"/home/mydomain/subdomains/forums"server.errorlog =
"/var/log/lighttpd/forums.mydomain.info/error.log"accesslog.filename =
"/var/log/lighttpd/forums.mydomain.info/access.log"}
setelah itu restart service lighttpd anda, dan coba untuk browse kembali dengan nama subdomain baru.
Comments »
The URI to TrackBack this entry is: http://jeky466.blogsome.com/2009/10/29/subdomain-with-lighttpd/trackback/
yes
RSS feed for comments on this post.
allow a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

