Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

goksel

macrumors newbie
Original poster
Jan 6, 2011
1
0
I set up the vhosts last week, it works for a while but then it stops.

I am using Snow Leopard 10.6. I login as root.

hosts:
Code:
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost 
fe80::1%lo0	localhost
127.0.0.1 geryit


httpd.conf
Code:
DocumentRoot "/_sites"
<Directory "/_sites">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf


httpd-vhosts.conf:
Code:
NameVirtualHost *:80

<VirtualHost *:80>
   DocumentRoot "/_sites"
   ServerName localhost
</VirtualHost>

<VirtualHost *:80>
	ServerName "geryit"
   DocumentRoot "/_sites/geryit.com"
</VirtualHost>


Any ideas?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.