N
nibb@
Guest
Apache fails everytime i try to restart. I has to do something with my vhost_ssl.conf
Apache says:
httpd -k start
Syntax error on line 1 of /home/httpd/vhosts/domain.com/conf/vhost_ssl.conf:
<VirtualHost> cannot occur within <VirtualHost> section
Here is what my vhost_ssl.conf looks:
<VirtualHost 67.18.121.000:443>
ServerName domain.com
ServerAlias www.domain.com
UseCanonicalName Off
SuexecUserGroup domain psacln
ServerAdmin [email protected]
DocumentRoot /home/httpd/vhosts/domain.com/httpsdocs
CustomLog /home/httpd/vhosts/domain.com/statistics/logs/access_ssl_log combined
ErrorLog /home/httpd/vhosts/domain.com/statistics/logs/error_ssl_log
<IfModule mod_userdir.c>
UserDir /home/httpd/vhosts/domain.com/web_users
</IfModule>
ScriptAlias /cgi-bin/ /home/httpd/vhosts/domain.com/cgi-bin/
Alias /plesk-stat /home/httpd/vhosts/domain.com/statistics/
Alias /webstat /home/httpd/vhosts/domain.com/statistics/webstat
Alias /webstat-ssl /home/httpd/vhosts/domain.com/statistics/webstat-ssl
Alias /ftpstat /home/httpd/vhosts/domain.com/statistics/ftpstat
Alias /anon_ftpstat /home/httpd/vhosts/domain.com/statistics/anon_ftpstat
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/certXUcYmQJ
SSLCACertificateFile /usr/local/psa/var/certificates/cert-5ZjyLT
<Directory /home/httpd/vhosts/domain.com/httpsdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_perl.c>
<Files ~ (\.asp$)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/domain.com/httpsdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
SSLRequireSSL
Options +Includes +ExecCGI
</Directory>
<Directory "/home/httpd/vhosts/domain.com/statistics">
AuthType Basic
AuthName "EstadÃ_sticas de Dominio"
AuthUserFile /home/httpd/vhosts/domain.com/pd/d..plesk-stat
require valid-user
</Directory>
Alias "/error_docs" "/home/httpd/vhosts/domain.com/error_docs"
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
</VirtualHost>
Apache says:
httpd -k start
Syntax error on line 1 of /home/httpd/vhosts/domain.com/conf/vhost_ssl.conf:
<VirtualHost> cannot occur within <VirtualHost> section
Here is what my vhost_ssl.conf looks:
<VirtualHost 67.18.121.000:443>
ServerName domain.com
ServerAlias www.domain.com
UseCanonicalName Off
SuexecUserGroup domain psacln
ServerAdmin [email protected]
DocumentRoot /home/httpd/vhosts/domain.com/httpsdocs
CustomLog /home/httpd/vhosts/domain.com/statistics/logs/access_ssl_log combined
ErrorLog /home/httpd/vhosts/domain.com/statistics/logs/error_ssl_log
<IfModule mod_userdir.c>
UserDir /home/httpd/vhosts/domain.com/web_users
</IfModule>
ScriptAlias /cgi-bin/ /home/httpd/vhosts/domain.com/cgi-bin/
Alias /plesk-stat /home/httpd/vhosts/domain.com/statistics/
Alias /webstat /home/httpd/vhosts/domain.com/statistics/webstat
Alias /webstat-ssl /home/httpd/vhosts/domain.com/statistics/webstat-ssl
Alias /ftpstat /home/httpd/vhosts/domain.com/statistics/ftpstat
Alias /anon_ftpstat /home/httpd/vhosts/domain.com/statistics/anon_ftpstat
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /usr/local/psa/var/certificates/certXUcYmQJ
SSLCACertificateFile /usr/local/psa/var/certificates/cert-5ZjyLT
<Directory /home/httpd/vhosts/domain.com/httpsdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_perl.c>
<Files ~ (\.asp$)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/domain.com/httpsdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
SSLRequireSSL
Options +Includes +ExecCGI
</Directory>
<Directory "/home/httpd/vhosts/domain.com/statistics">
AuthType Basic
AuthName "EstadÃ_sticas de Dominio"
AuthUserFile /home/httpd/vhosts/domain.com/pd/d..plesk-stat
require valid-user
</Directory>
Alias "/error_docs" "/home/httpd/vhosts/domain.com/error_docs"
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
</VirtualHost>