[NTLUG:Discuss] Apache SSL Madness - SuSE10.0

Greg Edwards greg at nas-inet.com
Tue Jan 1 11:26:22 CST 2008


Stephen Davidson wrote:

>>> When I turn on SSL in the /etc/sysconfig/apache2, Apache starts
>>> listening in SSL both on port 80, and port 443.
>>>
>>> In the sysconfig file, I am setting;
>>> APACHE_SERVERS_FLAGS="SSL".
>>>
>>> I DO have ssl enabled in APACHE_MODULES.  And everything works when
>> SSL
>>> is enabled -- just that Port 80 is working in SSL as well, rather than
>>> unencrypted.
>>>
>>> So, how do I get Apache to listen non-ssl on port 80, and SSL on port
>>> 443?
>>>
>>> - -Steve
>> In your apache config files setup both port 80 and port 443 mappings.
>>
>> --
>> Greg Edwards
>>
> Hi Greg.
> 
> Did not see this earlier when I was researching how to set up.  Where do
> I find the details for the syntax?
> 
> Thanks,
> Steve
> 

Steve,

in /etc/httpd/config/vhosts/Vhost.conf

NameVirtualHost w.x.y.z:80

   <VirtualHost w.x.y.z:80>
     DocumentRoot /your/host/dir/here
     ServerName your.domain.name
   </VirtualHost>

in /etc/httpd/conf.d/41_mod_ssl.default-vhost.conf

NameVirtualHost w.x.y.z:443

   <VirtualHost w.x.y.z:443>

#  General setup for the virtual host

     DocumentRoot "/your/host/dir/here"
     ServerName your.domain.name
     ServerAdmin admin at domain.name
   </VirtualHost>
====================================================

Review the settings in the 41_mod_ssl file to make sure everything is 
turned on properly.

Good luck

-- 
Greg Edwards



More information about the Discuss mailing list