I am currently running a server using Apache, Fedora Core 1 and Plesk 7 to manage my web server. Everything was working fine until I realized recently that Apache had failed on me. When I entered SSH to start apache I recieve this error message:
Starting httpd: Syntax error on line 1 of /etc/httpd/conf/httpd.incl
ude:
NameVirtualHost not allowed here
Now, here is the contents of the httpd.include file:
NameVirtualHost 207.234.130.18:80
NameVirtualHost 207.234.130.18:443
ServerName localhost.localdomain
ServerAdmin support@radium5.com
DocumentRoot /home/httpd/vhosts/default
/htdocs
<Directory "/home/httpd/vhosts">
AllowOverride All
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
php_admin_flag engine off
</Directory>
<Directory "/var/mailman">
AllowOverride All
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
php_admin_flag engine off
</Directory>
<IfModule mod_userdir.c>
UserDir disabled
</IfModule>
<VirtualHost \
207.234.130.18:80 \
>
ServerName default
UseCanonicalName Off
DocumentRoot /home/httpd/vhosts/default
/htdocs
ScriptAlias /cgi-bin/ "/home/httpd/vhosts/defaul
t/cgi-bin/
"
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory "/home/httpd/vhosts/defaul
t/cgi-bin/
">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost 207.234.130.18:443 >
ServerName default-207-234-130-18
UseCanonicalName Off
DocumentRoot /home/httpd/vhosts/default
/httpsdocs
ScriptAlias /cgi-bin/ "/home/httpd/vhosts/defaul
t/cgi-bin/
"
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certifi
cates/cert
hvK9909
<Directory "/home/httpd/vhosts/defaul
t/cgi-bin/
">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Directory /home/httpd/vhosts/default
/httpsdocs
>
SSLRequireSSL
</Directory>
</VirtualHost>
</IfModule>
<VirtualHost \
207.234.130.18:80 \
>
DocumentRoot /home/httpd/vhosts/webmail
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
<Directory /home/httpd/vhosts/webmail
/horde>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value safe_mode off
php_admin_value open_basedir "/home/httpd/vhosts/webmai
l:/etc/psa
:/tmp"
php_admin_value include_path "/home/httpd/vhosts/webmai
l/horde/li
b:/home/ht
tpd/vhosts
/webmail/h
orde/pear:
."
</IfModule>
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost \
207.234.130.18:443 \
>
DocumentRoot /home/httpd/vhosts/webmail
ServerName webmail
ServerAlias webmail.*
UseCanonicalName Off
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /etc/httpd/conf/httpd.pem
<Directory /home/httpd/vhosts/webmail
/horde>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_value safe_mode off
php_admin_value open_basedir "/home/httpd/vhosts/webmai
l:/etc/psa
:/tmp"
php_admin_value include_path "/home/httpd/vhosts/webmai
l/horde/li
b:/home/ht
tpd/vhosts
/webmail/h
orde/pear:
."
</IfModule>
SSLRequireSSL
</Directory>
</VirtualHost>
</IfModule>
<VirtualHost \
207.234.130.18:80 \
>
DocumentRoot /home/httpd/vhosts/default
/htdocs
ServerName lists
ServerAlias lists.*
UseCanonicalName Off
ScriptAlias /mailman/ /var/mailman/cgi-bin/
Alias /icons/ /var/www/icons/
Alias /pipermail/ /var/mailman/archives/publ
ic/
<Directory /var/mailman/archives/>
Options FollowSymLinks
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost \
207.234.130.18:443 \
>
DocumentRoot /home/httpd/vhosts/default
/httpsdocs
ServerName lists
ServerAlias lists.*
UseCanonicalName Off
ScriptAlias /mailman/ /var/mailman/cgi-bin/
Alias /icons/ /var/www/icons/
Alias /pipermail/ /var/mailman/archives/publ
ic/
<Directory /var/mailman/archives/>
Options FollowSymLinks
</Directory>
</VirtualHost>
</IfModule>
Include /home/httpd/vhosts/radium5
.com/conf/
httpd.incl
ude
Include /home/httpd/vhosts/mrgravy
.com/conf/
httpd.incl
ude
Include /home/httpd/vhosts/ninjapo
le.com/con
f/httpd.in
clude
Include /home/httpd/vhosts/staff.r
adium5.com
/conf/http
d.include
Include /home/httpd/vhosts/optimum
autodesign
.com/conf/
httpd.incl
ude
Include /home/httpd/vhosts/kford.n
injapole.c
om/conf/ht
tpd.includ
e
Include /home/httpd/vhosts/helpdes
k.radium5.
com/conf/h
ttpd.inclu
de
Include /home/httpd/vhosts/game-se
ven.com/co
nf/httpd.i
nclude
Include /home/httpd/vhosts/team-ma
p.com/conf
/httpd.inc
lude
Include /home/httpd/vhosts/zuph.co
m/conf/htt
pd.include
Include /home/httpd/vhosts/podsky.
com/conf/h
ttpd.inclu
de
Include /home/httpd/vhosts/ckylend
ing.com/co
nf/httpd.i
nclude
Include /home/httpd/vhosts/uckygol
f.com/conf
/httpd.inc
lude
Include /home/httpd/vhosts/nuventu
re-apparel
.com/conf/
httpd.incl
ude
Include /home/httpd/vhosts/amlende
rs.com/con
f/httpd.in
clude
Include /home/httpd/vhosts/datatru
strecords.
com/conf/h
ttpd.inclu
de
Include /home/httpd/vhosts/etechon
call.com/c
onf/httpd.
include
Include /home/httpd/vhosts/haydenc
ompany.net
/conf/http
d.include
Include /home/httpd/vhosts/firecru
iter.com/c
onf/httpd.
include
Include /home/httpd/vhosts/deedlit
.org/conf/
httpd.incl
ude
Include /home/httpd/vhosts/mavenar
ts.com/con
f/httpd.in
clude
Include /home/httpd/vhosts/revolut
ionms.com/
conf/httpd
.include
Include /home/httpd/vhosts/indianf
armers.org
/conf/http
d.include
Include /home/httpd/vhosts/rgiins.
com/conf/h
ttpd.inclu
de
Include /home/httpd/vhosts/strange
aeons.net/
conf/httpd
.include
Include /home/httpd/vhosts/bobrobe
rtsins.com
/conf/http
d.include
Include /home/httpd/vhosts/foolass
.com/conf/
httpd.incl
ude
Include /home/httpd/vhosts/worstof
me.com/con
f/httpd.in
clude
Include /home/httpd/vhosts/retroge
ek.us/conf
/httpd.inc
lude
Include /home/httpd/vhosts/mrstemp
let.com/co
nf/httpd.i
nclude
Include /home/httpd/vhosts/freebro
ck.com/con
f/httpd.in
clude
Include /home/httpd/vhosts/b0x.inf
o/conf/htt
pd.include
Include /home/httpd/vhosts/troop16
7.org/conf
/httpd.inc
lude
Include /home/httpd/vhosts/melwing
s.com/conf
/httpd.inc
lude
Include /home/httpd/vhosts/e-borti
ons.com/co
nf/httpd.i
nclude
Include /home/httpd/vhosts/tejaske
ndra.org/c
onf/httpd.
include
Include /home/httpd/vhosts/kreusse
rfamily.co
m/conf/htt
pd.include
Include /home/httpd/vhosts/cc3654.
com/conf/h
ttpd.inclu
de
Include /home/httpd/vhosts/velveth
ammer.org/
conf/httpd
.include
<VirtualHost 207.234.130.18:80>
ServerName r5domains.com
ServerAlias
www.r5domains.com ServerAdmin "support@radium5.com"
RedirectPermanent / "
http://radium5.com/domains.php"
</VirtualHost>
As far as I can tell, httpd.includes deals with the virtual hosting. Anyone who can answer this will recieve 1000 points.
And of course, as always, thanks in advance!