99精品国产综合久久久久五月天,免费观看欧美大片毛片不用播放器 ,AV无码理论片在线观看免费网站,国产精品国产成人国产三级
標(biāo)題:
[求助]
nginx+apache 同一公網(wǎng)IP不同端口訪問站點配置文件的問題
[打印本頁]
作者:
oldband
時間:
2016-4-15 13:20
標(biāo)題:
nginx+apache 同一公網(wǎng)IP不同端口訪問站點配置文件的問題
aliyun centos6.5 64bit
V3完整系統(tǒng)編譯安裝
想要做 ip:80 ip:9999 這么兩個站點
剛裝好V3后默認(rèn)是nginx+apache模式,在[系統(tǒng)設(shè)置]中[web服務(wù)端口]設(shè)置了:80,9999
防火墻中設(shè)置了tcp 9999端口通行
新建站點:
[域名]設(shè)置:localhost
[目錄]設(shè)置:/www/web/goodhappy
[使用端口]選擇9999
創(chuàng)建完站點發(fā)現(xiàn)ip:9999不能訪問,[端口管理]中并未發(fā)現(xiàn)9999這個端口被監(jiān)聽,就去看站點配置文件
nginx的conf文件:
server {
listen 9999;
root /www/web/goodhappy/public_html;
server_name localhost;
index index.html index.php index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location ~ /\.ht {
deny all;
}
location / {
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}
apache的conf文件:
<VirtualHost *:88>
DocumentRoot /www/web/goodhappy/public_html
ServerName localhost
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
php_admin_value open_basedir /www/web/goodhappy:/tmp
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory /www/web/goodhappy>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
如果設(shè)置成單一的nginx模式,端口就沒有問題,設(shè)置成單一apache模式也不能訪問。重啟web服務(wù)也試過依然不能訪問。
apache單一模式下的conf文件:
<VirtualHost *:9999>
DocumentRoot /www/web/goodhappy/public_html
ServerName localhost
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
php_admin_value open_basedir /www/web/goodhappy:/tmp
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory /www/web/goodhappy>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
發(fā)現(xiàn)文件中沒有配置 listen 9999 所以系統(tǒng)根本沒有監(jiān)聽9999
現(xiàn)在問題來了:
1、wdcp在nginx+apache模式時是不是不能設(shè)置同一個IP加上不同端口來分別訪問不同的站點?
2、apache模式、nginx+apache模式在系統(tǒng)中設(shè)置了[web服務(wù)端口]但依然沒有監(jiān)聽這些端口,這是不是一個bug?(nginx模式下沒有問題)
作者:
admin
時間:
2016-4-15 17:09
N+A模式,顯示88是正常的
單A模式,我們檢查下
作者:
oldband
時間:
2016-4-15 18:26
回復(fù)
2#
admin
單A模式是有88端口的,N+A和單A總感覺那里不對,之前一直沒搞定所以一直只用了單N模式。
歡迎光臨 WDlinux官方論壇 (http://fudaan.com/bbs/)
Powered by Discuz! 7.2