apache - 设置 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
解决方案
推荐阅读
- php - Instagram 故事刮刀
- git - git存储库中的文件被复制或删除并添加
- javascript - 如果 if 语句为真,则在 Vue.js 中隐藏选项卡
- powershell - 如何将 Office 365 Teams Get-Team 和 Get-Teamuser 结果导出到 CSV 文件
- java - 为什么我只能在部署了相同耳朵的三台 Web 服务器中的一台上获得 ConcurrentModificationException
- sql - 将部分代码作为字符串存储在表中,并在运行时作为代码执行
- azure-devops - Azure Boards 自动将问题移至“完成”状态
- django - Kubernetes 部署上的 Django:数据库迁移的最佳实践
- javascript - 超过 1 个模态?
- r - Heroku 部署返回 R10 启动错误