虚拟主机在 xampp 中不工作(对本地主机使用不同的端口:7777)

Virtual host not working in xmapp (Using different port for localhost :7777)

我正在使用本地主机端口 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 专辑

这里还需要设置7777端口:

NameVirtualHost *:7777

VirtualHost *:7777