Vhost Zend Framework 配置 MAMP - 重定向到服务器的索引页面 [英] Vhost Zend Framework configuration MAMP - redirected to the index page of the server

查看:25
本文介绍了Vhost Zend Framework 配置 MAMP - 重定向到服务器的索引页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经查看了帖子并对配置文件进行了适当的更改,以使 zend 框架 2 能够在我的本地环境中运行.一切正常,但在指定虚拟主机名称时页面重定向无法正常工作.它向我显示带有目录列表的 MAMP 服务器的主页.这是我到目前为止所做的:

I have checked out the posts and made the appropriate changes to the configuration files to make zend framework 2 to work on my local environment. Everything goes fine but the redirection of the page on specifying the vhost name doesnot work appropriately. It displays me the home page of the MAMP server with the directory listing. Here is what I have done till now:

httpd.conf

<VirtualHost *:80>
    ServerName newportalcopper.localhost
    DocumentRoot /Applications/MAMP/htdocs/NewPortalCopper/public
    SetEnv APPLICATION_ENV "development"
    <Directory /Applications/MAMP/htdocs/NewPortalCopper/public>
        DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

etc/hosts

127.0.0.1   newportalcopper.localhost localhost

有人能告诉我我做错了什么,这个特定的东西不起作用.

Can some one tell me what i am doing wrong that this particular thing is not working.

推荐答案

感谢您查看帖子和指定的帮助.最后,我能够解决问题.主要问题是 MAMP 的端口号.要求是8888而不是80.这个专门解决了我的问题.

Thanks for viewing the post guys and the help specified. At the end i was able to sort the problem out. The main issue was the port number in case of MAMP. It was required to be 8888 instead of 80. This specifically solved my problem.

这篇关于Vhost Zend Framework 配置 MAMP - 重定向到服务器的索引页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆