Apache/2.2.14 (Ubuntu) Server at localhost Port 80 解决方法

sudo  gedit /etc/apache2/sites-available/default

修改第11行

1 <VirtualHost *:80>

 2         ServerAdmin webmaster@localhost

 3

 4         DocumentRoot /var/www

 5         <Directory />

 6                 Options FollowSymLinks

 7                 AllowOverride None

 8         </Directory>

 9         <Directory /var/www/>

10                 Options Indexes FollowSymLinks MultiViews

11                 AllowOverride All

12                 Order allow,deny

13                 allow from all

14         </Directory>

保存,关闭之。

重启Apache

sudo service apache2 restart

 

0

扫描到手机上阅读:

QR:  Apache/2.2.14 (Ubuntu) Server at localhost Port 80 解决方法