Virtual hosting, I FOUND THE LIGHT!

IBhacknU

Diamond Member
Oct 9, 1999
6,855
0
0
something as simple as the document roots.... I feel much better now, thank you very much!

OK... online apache documentation, a big ol' fat book, and my meager brain can't get this straight. If you don't know the answer, can you at least point me to an online resource?

NameVirtualHost 204.119.252.102:80

<VirtualHost www.alohadeals.com>
ServerAdmin admin@alohadeals.com
ServerName www.alohadeals.com
DocumentRoot htdocs
ErrorLog logs/host.alohadeals_error_log
CustomLog logs/host.alohadeals_access_log common
</VirtualHost>

<VirtualHost test.darthvadr.com>
ServerAdmin admin@darthvadr.com
ServerName test.darthvadr.com
DocumentRoot htdocs/darthvadr
ErrorLog logs/host.darthvadr_error_log
CustomLog logs/host.darthvadr_access_log common
</VirtualHost>

why isn't it working!!!
 

Scrapster

Diamond Member
Nov 27, 2000
3,746
0
0
I got it setup, rather haphazardly, in about 5 min. It was even able to be accessed remotely on my 56k connection. But once I tried it on the school's LAN it no longer became remotely accessible. Damn firewall!

Scrapster

Oh yeah, sorry I have no help. :)

 

IBhacknU

Diamond Member
Oct 9, 1999
6,855
0
0
one domain name works fine.. but multiple is no go!

don't ban me mods... this is a forum issue

triple post!
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Well, you need to specify a ServerPath, for one. For another I would use the entire path for your DocumentRoot. Lastly, for the VirtualHost directive, just leave that as the IP.

Save all that, then HUP apache (e.g. kill -HUP <pid>)
 

Damaged

Diamond Member
Oct 11, 1999
3,020
0
0
Your welcome. You really NEED to have those in there. Nasty things happen without that one. :)