LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-23-2011, 10:50 AM   #1
wisetech
LQ Newbie
 
Registered: Feb 2011
Location: Germany
Posts: 9

Rep: Reputation: 0
Virtual Host Configuration


I am configuring vituual host and got some errors.

i edited the file as below
VirtualHost 192.168.2.103:80>
ServerAdmin webmaster@server1.example.com
DocumentRoot /var/www/html/server1.example.com
ServerName server1.example.com
ErrorLog logs/server1.example.com-error_log
CustomLog logs/server1.example.com-access_log common
</VirtualHost>

I created the /var/www/html/server1.example.com directory

mkdir /var/www/html/server1.example.com

I edited the vi /etc/hosts
with 192,.168.0.2 server1.exmaple.com

i launch
#httpd -S AND GET THE ERORR
httpd: Syntax error on line 998 of /etc/httpd/conf/httpd.conf: </VirtualHost> without matching <VirtualHost> section

what could be the prob?
Am using centos 5
#uname -r
2.6.18-194.el5

Last edited by wisetech; 02-23-2011 at 10:54 AM.
 
Old 02-23-2011, 11:30 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Well you have the answer right on this page.
Read the error message again and read what you have posted.
 
Old 02-23-2011, 09:22 PM   #3
kernelzack
LQ Newbie
 
Registered: Jun 2009
Distribution: Centos
Posts: 25

Rep: Reputation: 15
Fix the leading <VirtualHost> tag and you should be good.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debian lenny - all virtual hosts lead to first virtual host rantastic Linux - Server 2 04-21-2010 09:32 PM
[SOLVED] Apache2 - virtual host defaulting to default host slimjim Linux - Server 1 10-31-2009 01:47 AM
Virtual Host Configuration - Issue (Utilization of Proxy Pass Method) sanjay.s Linux - Newbie 1 08-11-2009 03:55 AM
multiple virtual host configuration in apache nthillaiarasu Programming 2 02-20-2009 05:10 PM
Apache Virtual Host Configuration Crashed_Again Linux - Networking 1 12-18-2002 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration