[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 21 July 2002 11:23 am, kevin bailey wrote:
does anyone know how to set up multiple secure sites on one apache web-server. as far as i know only one HTTPS site can be set up per apache install. any ideas???
Just create a new virtualhosts for each one you want to create. The only different think they *need* is an IP address or port number: fiirst, make then as virtual hosts... NameVirtualHost 192.168.0.1:80 NameVirtualHost 192.168.0.1:443 NameVirtualHost 192.168.0.2:443 NameVirtualHost 192.168.0.3:443 NameVirtualHost 192.168.0.4:443 then for each SSL webstite you want to create, just create a sdtabdard vhost entry: <VirtualHost 192.168.0.1:443> SSLEngine on DocumentRoot /path/to/doc/root/ ServerName ssl-blah.domain.som SSLCertificateFile /etc/apache/ssl.crt/server.crt SSLCertificateKeyFile /etc/apache/ssl.key/server.key SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown ServerAdmin support@xxxxxxx </VirtualHost> <VirtualHost 192.168.0.2:443> SSLEngine on ServerAdmin support@xxxxxxx DocumentRoot /var/www/sslmoo/ ServerName ssl2.anlx.net </VirtualHost> ## this one will keep your normal site on port 80. <VirtualHost 192.168.0.1:80> ServerName notssl.domain.com SSLEngine off ServerAdmin theo@xxxxxxxx DocumentRoot /home/web/moo/ </VirtualHost> ## Or ifyou wanted to redirect people from 80 to 443: <VirtualHost 192.168.0.1:80> ServerAdmin bla@xxxxxxx ServerName my.anlx.net Redirect / https://my.anlx.net/ </VirtualHost> - -- Theo Zourzouvillys http://zozo.org.uk/ Beware the one behind you. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9OpCm448CrwpTn6YRAkbuAJ4ouTlC72K6E5KgfuPrpPHrwVfV6gCeL4IG MBS5sCnR4UuuDzjiKco5ytw= =F/fx -----END PGP SIGNATURE----- -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.