Jack_son_
asked on
Debian enabling SSL
Hi All,
I have created a self signed certificate in debian linux using ssl. I am now trying to get a default-ssl site setup. Can someone help me out? I did follow these instructions: https://wiki.debian.org/Self-Signed_Certificate , but now apache wont start.
Thanks,
Jackson
I have created a self signed certificate in debian linux using ssl. I am now trying to get a default-ssl site setup. Can someone help me out? I did follow these instructions: https://wiki.debian.org/Self-Signed_Certificate , but now apache wont start.
Thanks,
Jackson
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Here is the error:
apache2: Could not reliably determine the server's fully qualified domain name, using 2001:4802:7801:103:9128:88 7c:ff20:5e 9c for ServerName
Syntax OK
apache2: Could not reliably determine the server's fully qualified domain name, using 2001:4802:7801:103:9128:88
Syntax OK
In your httpd.conf, do you have 'ServerName' specified?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
For the first command I see this:
23649 pts/0 S+ 0:00 grep httpd
THe second one I don't see anything....
Also right now I am just trying to use it from public ip
23649 pts/0 S+ 0:00 grep httpd
THe second one I don't see anything....
Also right now I am just trying to use it from public ip
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How are you starting the service? What do the apache error logs say?
ASKER
service apache2 restart
I see the same error as above, I think it may be the name in the config file.
I see the same error as above, I think it may be the name in the config file.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
you mean add it in the default-ssl config file?
No, change ServerName in httpd.conf (it's commented out by default, so remove the # sign) and change it to your own fully qualified domain name of your server (aka 'server.domain.com').
Of course, I don't think this is your issue because you said it was working fine until you added the SSL config. I believe it's something you did in the SSL setup that is breaking it.
Of course, I don't think this is your issue because you said it was working fine until you added the SSL config. I believe it's something you did in the SSL setup that is breaking it.
ASKER
Thanks; i restored the old ssl config file. Here is the error I see now:
502 Bad Gateway - Response Error, a bad response was received from another proxy server or the destination origin server.
502 Bad Gateway - Response Error, a bad response was received from another proxy server or the destination origin server.
ASKER
actually fixed the 502 error. I think the issue is in the ports.conf file. Right now the first few lines read:
NameVirtualHost *:80
Listen 80
then there is an
<IfModule mod_ssl.c>
which has the Listen 443 within it.
Can someone verify the config for this an the ssl file?
NameVirtualHost *:80
Listen 80
then there is an
<IfModule mod_ssl.c>
which has the Listen 443 within it.
Can someone verify the config for this an the ssl file?
ASKER
THanks for the help everyone, got both http and https working!
Good work!
It should tell you what is causing the startup to fail.