【问题标题】:Virtual host not working in xmapp (Using different port for localhost :7777)虚拟主机在 xampp 中不工作(对 localhost 使用不同的端口:7777)
【发布时间】:2016-11-05 16:20:03
【问题描述】:

我正在使用本地主机端口 7777。当我尝试虚拟托管 zend 框架应用程序时。它对我不起作用。任何解释为什么会这样 注意:我在 Windows 10 平台中使用 xampp。如下系统中的文件,我已经更改了它。让知道我做了什么?

F:/xampp/apache/conf/httpd.conf

Listen 7777

F:/xampp/apache/conf/extra/httpd-vhosts.conf

名称虚拟主机 *:80

虚拟主机 *:80

 ServerName album
 DocumentRoot "F:/xampp/htdocs/album/public"
 SetEnv APPLICATION_ENV "development"
 Directory "F:/xampp/htdocs/album/public"
     DirectoryIndex index.php
     AllowOverride All
     Require all granted
 Directory

虚拟主机

c:\windows\system32\drivers\etc\host

127.0.0.1 专辑

【问题讨论】:

    标签: zend-framework2 virtualhost


    【解决方案1】:

    这里还需要设置7777端口:

    NameVirtualHost *:7777
    
    VirtualHost *:7777
    

    【讨论】:

      猜你喜欢
      • 2016-11-27
      • 2013-09-11
      • 2021-06-11
      • 2016-07-19
      • 2014-07-14
      • 2012-06-08
      • 2017-04-16
      • 2015-04-29
      • 2018-09-20
      相关资源
      最近更新 更多