Forum Moderators: phranque

Message Too Old, No Replies

Syntax error on the httpd.conf

I dont get it

         

hurafloyd

9:26 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



Hello again

I read all the Apache documentation and now I have an idea. Thanks also for your information (:.

Right now changing some info in the Virtual Host configuration lines and came this error

""Syntax error on line 1079 of x:\httpd.conf:
Invalid command '</VirtualHost' perhaps mis-spelled or defined by a module not included in the server configuration""

Here is a sample of the code

NameVirtualHost #*$!.xxx.xxx.xxx

...
<VirtualHost xxx.xxx.xxx.xxx:yyyy>
DocumentRoot x:\myroot
ServerName mypage.mypage.net(Im using NOIP Hosting)
ServerAliashttp://mypage.mypage.net
</VirtualHost xxx.xxx.xxx.xxx:yyyy>

I read some docs and it said I could use IP's to assign a name to the Virtual host and I must assing a port. I try to start the server and it shows that error.

I dont understand what did I do wrong, or which module I need to get or load for this error to disappear.

Thanks for your help

Jean

jdMorgan

3:32 am on Mar 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You may specify an IP and/or port number in <VirtualHost>.
You must not specify an IP or port number in </VirtualHost>

Ref:
[httpd.apache.org...]
[httpd.apache.org...]

Jim

hurafloyd

3:39 am on Mar 21, 2006 (gmt 0)

10+ Year Member



Oh my god! hahahahaha, im such an ass >.<

Thank you Jim xD

I'll test in some hours and see if it works since I left my pc at the office :s