顯示包含「NAS」標籤的文章。顯示所有文章
顯示包含「NAS」標籤的文章。顯示所有文章

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

2010年10月17日星期日

QNAP recovery

http://forum.qnap.com/viewtopic.php?f=11&t=2058&p=95650&hilit=raid+1+lost+configuration#p95650

In case of corrupt/lost config:

1. Power off the NAS. Remove the HDD(s)
2. Power on the NAS
3. After a short beep and a long beep, plug the HDD back into the NAS
4. Run QNAP Finder, it will find the NAS, do NOT configure it!
5. Connect to the NAS by telnet port 13131 (e.g. with Putty)
6. Run the following commands to recover with default config

// Use the following commands if using 1 drive

# mount /dev/sda1 /mnt
# cd /mnt/.config/
# cp /etc/default_config/uLinux.conf /mnt/.config/
# reboot

// Use the following command if using 2 drives (not tested)

# mdadm -A /dev/md9 /dev/sda1 /dev/sdb1
# mount /dev/md9 /mnt
# cd /mnt/.config/
# cp /etc/default_config/uLinux.conf /mnt/.config/
# reboot

8. Above procedure will reset the configuration back to default and then you need to reconfigure it. But all the share should be available now.
Please remember NOT to re-initialize the HDD. Since this will format your HDD and all your data will be lost.
9. To be prepared next time this happens, always make sure you have a working backup of your personal uLinux.conf!

FYI: uLinux.conf is the main settings configuration

2010年4月18日星期日

change qnap bt directory

http://forum.qnap.com/viewtopic.php?f=16&t=25939


telnet to qnap nas

vi /etc/smb.conf

find :

/share/Qdownload

change
/share/Qmultimedia/Qdownload