ronnyserrano
MIS
I'm a windows guy so excuse me if this seems like a simple question..
I've been asked to do some work on a Linux box that has our dev website on it. They want to activate an SSL Cert. I was able to walk through creating the signing request and generating a cert and all. placed it in the /etc/pki/tls/private directory. The issue I have is with the httpd.conf file.
The only reference to ssl in the httpd.conf is here:
# for the staging site
<VirtualHost 172.20.30.43:80>
SSLEngine off
ServerName heartsonfire.modernista.com
ServerAdmin webmaster@modernista.com
DocumentRoot /work/hof/deploy
ErrorLog /etc/httpd/logs/hof-error_log
ServerAlias ServerAlias heartsonfire.modernista.com
CustomLog /etc/httpd/logs/hof-access_log combined
ErrorDocument 404 /us/en-us/404/index.php
</VirtualHost>
I tried to add the following, but everytime apache restarts it prompts for a password.. not a big deal right now.. but the server never ends up responding to requests on 443 or 80 when this is in the httpd.conf.
<VirtualHost 172.20.30.43:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/server.crt
SSLCertificateKeyFile /etc/pki/tls/private/server.key
ServerName webdev1.heartsonfire.com
DocumentRoot /work/hof/deploy
</VirtualHost>
When I leave on the virtual host for port 80 active and remark out the stuff for 443, then it works and even responds on 443. I just don't understand why and before I decide to do this on a production server, I need to understand what is happening.
Thanks in advance,
RS
I've been asked to do some work on a Linux box that has our dev website on it. They want to activate an SSL Cert. I was able to walk through creating the signing request and generating a cert and all. placed it in the /etc/pki/tls/private directory. The issue I have is with the httpd.conf file.
The only reference to ssl in the httpd.conf is here:
# for the staging site
<VirtualHost 172.20.30.43:80>
SSLEngine off
ServerName heartsonfire.modernista.com
ServerAdmin webmaster@modernista.com
DocumentRoot /work/hof/deploy
ErrorLog /etc/httpd/logs/hof-error_log
ServerAlias ServerAlias heartsonfire.modernista.com
CustomLog /etc/httpd/logs/hof-access_log combined
ErrorDocument 404 /us/en-us/404/index.php
</VirtualHost>
I tried to add the following, but everytime apache restarts it prompts for a password.. not a big deal right now.. but the server never ends up responding to requests on 443 or 80 when this is in the httpd.conf.
<VirtualHost 172.20.30.43:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/server.crt
SSLCertificateKeyFile /etc/pki/tls/private/server.key
ServerName webdev1.heartsonfire.com
DocumentRoot /work/hof/deploy
</VirtualHost>
When I leave on the virtual host for port 80 active and remark out the stuff for 443, then it works and even responds on 443. I just don't understand why and before I decide to do this on a production server, I need to understand what is happening.
Thanks in advance,
RS