vhost on lampp doesn't show the proper page
After the setup of lampp and the creation of my zend applicaiton I tried
to create a virtual host to test it, following this steps:
1: create a new host in lampp/etc/extra/httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "/my/application/path/public/"
ServerName myname.local
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
<Directory "/my/application/path/public/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
2: add an entry in /etc/hosts, modify the following line:
127.0.0.1 localhost
into
127.0.0.1 myname.local localhost
Then I had restart lampp and go to httpd://myname.local, but instead the
index.php of my application it displayed the index page of lampp
Please ask me for further informations if needed
No comments:
Post a Comment