首页 >社区问答列表 >PHP工具箱 站点域名管理问题

PHP工具箱 站点域名管理问题

赞助会员专享特权

PHP工具箱 站点域名管理, 设置了80以外其他端口的域名不能打开网页,不设置端口会直接跳转到 hello word 页面,这个是怎么回事?有没有大神知道?

  • 火柴
  • 火柴     2018-07-10 16:52:00 1楼

    <VirtualHost _default_:80>
    DocumentRoot "d:\myphp_www\PHPTutorial\WWW"
      <Directory "d:\myphp_www\PHPTutorial\WWW">
        Options -Indexes -FollowSymLinks +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
      </Directory>
    </VirtualHost>

    <VirtualHost *:80>
        DocumentRoot "D:\myphp_www\PHPTutorial\WWW"
        ServerName www.myphp.com
        ServerAlias myphp.com
      <Directory "D:\myphp_www\PHPTutorial\WWW">
          Options FollowSymLinks ExecCGI
          AllowOverride All
          Order allow,deny
          Allow from all
         Require all granted
      </Directory>
    </VirtualHost>

    <VirtualHost *:8080>
        DocumentRoot "D:\myphp_www\PHPTutorial\WWW\tp5\public"
        ServerName www.mytp5.com
        ServerAlias mytp5.com
      <Directory "D:\myphp_www\PHPTutorial\WWW\tp5\public">
          Options FollowSymLinks ExecCGI
          AllowOverride All
          Order allow,deny
          Allow from all
         Require all granted
      </Directory>
    </VirtualHost>

    <VirtualHost *:82>
        DocumentRoot "D:\myphp_www\PHPTutorial\WWW\demo"
        ServerName www.demo.com
        ServerAlias demo.com
      <Directory "D:\myphp_www\PHPTutorial\WWW\demo">
          Options FollowSymLinks ExecCGI
          AllowOverride All
          Order allow,deny
          Allow from all
         Require all granted
      </Directory>
    </VirtualHost>

    这个文件里也生成了

    +0 添加回复

  • 回复