I created a virtualhost to a cakephp application:
I set the httpd-vhosts.conf this way:
<VirtualHost localhost:80>
ServerAdmin localhost
DocumentRoot /Applications/AMPPS/www/
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
ServerName www.drin.com
ServerAlias www.drin.com drin.com
DocumentRoot /Applications/AMPPS/www/carte_drin/app/webroot
Options -Indexes FollowSymLinks
#disable htaccess starting at /
<Directory />
AllowOverride none
</Directory>
<Directory /Applications/AMPPS/www/carte_drin/app/webroot/>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
<Files sitemap.xml>
RewriteEngine Off
</Files>
</Directory>
</VirtualHost>
And the /etc/hosts file this way also:
127.0.0.1 localhost
127.0.0.1 www.drin.com
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
yet when I try to access to www.drin.com it points me to localhost page not to the application itself. I'm using AMPPS under MAC. If you know what's going wrong tell me.
Best