VPS侦探论坛

 找回密码
 注册
查看: 4532|回复: 3
打印 上一主题 下一主题

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

[复制链接]
跳转到指定楼层
1#
发表于 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推荐: 遨游主机、Linode、LOCVPS、主机云、搬瓦工、80VPS、Vultr等美国VPS主机。中国VPS推荐: 阿里云、腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
2#
发表于 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
3#
 楼主| 发表于 2016-9-5 10:36:41 | 只看该作者

回复 2# 的帖子


我有一个网站是www.456006.net 我现在是想把移动端的做成二级域名!
美国VPS推荐: 遨游主机、Linode、LOCVPS、主机云、搬瓦工、80VPS、Vultr等美国VPS主机。中国VPS推荐: 阿里云、腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
4#
 楼主| 发表于 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, 2026-9-29 03:14 , Processed in 0.026066 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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