中国真实偷乱视频,东京道一本热中文字幕,久久精品国产99国产精品亚洲,欧美激情一区二区三区在线
標(biāo)題:
[求助]
請(qǐng)教IP加端口訪問(wèn)
[打印本頁(yè)]
作者:
appetrans
時(shí)間:
2013-4-2 13:15
標(biāo)題:
請(qǐng)教IP加端口訪問(wèn)
本帖最后由 appetrans 于 2013-4-2 13:16 編輯
WDCP新建了1個(gè)站點(diǎn)分別是
web\default 80
web\test 81
防火墻增加了81端口訪問(wèn)權(quán)限
通過(guò)http://ip 訪問(wèn)的默認(rèn)站點(diǎn) 沒(méi)有問(wèn)題
但是通過(guò) http://ip:81 訪問(wèn)test站點(diǎn)后,出現(xiàn)的是默認(rèn)站點(diǎn)
嘗試修改過(guò)nginx,apache目錄下的test.com.conf
server {
listen 81;
server_name **.**.**.**;
root /www/web/test/public_html;
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;
error_page 405 /errpage/405.html;
location ~ \.php$ {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
location / {
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1:88;
include naproxy.conf;
}
}
復(fù)制代碼
<VirtualHost *:81>
DocumentRoot /www/web/test/public_html
ServerName
**.**.**.**
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
php_admin_value open_basedir /www/web/test:/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/test>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
復(fù)制代碼
請(qǐng)問(wèn)該如何修改?
作者:
appetrans
時(shí)間:
2013-4-2 13:35
應(yīng)該有其他童鞋也會(huì)遇到IP+端口的訪問(wèn)設(shè)置問(wèn)題吧?
作者:
qq514408389
時(shí)間:
2013-4-2 14:02
http://www.ahbydz.com/bbs/thread-1382-1-2.html
作者:
appetrans
時(shí)間:
2013-4-2 14:26
回復(fù)
3#
qq514408389
謝謝
qq514408389
的回復(fù)
這里只說(shuō)明,如何使用多端口(注意:這個(gè)多端口設(shè)置,目前只支持lamp,lnmp,暫不支持lnamp)
因?yàn)槲野惭b的是lnamp,剛才看完帖子內(nèi)容后,切換到lamp的模式
通過(guò)http://ip:81 訪問(wèn)后,還是原來(lái)默認(rèn)的站點(diǎn)
出現(xiàn)的情況和
christyng
一樣
請(qǐng)求幫助
作者:
appetrans
時(shí)間:
2013-4-2 14:27
我現(xiàn)在切換到lnmp再試試
作者:
qq514408389
時(shí)間:
2013-4-2 15:23
回復(fù)
4#
appetrans
你設(shè)置完之后要重啟下服務(wù)器
歡迎光臨 WDlinux官方論壇 (http://www.ahbydz.com/bbs/)
Powered by Discuz! 7.2