Second https port for Apache
Hi,
My current setup is as follows. I have two folders, one for my main site example.com and one for the test at play site beta.example.com
Obvious problem here: I can't test SSL on the subdomain because I own no certificate for that.
So I'm looking for a way to set up the beta site on example.com:3000 (or another suitable port).
any ideas how to accomplish that.....?
Thanks!
Jan
-
Personally I would just create a self-signed certificate for the sub domain in WHM and install it for testing purposes. 0 -
Obvious problem here: I can't test SSL on the subdomain because I own no certificate for that.
Hello :) You could install a separate self-signed SSL certificate for the subdomain, as mentioned in the previous post, as long as you are using an OS that supports SNI (e.g. CentOS/RHEL/CloudLinux 6 or higher). Thank you.0 -
Add a Listen command to one of the Apache include files, i.e /usr/local/apache/conf/includes/pre_main_2.conf Listen 0.0.0.0:3000
Then add a VirtualHost entry for the subdomain in another include file, i.e. /usr/local/apache/conf/includes/pre_virtualhost_2.conf. . . SSLEngine on SSLCertificateFile ... SSLCertificateKeyFile ... SSLCACertificateFile ... . . .
Restart Apache Make sure port 3000 is open in your firewall.0
Please sign in to leave a comment.
Comments
3 comments