首页 > 解决方案 > 设置 zend 骨架应用程序

问题描述

我正在尝试在我的 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

标签: apachezend-framework

解决方案


推荐阅读