duanhan5230 2019-02-23 12:01
浏览 106

使用apache端口8080在xampp上为zendframework设置virtualhost

I'm beginner for zendframework. Started learning from Zend Tutorial. Able to download zend skeleton application through composer. As I'm using XAMPP (Port 8080), so I prefer to setup VirtualHost for skeleton application. But it didn't work.

My httpd-vhost.conf file contains (Enabled in httpd.conf)

<VirtualHost *:8080>
DocumentRoot "E:\xampp\htdocs\app_zend\skeleton_application\public"
ServerName zf-tutorial.localhost
SetEnv APPLICATION_ENV "development"
<Directory "E:\xampp\htdocs\app_zend\skeleton_application\public">
    DirectoryIndex index.php
    AllowOverride All
    Require all granted
</Directory>

And my host file contains

127.0.0.1 zf-tutorial.localhost localhost

I get following screen when enter http://zf-tutorial.localhost:8080/

Screenshot_object_not_found

Please help me to resolve this. Also I searched similar questions but not found any solution working for me.

Also I created vhost in similar way for my CodeIgniter project. And that works. But for zend its not working.

  • 写回答

1条回答 默认 最新

  • duanbai1027 2019-02-25 14:43
    关注

    Try with VirtualHost *:80

    <VirtualHost *:80>
      DocumentRoot "E:\xampp\htdocs\app_zend\skeleton_application\public"
      ServerName zf-tutorial.localhost
      SetEnv APPLICATION_ENV "development"
      <Directory "E:\xampp\htdocs\app_zend\skeleton_application\public">
          DirectoryIndex index.php
          AllowOverride All
          Require all granted
     </Directory>
    </VirtualHost>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料