标签:配置文件 symlink htm follow http one 报错 php apach
开启apache模块
在apache配置文件
LoadModule rewrite_module modules/mod_rewrite.so前面的#去掉
然后修改 vim /etc/init.d/httpd/conf/httpd.conf
<VirtualHost *:80>
ServerName www.nvyuanshiguang.club
DocumentRoot /var/www/html/jixiaoqin/public
<Directory "/var/www/html/jixiaoqin/public">
Options Indexes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all
</Directory>
</VirtualHost>修改成下方的配置
<VirtualHost *:80>
ServerName www.nvyuanshiguang.club
DocumentRoot /var/www/html/jixiaoqin/public
<Directory "/var/www/html/jixiaoqin/public">
Options Indexes FollowSymLinks
AllowOverride all(none laravel的路由就不好用了,报错url路径页面不在服务器上)
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
标签:配置文件 symlink htm follow http one 报错 php apach
原文地址:http://www.cnblogs.com/jasonxiaoqinde/p/6561956.html