[CentOS] Re: webserver setup

Ugo Bellavance ugob at lubik.ca
Fri Nov 23 13:04:52 UTC 2007

Andreas Kuntzagk wrote:
> Hi,
> I have setup a webserver on CentOS 4.5 with NameVirtualHost.
> Two VirtualHost should be reachable by port 80 from outside, while the
> third (default) should be only reachable by https from outside but by
> http from inside. 
> Since all share the same IP firewalling seems to be out of question. So
> is there a way to restrict that in Apache config?
> regards, Andreas

Configure your virtualhosts

a "SSLRequireSSL" directive would force it to be https only.  When using 
http, it would give "Permission denied".  Or a mod_rewrite.

Or you could also configure your http virtualhosts in httpd.conf, while 
configuring your https VH in ssl.conf.


More information about the CentOS mailing list