我正在尝试在Windows 10计算机中设置zend骨架应用程序。但是,由于端口80不可用,因此我尝试在端口8080上进行配置。但是每次我都没有得到zend框架页面时。我只会看到说“有效”的apache页面。请提出我在做什么错。
在apache httpd.conf中,我进行了以下更改:
Listen 8080
ServerName localhost:8080
在httpd-vhosts.conf中:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "${SRVROOT}/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host2.example.com
DocumentRoot "${SRVROOT}/docs/dummy-host2.example.com"
ServerName dummy-host2.example.com
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>
<VirtualHost *:8080>
ServerName zendskeleton.localhost
DocumentRoot C:/zendskeleton/public
SetEnv APPLICATION_ENV "development"
<Directory C:/zendskeleton/public>
DirectoryIndex index.php
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
在Windows主机文件中:
127.0.0.1 zendskeleton.localhost localhost