Results 1 to 2 of 2
  1. #1

    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/

  2. #2
    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

  1. Lighttpd PHP Config Problem
    By MetroVPS_Mahfuz in forum VPS Hosting
    Replies: 5
    Last Post: 01-15-2013, 02:50 PM
  2. Replies: 4
    Last Post: 06-10-2012, 11:02 AM
  3. how to add virtual host on lighttpd easily?
    By ivytony in forum Hosting Security and Technology
    Replies: 2
    Last Post: 08-25-2008, 12:25 PM
  4. lighttpd config help...
    By gurika in forum Hosting Security and Technology
    Replies: 1
    Last Post: 10-02-2006, 01:31 PM
  5. lighttpd rewrite config
    By pergesu in forum Hosting Security and Technology
    Replies: 0
    Last Post: 08-26-2005, 03:57 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •