1. 程式人生 > >ubuntu web伺服器配置

ubuntu web伺服器配置

1.安裝Apache
sudo apt-get install apache2

檢視狀態: service apache2 status/start/stop/restart
Web目錄: /var/www
安裝目錄: /etc/apache2/
全域性配置: /etc/apache2/apache2.conf
監聽埠: /etc/apache2/ports.conf
虛擬主機: /etc/apache2/sites-enabled/000-default.conf