Results 1 to 2 of 2
-
09-28-2013, 01:48 AM #1Newbie
- Join Date
- Dec 2010
- Posts
- 7
Need help on Lighttpd Virtual Host Config
Recently i purchased a vps and want to use it as cdn. I wanted to point sub-domains such as
cdn.website1.com
cdn.website2.com
cdn.website3.com
to my vps dedicated ip and create folders such as
/var/www/cdn.website1.com/
/var/www/cdn.website2.com/
/var/www/cdn.website3.com/
so cdn.website1.com will display content from /var/www/cdn.website1.com/ and so on
I enabled vhost using command lighttpd-enable-mod simple-vhost
and editted /etc/lighttpd/conf-available/10-simple-vhost.conf
to
simple-vhost.server-root = "/var"
simple-vhost.document-root = "www"
But when i access cdn.website2.com it still points to content at var/www/ and not from /var/www/cdn.website1.com/
-
09-29-2013, 05:57 AM #2Web Hosting Guru
- Join Date
- Jun 2013
- Location
- Los Angeles
- Posts
- 327
Do you have "default-host" specified? It may not know what domain to direct requests for. Take a look at the help page for lighttpd vhosts: http://redmine.lighttpd.net/projects...ModSimpleVhost
QuadraNet.com™ - Enterprise Dedicated Servers, Cloud Hosting, and Colocation
j.goldman@quadranet.com
Similar Threads
-
Lighttpd PHP Config Problem
By MetroVPS_Mahfuz in forum VPS HostingReplies: 5Last Post: 01-15-2013, 02:50 PM -
place rewrite rules in .htaccess to virtual host config
By kurtk in forum VPS HostingReplies: 4Last Post: 06-10-2012, 11:02 AM -
how to add virtual host on lighttpd easily?
By ivytony in forum Hosting Security and TechnologyReplies: 2Last Post: 08-25-2008, 12:25 PM -
lighttpd config help...
By gurika in forum Hosting Security and TechnologyReplies: 1Last Post: 10-02-2006, 01:31 PM -
lighttpd rewrite config
By pergesu in forum Hosting Security and TechnologyReplies: 0Last Post: 08-26-2005, 03:57 PM