關鍵解法:
範例:Require all granted
$ sudo apt-get install mysql-client php5 apache2
$ sudo mkdir -p /data/dev
$ sudo vim /etc/apache2/conf-available/dev.conf
Alias /dev /data/dev
<Directory /data/dev>
Options FollowSymLinks
DirectoryIndex index.php
AllowOverride None
Require all granted
</Directory>
$ sudo a2enconf service-dev
$ sudo service apache2 restart
沒有留言:
張貼留言