zend framework - zf2 virtual host loading localhost/xampp -


i'm trying zf2 running on xampp. have vhosts.conf file

namevirtualhost 127.0.0.1:80  <virtualhost *:80>   documentroot "c:/xampp/htdocs"   servername localhost </virtualhost>  <virtualhost *:80>     servername zf2-tutorial.localhost     documentroot "c:/xampp/htdocs/zf2-tutorial"         setenv application_env "development"     <directory "c:/xampp/htdocs/zf2-tutorial">         directoryindex index.php         allowoverride         order allow,deny         allow     require granted     </directory> </virtualhost> 

and host file

127.0.0.1   zf2-tutorial.localhost 

now, when run zf2-tutorial.localhost, browser goes zf2-tutorial.localhost/xampp , shows xampp page.

when run localhost goes localhost/xampp too.

please help.

try http://zf2-tutorial.localhost/public

if works change following entries in vhosts file

documentroot "c:/xampp/htdocs/zf2-tutorial/public"      <directory "c:/xampp/htdocs/zf2-tutorial/public"> 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -