Vhost Zend Framework configuration MAMP - redirect

2019-07-29 08:43发布

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条回答
女痞
2楼-- · 2019-07-29 08:58

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.

查看更多
登录 后发表回答