lnmp增加网站后怎么不能访问?
<VirtualHost *:80>ServerAdmin webmaster@example.com
php_admin_value open_basedir "/home/wwwroot/456006.net/mobile:/tmp/:/var/tmp/:/proc/"
DocumentRoot "/home/wwwroot/456006.net/mobile"
ServerName m.456006.net
#ErrorLog "/home/wwwlogs/-error_log"
#CustomLog "/home/wwwlogs/-access_log" combined
<Directory "/home/wwwroot/456006.net/mobile">
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
</Directory>
</VirtualHost>
我apache 2.4中的配置文件怎么没起作用呢?
如果想看下效果可以打开 http://m.456006.net 看看,谢谢! 把php_admin_value open_basedir "/home/wwwroot/456006.net/mobile:/tmp/:/var/tmp/:/proc/" 改成 php_admin_value open_basedir "/home/wwwroot/456006.net:/tmp/:/var/tmp/:/proc/" 重启apache再看看
回复 2# 的帖子
我有一个网站是www.456006.net 我现在是想把移动端的做成二级域名! 原帖由 licess 于 2016-9-5 08:50 发表 https://bbs.vpser.net/images/common/back.gif把php_admin_value open_basedir "/home/wwwroot/456006.net/mobile:/tmp/:/var/tmp/:/proc/" 改成 php_admin_value open_basedir "/home/wwwroot/456006.net:/tmp/:/var/tmp/:/proc/" 重启apache再看看 谢谢,用您的方法解决了问题!
页:
[1]