apache - setup a virtual host for Zend Framework 2 application -
i'm new zend framework 2, , started installing zf2 skeleton shown in page : https://github.com/zendframework/zendskeletonapplication
i'm using easyphp, , want setup virtual host point public/
directory of zf2 project, in httpd-vhosts.conf added following configuration :
<virtualhost *:80> servername zf2-app.localhost documentroot "c:\program files (x86)\easyphp-devserver-14.1vc11\data\localweb\skeleton-application\public" <directory "c:\program files (x86)\easyphp-devserver-14.1vc11\data\localweb\skeleton-application\public"> directoryindex index.php allowoverride order allow,deny allow <ifmodule mod_authz_core.c> require granted </ifmodule> </directory> </virtualhost>
after restarted easyphp , entered http://zf2-app.localhost/
localhost easyphp, in order access zf2 application have access address : http://zf2-app.localhost/skeleton-application/public/
how can solve problem ?
add line hosts file located in:
windows: c:\windows\system32\drivers\etc
linux/mac: /etc/hosts
127.0.0.1 zf2-app.localhost
you can use tld .dev or .web
Comments
Post a Comment