DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-10-05 19:08:05

capitainabloc
Member
Registered: 2011-10-05
Posts: 22

multihosting

Good day all!

I have DNS-323 for couple of years now, and I wonder how to host more than one website on my dns-323?

Is it possible?

thanks for all answer!

Last edited by capitainabloc (2011-10-05 19:08:56)

Offline

 

#2 2011-10-05 19:25:30

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: multihosting

lighttp includes virtual hosting options. Haven't actually tried it but I presume it will work.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#3 2011-10-05 20:11:25

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: multihosting

Works fine. In lighttpd.conf put something like

server.document-root        = "/ffp/www/catchall/"

$HTTP["host"]=~"(^|\.)domain1\.com$" {
    server.document-root = "/ffp/www/domain1.com/"
}

$HTTP["host"]=~"(^|\.)domain2\.com$" {
    server.document-root = "/ffp/www/domain2.com/"
}

Now all accesses for *.domain1.com get /ffp/www/domain1.com as document root, *.domain2.com get /ffp/www/domain2.com, and everything else get /ffp/www/catchall

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB