Simple lighttpd Configuration for URL Redirecting
Feb 05
Indeed, I was working on my personal project IPVEE.com and this website is hosted by lighttpd. I wanted it to work like whenever someone type ipvee.com in the web browser, the lighttpd will perform a URL redirect to www.ipvee.com and to accomplish this you can simply copy the configuration below to your lighttpd.conf file: -
$HTTP["host"] =~ "^ipvee\.com$" { url.redirect = ( "^/(.*)" => "http://www.ipvee.com/$1" ) }
$HTTP["host"] == "www.ipvee.com" { server.document-root = "/srv/www/lighttpd/ipvee.com" }
Remember to change the domain name and the server document root. Again, please stay tuned for other of lighttpd configuration post.
If you found these helpful, please contribute to help:
Twitter
Facebook
Flickr
RSS
Recent Comments