LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2007, 07:51 AM   #1
payjoe
LQ Newbie
 
Registered: Apr 2007
Posts: 13

Rep: Reputation: 0
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/


Failed to start apache :

Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/httpd.conf:
ServerAlias only used in
[FAILED]

Somtimes I feel I,m on another planet..when I receive this form of error...a very basic problem no doubt..to me :<

I guessing that it relates to this area: can someone share some light


#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
#<VirtualHost *:80>
#SuexecUserGroup slp issoff
ServerName issoff.com
ServerAlias www.issoff.com
DocumentRoot /home/gary1/public_html
ErrorLog /home/gary1/logs/error_log
CustomLog /home/gary1/logs/access_log common
ScriptAlias /cgi-bin/ /home/gary1/cgi-bin/
<Directory /home/gary1/public_html>
AllowOverride All
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
</Directory>
#</VirtualHost>
RewriteLogLevel 3
RewriteLog "/var/log/httpd/rewrite.log"
<VirtualHost *:80>
ServerName recruitmentnews.issoff.com
ServerAlias www.recruitmentnews.issoff.com
DocumentRoot /home/gary1/domains/recruitmentnews.issoff.com/public_html
ErrorLog /home/gary1/domains/recruitmentnews.issoff.com/logs/error_log
CustomLog /home/gary1/domains/recruitmentnews.issoff.com/logs/access_log "common"
ScriptAlias /cgi-bin/ /home/gary1/domains/recruitmentnews.issoff.com/cgi-bin/
<Directory /home/gary1/domains/recruitmentnews.issoff.com/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
HostNameLookups on
</Directory>
LogLevel alert
CheckSpelling On
AliasMatch ^/.*$ /etc/cpplus/virtual_server/disabled.html
</VirtualHost>
 
Old 09-21-2007, 08:11 AM   #2
zamuro
LQ Newbie
 
Registered: Sep 2007
Posts: 9

Rep: Reputation: 0
Dumb question... why www.recruitmentnews.issoff.com? If it's a subdomain, it is suppose to be called subdomain.domain.ext

Another dumb question... do you have a recruitmentnews.issoff.com line added to your zone files? (in case you're using BIND)
 
Old 09-21-2007, 08:22 AM   #3
payjoe
LQ Newbie
 
Registered: Apr 2007
Posts: 13

Original Poster
Rep: Reputation: 0
I created the sub domain using cpanel on vps server,I assumed that everything was automated, when I received the login confirmation text file.


Another dumb question... do you have a recruitmentnews.issoff.com line added to your zone files? (in case you're using BIND)

No I have done nothing expect create this sub domain
 
Old 09-21-2007, 08:24 AM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
As the error states, ServerAlias needs to be in a VirtualHost stanza. Look at this line "ServerAlias www.issoff.com". The <VirtualHost> above it and the </VirtualHost> below it are both commented out.
 
  


Reply

Tags
apache, error, syntax, virtualhost


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache error after adding module in httpd.conf - but cant see why???? paul123 Linux - Server 2 04-26-2007 04:53 AM
Apache httpd start failed on fedora core 1 k_1701 Linux - Software 10 05-05-2006 08:40 AM
httpd.conf Syntax error tommytomato Linux - Newbie 2 05-25-2004 06:10 AM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 11:32 PM
apache httpd.conf syntax weisiger Linux - Software 8 06-16-2003 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 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