免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2011年3月1日 星期二

Create a new site for Apache in Ubuntu

0. sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mysite
1. gksudo gedit /etc/apache2/sites-available/mysite

examples:
change the DocumentRoot to point to the new location. For example, /home/user/public_html/
change the Directory directive, replace to
change the ErrorLog and CustomLog directives ...

1.0 create folder /home/user/public_html
1.1 cp /var/www/index.html /home/user/public_html/

2. sudo a2dissite default && sudo a2ensite mysite

3. sudo /etc/init.d/apache2 restart



[ref]
https://help.ubuntu.com/community/ApacheMySQLPHP

沒有留言:

張貼留言