2011年2月24日星期四

Add vitrual host in Qnap 209

1. Go to Apache configuration file

/mnt/HDA_ROOT/apache/conf/apache.conf

2. Add below in the bottom of

# Added at 20110225 to share Comic

Options Indexes FollowSymLinks
AllowOverride None

#*************************************8


NameVirtualHost *:80


ServerName host1.myftp.org
ServerAlias host1.myftp.org
DocumentRoot "/share/Qweb"


ServerName host2.myftp.org
ServerAlias host2.myftp.org
DocumentRoot "/share/MD0_DATA/Qmultimedia/xxxxxx"

______________________________________________

For portablewebap

    ServerAdmin support@localhost.com
     ServerName localhost
     DocumentRoot "www/localhost"




    ServerAdmin support@localhost.com
ServerName XXXXXXXXX.myftp.org
    DocumentRoot "H:/XXXXXXX/Comic"

_____________________________________


3. Type " /etc/init.d/Qthttpd.sh restart " to restart server

/etc/init.d/Qthttpd.sh restart