请教IP加端口访问
[i=s] 本帖最后由 appetrans 于 2013-4-2 13:16 编辑 [/i]WDCP新建了1个站点分别是
web\default 80
web\test 81
防火墙增加了81端口访问权限
通过http://ip 访问的默认站点 没有问题
但是通过 http://ip:81 访问test站点后,出现的是默认站点
尝试修改过nginx,apache目录下的test.com.conf
[code]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;
}
} [/code]
[code]<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> [/code]
[color=#ff0000]请问该如何修改?[/color] 应该有其他童鞋也会遇到IP+端口的访问设置问题吧? [url]http://www.wdlinux.cn/bbs/thread-1382-1-2.html[/url] [b]回复 [url=http://wdlinux.cn/bbs/redirect.php?goto=findpost&pid=21059&ptid=5452]3#[/url] [i]qq514408389[/i] [/b]
谢谢[url=http://wdlinux.cn/bbs/space.php?uid=17597]qq514408389[/url]的回复[quote]这里只说明,如何使用多端口(注意:这个多端口设置,目前只支持lamp,lnmp,暂不支持lnamp)[/quote]因为我安装的是lnamp,刚才看完帖子内容后,切换到lamp的模式
通过http://ip:81 访问后,还是原来默认的站点
出现的情况和[url=http://www.wdlinux.cn/bbs/space.php?uid=9925]christyng[/url] 一样
请求帮助 我现在切换到lnmp再试试 [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=21060&ptid=5452]4#[/url] [i]appetrans[/i] [/b]
你设置完之后要重启下服务器
页:
[1]