Forum Moderators: phranque

Message Too Old, No Replies

Virtual hosts not working

cant get apache to restart after adding virtual hosts

         

Miah

2:14 am on Mar 3, 2005 (gmt 0)

10+ Year Member



I've recently tried to use Virtual Hosts with Apache on windows. However when I add them, Apache won't restart, and as soon as I comment them out again it will.

As far as I know the entries look okay, I've checked the syntax on many different sites, and I have no idea what might be wrong.

I'll list my entries below, thanks for any help anyone can provide:

NameVirtualHost *:80
<VirualHost *>
ServerAdmin admin@example.com
DocumentRoot /htdocs
ServerName www.example.net
ServerAlias example.net *.example.net
ErrorLog logs/error
CustomLog logs/web combinded
</VirtualHost>

There is one more, but it I can't get it to work with only one uncommented, much less two.

[edited by: jdMorgan at 3:22 am (utc) on Mar. 3, 2005]
[edit reason] Removed specifics per TOS. [/edit]

Miah

2:17 am on Mar 3, 2005 (gmt 0)

10+ Year Member



Well never mind, now that I read what I posted, I see that I left a "t" out in the <virtualhost> tag.

*sigh* sorry for the useless post...

jdMorgan

4:16 am on Mar 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Miah,

Welcome to WebmasterWorld!

I'm glad to hear that you got it fixed.

Jim

Miah

11:38 pm on Mar 3, 2005 (gmt 0)

10+ Year Member



Thanks, I look forward to making more posts here and helping people if I can as well as getting help when I have the time.

Good idea taking my domain details out of the post as well.