Reputation: 11
I have install zend framework using skeleton application on my machine ie ubuntu 14.04 LTS. I follow following steps.
using the apache web server set virtual host
<VirtualHost *:80>
ServerName zf2-tut.localhost
DocumentRoot /var/www/html/zf2-tut/ZendSkeletonApplication/public
SetEnv APPLICATION_ENV "development"
<Directory /var/www/html/zf2-tut/ZendSkeletonApplication/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
after i edit hosts page from etc folder and add there 127.0.0.1 zf2-tut.localhost localhost this line.
Tell me Where it go wrong.
Help
Upvotes: 0
Views: 2610
Reputation: 1064
It' not ZF-related problem.
You have added zf2-tut.localhost
to the hosts file, but you are trying to access it with http://zf2-tut/localhost
instead of http://zf2-tut.localhost
.
Can you make sure that the domain is consistent - including webserver's vhost.
Upvotes: 2