圖書管理系統架好了,接著便想要來個獨立網址...會利用到 apache2 virtual host的功能。
先在DNS中,設定alias. 再至b2d中操作如下:
1. cp /etc/apache2/sites-available/default new_file_name
2. vi /etc/apache2/sites-available/new_file_name
3. Delete the first line in new_file_name and modify the directiory.
4. cd /var/apache2/sits-enable
5. ln -s ../sites-available/new_file_name
6. service apache2 restart
先在DNS中,設定alias. 再至b2d中操作如下:
1. cp /etc/apache2/sites-available/default new_file_name
2. vi /etc/apache2/sites-available/new_file_name
3. Delete the first line in new_file_name and modify the directiory.
4. cd /var/apache2/sits-enable
5. ln -s ../sites-available/new_file_name
6. service apache2 restart
沒有留言:
張貼留言