Quote:
Originally Posted by ks1293
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/ssl.conf: /etc/httpd/conf.d/ssl.conf:8: <\\VirtualHost> was not closed.\n/etc/httpd/conf.d/ssl.conf:1: <VirtualHost> was not closed
I looked at both httpd.conf and ssl.conf files but not sure what is causing the syntax errors.
Any help is much appreciated.
|
It's difficult to help since you didn't share the relevant parts of those conf files, but
those are pretty clear error messages. Syntax of a VirtualHost directive should look something like this
Code:
<VirtualHost 123.45.67.89:80>
ServerAdmin support@mydomain.com
DocumentRoot /var/www/html/mydomain
ServerName mydomain.com
ServerAlias www.mydomain.com
Redirect permanent / https://mydomain.com
ErrorLog logs/mydomain-error_log
CustomLog logs/mydomain-access_log combined
</VirtualHost>
The
</VirtualHost> at the end is missing...and you apparently have a typo in /etc/httpd/conf.d/ssl.conf, too.
See the
Apache Documentation