apache - VirtualHosts not working? -


i can't seem virtualhosts working... think i'm clueless i'm doing.

httpd.conf

namevirtualhost *  <virtualhost *>     servername localhost     documentroot "/applications/mamp/bin/mamp"     <directory "/applications/mamp/bin/mamp">         options indexes followsymlinks includes execcgi         allowoverride none         order allow,deny         allow     </directory> </virtualhost>  # rev.dev <virtualhost *>     servername revcms.dev     documentroot "/users/manuel/sites/rev"     <directory "/users/manuel/sites/rev">         options indexes followsymlinks includes execcgi         allowoverride none         order allow,deny         allow     </directory> </virtualhost> 

etc/hosts

## # host database  # # localhost used configure loopback interface # when system booting.  not change entry. ##   255.255.255.255 broadcasthost ::1             localhost  fe80::1%lo0 localhost  127.0.0.1 rev.dev 

i have absolutely no idea i'm doing wrong, http://rev.dev acts same 127.0.0.1 help?

run httpd -s (note capital s) command line , debug there.

for starters, /etc/hosts file says server name rev.dev, virtual host says server revcms.dev.

change virtual host file rev.dev , restart apache.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -