Vhost Zend Framework configuration MAMP - redirected to the index page of the server

孤街醉人 提交于 2019-12-11 05:07:14

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/18715770/vhost-zend-framework-configuration-mamp-redirected-to-the-index-page-of-the-se

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!