Results 1 to 2 of 2
I am configuring https for my apps. I managed to install/configure/restart apache. When it comes to configure https, I could not restart my apache2 service.
I have already created my ...
- 01-09-2007 #1Just Joined!
- Join Date
- Jun 2006
- Posts
- 1
configuring https for SLES 10
I am configuring https for my apps. I managed to install/configure/restart apache. When it comes to configure https, I could not restart my apache2 service.
I have already created my private key and certificates and have put it in /etc/apache2/ssl.crt/ and /etc/apache2/ssl.key/
But when I try to enable the mod_ssl by running yast2 and then navigating to Network Services, then HTTP Server, then server modules. I then clicked on toggle status for ssl to make sure it was enabled. Click finish it then gave error - cannot adjust apache2 service.
I try to restart the apache2 service but I got this instead -
Suse:/etc/apache2 # service apache2 restart
Syntax OK
Starting httpd2 (prefork) (9
Address already in use: make_sock: could not bind to address [::]:443
(9
Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
startproc: exit status of parent of /usr/sbin/httpd2-prefork: 1
I looked into the error log file for apache in var/log//apache2/error_log, below is the error message
[Tue Jan 09 12:11:02 2007] [notice] caught SIGTERM, shutting down
[Tue Jan 09 12:31:37 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Jan 09 12:31:37 2007] [notice] Apache/2.2.0 (Linux/SUSE) configured -- resuming normal operations
[Tue Jan 09 12:33:50 2007] [notice] caught SIGTERM, shutting down
pls advice...
- 03-30-2007 #2Just Joined!
- Join Date
- Mar 2007
- Posts
- 1
Sounds like you added port 443 as a listening port in the http server setup. Remove it - it doesn't need to be there.
If you havent already done it do the following:-
copy /etc/apache2/vhosts.d/vhost-ssl.template to /etc/apache2/vhosts.d/vhost-ssl.conf
Edit these lines in vhost-ssl.conf:-
# General setup for the virtual host
ServerName <Server Name>:443 <<< unrem and modify server name
ServerAdmin carandles@aol.com <<< unrem and modify email address
# Server Certificate Chain:
SSLCertificateChainFile /etc/apache2/ssl.crt/ca.crt <<<< unrem and modify cert name
# Certificate Authority (CA):
SSLCACertificatePath /etc/apache2/ssl.crt <<<< unrem and modify cert name
Depending on your needs you may need to make further changes.
restart apache
Chris.


Reply With Quote