I've read the Apache documentation on 'port binding' and on 'virtual hosts' but have come no closer to a solution. I also scoured serverfault for answers but all point to the same solution: 'add LISTEN [port number] to your httpd.conf file and restart Apache'. This does not work.
What I am trying to do: make Apache listen to secure connections on port 510 and 443.
What is happening: only port 443 works, both secure and unsecure requests on port 510 fail.
How I have attempted to do this (in my httpd.conf file):
Listen 80
Listen 443
Listen 510
NameVirtualHost *:510
<VirtualHost *:510>
ServerName samplesite.com
ServerAlias *.samplesite.com
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "conf/ssl/_.samplesite.com/_.samplesite.com.crt"
SSLCertificateKeyFile "conf/ssl/_.samplesite.com/_.samplesite.com.key"
SSLCertificateChainFile "conf/ssl/_.samplesite.com/gd_bundle.crt"
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
AllowEncodedSlashes On
</VirtualHost>
<VirtualHost *:443>
ServerName samplesite.com
ServerAlias *.samplesite.com
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "conf/ssl/_.samplesite.com/_.samplesite.com.crt"
SSLCertificateKeyFile "conf/ssl/_.samplesite.com/_.samplesite.com.key"
SSLCertificateChainFile "conf/ssl/_.samplesite.com/gd_bundle.crt"
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
AllowEncodedSlashes On
</VirtualHost>
Any help would be greatly appreciated.
apachectl -S
? Are there any errors on the console or in Apache's error log when you start the service?