无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[求助] 请教IP加端口访问

本帖最后由 appetrans 于 2013-4-2 13:16 编辑

WDCP新建了1个站点分别是
web\default       80
web\test   81


防火墙增加了81端口访问权限

通过http://ip 访问的默认站点 没有问题

但是通过 http://ip:81 访问test站点后,出现的是默认站点

尝试修改过nginx,apache目录下的test.com.conf

  1. server {
  2.         listen       81;
  3.         server_name **.**.**.**;
  4.         root /www/web/test/public_html;
  5.         index  index.html index.php index.htm;
  6.         error_page  400 /errpage/400.html;
  7.         error_page  403 /errpage/403.html;
  8.         error_page  404 /errpage/404.html;
  9.         error_page  405 /errpage/405.html;
  10.         location ~ \.php$ {
  11.                 proxy_pass http://127.0.0.1:88;
  12.                 include naproxy.conf;
  13.         }
  14.         location / {
  15.                 try_files $uri @apache;
  16.         }
  17.         location @apache {
  18.                  proxy_pass http://127.0.0.1:88;
  19.                  include naproxy.conf;
  20.         }
  21. }        
复制代码


  1. <VirtualHost *:81>
  2. DocumentRoot /www/web/test/public_html
  3. ServerName
  4. **.**.**.**
  5. ErrorDocument 400 /errpage/400.html
  6. ErrorDocument 403 /errpage/403.html
  7. ErrorDocument 404 /errpage/404.html
  8. ErrorDocument 405 /errpage/405.html
  9. php_admin_value open_basedir /www/web/test:/tmp
  10. <IfModule mod_deflate.c>
  11. DeflateCompressionLevel 7
  12. AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
  13. AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
  14. </IfModule>
  15. </VirtualHost>
  16. <Directory /www/web/test>
  17.     Options FollowSymLinks
  18.     AllowOverride All
  19.     Order allow,deny
  20.     Allow from all
  21. </Directory>      
复制代码



请问该如何修改?

应该有其他童鞋也会遇到IP+端口的访问设置问题吧?

TOP

TOP

回复 3# qq514408389


    谢谢qq514408389的回复
这里只说明,如何使用多端口(注意:这个多端口设置,目前只支持lamp,lnmp,暂不支持lnamp)
因为我安装的是lnamp,刚才看完帖子内容后,切换到lamp的模式
通过http://ip:81 访问后,还是原来默认的站点

出现的情况和christyng 一样


请求帮助

TOP

我现在切换到lnmp再试试

TOP

回复 4# appetrans


    你设置完之后要重启下服务器

TOP

返回列表