Forum Moderators: phranque

Message Too Old, No Replies

apache service with ssl configureation does not start

wildcard NameVirtualHosts and _default_ servers

         

lindaonline15

8:07 am on Dec 23, 2011 (gmt 0)

10+ Year Member



Hi,
I am trying to configure ssl for my server, i've tried every possible ways but the apache service just fails to start...
when I try to check the syntax, I get this message:
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:443 is a NameVirtualHost
default server localhost (/etc/httpd/conf.d/ssl.conf:228)
port 443 namevhost localhost (/etc/httpd/conf.d/ssl.conf:228)
Syntax OK


maybe I should share few parts of my codes. in httpd.conf I have:

NameVirtualHost *:443
Listen 443
ServerAdmin root@localhost
ServerName localhost


in ssl.conf I have:
<VirtualHost *:443>
ServerAdmin root@localhost
# DocumentRoot /var/www/html
# ServerName localhost
ServerAlias analyzer
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
ErrorLog /var/logs/httpd/analyzer-error.log
CustomLog /var/logs/httpd/analyzer-access.log combined
SSLEngine On
SSLCertificateFile /etc/httpd/conf/ssl.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key
SSLProxyEngine on
</VirtualHost>

<Proxy http://127.0.0.1:8000/*>
Order deny,allow
Deny from all
Allow from all
AuthName "analyzer"
AuthType Basic
AuthUserFile /var/www/.htpasswd
Require valid-user
</Proxy>


any clues what is the cause of the problem..?

lindaonline15

9:08 am on Dec 23, 2011 (gmt 0)

10+ Year Member



ok, that got fixed!
the problem was a typo for error logs path.
instead of:
ErrorLog /var/logs/httpd/analyzer-error.log
CustomLog /var/logs/httpd/analyzer-access.log combined

it had to be:
ErrorLog /var/log/httpd/analyzer-error.log
CustomLog /var/log/httpd/analyzer-access.log combined

i cannot believe i wasted that much of time on a single 'S'!
anyways... now i have actually another problem, and that is that sometimes it does pop-up for the authentication and sometimes not...
I need to use a simple basic authentication actually... nothing complicated... any clues?