Re: [users@httpd] Virtual Hosting and SSL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 19 Dec 2005, Jerry Baker wrote:
Currently I have to set up one container for "regular" port 80 access and another container for SSL access. Since each virtual host has a large and massively different configuration than the others, it is a pain to make sure that the port 80 vhost and the SSL vhost configurations remain synchronized.

Use includes. My config (for one ssl and plain vhost) is something like:

<VirtualHost *:80>
	Include /etc/httpd/partial-sites/foo.conf
</VirtualHost>
<VirtualHost 192.168.1.1:443>
	SSLEngine on
	SSLCertificateFile    ssl/foo.crt
	SSLCertificateKeyFile ssl/foo.pem
	SSLCACertificateFile  ssl/CA_Test.crt

	Include /etc/httpd/partial-sites/foo.conf
</VirtualHost>


And then in /etc/httpd/partial-sites/foo.conf I have all the common stuff (server name, document root, directory entries etc)

Nick

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux