You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jerry Baker <je...@bakerweb.biz> on 2005/12/19 21:00:52 UTC
[users@httpd] Virtual Hosting and SSL
I have several name-based virtual hosts up and running with no issues,
and the same for SSL. However, I get the feeling that the way I have it
currently is not the optimum way. 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. Is there
a way to configure a vhost so that the "regular" access and SSL access
use the same configuration (other than using config file includes)?
Thanks.
--
Jerry Baker
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Virtual Hosting and SSL
Posted by Jerry Baker <je...@bakerweb.biz>.
Nick Burch wrote:
> <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>
This is *exactly* what I have now, but it just seemed awkward.
Thanks for the reply.
--
Jerry Baker
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Virtual Hosting and SSL
Posted by Nick Burch <ni...@torchbox.com>.
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Virtual Hosting and SSL
Posted by Jerry Baker <je...@bakerweb.biz>.
Jerry Baker wrote:
> Is there
> a way to configure a vhost so that the "regular" access and SSL access
> use the same configuration (other than using config file includes)?
I guess another way of putting it is, I am looking to see if it is
possible to just tell Apache that anything on port 443 is to be treated
as SSL and anything on port 80 is to be treated as normal HTTP? It seems
awkward and clumsy to have to have two virtual hosts for every real
virtual host just to include SSL.
--
Jerry Baker
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org