VPS侦探论坛

 找回密码
 注册
查看: 4105|回复: 3

lnmp增加网站后怎么不能访问?

[复制链接]
发表于 2016-9-4 15:11:13 | 显示全部楼层 |阅读模式

<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 看看,谢谢!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-9-5 08:50:40 | 显示全部楼层


把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再看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-9-5 10:36:41 | 显示全部楼层

回复 2# 的帖子


我有一个网站是www.456006.net 我现在是想把移动端的做成二级域名!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-9-6 11:13:13 | 显示全部楼层



原帖由 licess 于 2016-9-5 08:50 发表
把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再看看
谢谢,用您的方法解决了问题!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-29 01:16 , Processed in 0.026035 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表