VPS侦探论坛

 找回密码
 注册
查看: 5964|回复: 1

[Apache] LNMPA :apache配置87端口的虚拟主机不成功,8080端口则可以,这是为什么?

[复制链接]
发表于 2015-7-9 15:46:32 | 显示全部楼层 |阅读模式

我配置87端口的话,就不成功,如果是配成8080就成功了。vhost里面写的跟88端口的一模一样 。ps命令查看的时候,87已经监听了。
配置文件
Listen 88
Listen 87


Vhost文件
<VirtualHost *:87>
ServerAdmin tlijian1989@gmail.com
#php_admin_value open_basedir "/home/wwwroot/default:/tmp/:/var/tmp/:/proc/"
DocumentRoot "/home/wwwroot/default"
ServerName www.lnmp.org
ErrorLog "/home/wwwlogs/IP-error_log"
CustomLog "/home/wwwlogs/IP-access_log" common
<Directory "/home/wwwroot/default">
    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
发表于 2015-7-9 16:05:54 | 显示全部楼层


你要描述清楚你要外网直接访问?外网直接访问87的话还需要检查你iptables规则,看你端口是否监听到0.0.0.0上
如果你还是通过nginx进行反代,nginx虚拟主机配置里你也要需要修改
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-4-28 01:41 , Processed in 0.031706 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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