Ask Software Development Questions and Get Answers ASAp
My name is David.
First, are you trying to install a web server certificate, such as for Apache?
Ok thanks. Sounds like you have installed the SSL certificate correctly. Did you test SSL by connecting via IP address or FQDN?
Ok so just to clarify, if you use the FQDN with https it does connect correctly?
Ok thanks. I am reviewing the configuration file now.
Ok so first,note that the issue could be related to permissions on the ssl directories. But before checking that, I noticed that the closing </VirtualHost> is missing.
So first change the <VirtualHost _default_:443> in the config file to <VirtualHost *:443> and add </VirtualHost> after to close the statement, and then reload the service and try connecting directly to https. If that works then add the following to the top of the configuration for the redirect:
Redirect permanent / https://omagelabs.net/
Ok - I am standing by.
Ok thanks. I am reviewing the config file now.
Ok thanks. Still reviewing the config file.
Just a thought - is port 443 open on the firewall?
Also, after making the configuration change, make sure to run the following command:
service apache2 restart
so that the service reads the new configuration.
So does port 80 redirect now work as well?
Reviewing the new configuration now.
Move the <IfModule mod_ssl.c> below the port 80 section rather than at the top of the config file so that it is directly above the port 443 section like the following:
<IfModule mod_ssl.c><VirtualHost *:443>
Leave the </IfModule> at the end of the config file like the following:
Note that you should still indent the <VirtualHost *:443> and </VirtualHost>.
Then restart the service and test again.
Ok, I am reviewing it now.
No worries :)
Please post the ports.conf file as well.
Ok thanks. Reviewing now.
Ok so in the ports.conf file replace <IfModule ssl_module> with <IfModule mod_ssl.c>, then save the file changes and restart the service and test.
Also, I will have to step away from the computer in a few minutes.
Ok - standing by.
Sounds good. I am in the PST time zone and available off and on throughout the day. I will also check the configurations later and see if I notice something else that may provide the solution.
You have a good night as well and we'll reconvene tomorrow.
I'm back and now reviewing the file you just posted.
Ok so the NameVirtualHost *:80 and NameVirtualHost *:443 directives should be in the ports.conf file since you have more than one site on the same IP. I have attached a modified ports.conf file for you to try. Change the name of the file to ports.conf and then replace the current ports.conf file with the new one, restart the Apache2 service and then test and let me know the result.
Just checking to find out if you have had a chance to download and test the modified ports.conf file.
I believe we are overlooking something simple. Could you grab all the configuration files and post them in a .zip along with a document that provides the path to each file? I would like to look at the configuration as a whole since that may reveal what is being overlooked.
I am running out of ideas - the last configuration should have worked. If I think of something else I will post it here for you, however for now I am going to open up this question to other experts that may be able to pinpoint the issue and solution.
You are correct.