VPS侦探论坛

 找回密码
 注册
查看: 3334|回复: 2

安装完成lnmpa后 Apache Nginx 都绑定域名 为什么还是访问默认页面

[复制链接]
发表于 2018-3-12 11:11:05 | 显示全部楼层 |阅读模式

分别在Apache Nginx vhost 下 建立 绑定域名文件 重启 service  httpd/nginx restart 访问还是默认default目录 已更改目录

apache 下 vhost www.yangshengbar.com.conf 内容
<VirtualHost *:80>
ServerAdmin 204251600@qq.com
#php_admin_value open_basedir "/home/wwwroot/default:/tmp/:/var/tmp/:/proc/"
DocumentRoot "/home/wwwroot/yangshengbar"
ServerName www.yangshengbar.com
ErrorLog "/home/wwwlogs/IP-error_log"
CustomLog "/home/wwwlogs/IP-access_log" combined
<Directory "/home/wwwroot/yangshengbar">
           SetOutputFilter DEFLATE
           Options FollowSymLinks
            AllowOverride All
           Order allow,deny
           Allow from all
           DirectoryIndex index.html index.php
</Directory>
</VirtualHost>

不知道可写错? 还是方法错误了
不知道可写错? 还是方法错误了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-3-12 19:34:02 | 显示全部楼层


nginx是前端,80是nginx的,apache是88
不了解的话建议使用 lnmp vhost add 添加配置文件后查看学习
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-3-13 09:36:28 | 显示全部楼层

回复 2# 的帖子


谢谢
我是从lnmp 升级换的 想了解下咱新的配置
我都改成88了 也看配置里 listen88  提醒 80端口
Forbidden

You don't have permission to access / on this server.
Apache Server at www.yangshengbar.com Port 80
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-24 13:19 , Processed in 0.027493 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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