Re: How to use Apache 2 with HTTPS only?

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

 



On Sun, 2006-07-30 at 07:45 -0300, Vinicius wrote:

> I'm using FC5 and Apache 2. Apache 2 is using SSL, but I would like to
> serve only HTTPS.
> 
> How to use Apache 2 with HTTPS only, please?

If you're talking about to the public, and it not mattering about to the
localhost, and you mean not serving HTTP and HTTPS, then that's probably
easy enough to do in a few different ways, probably in combination:

Change the Listen directive in the main (HTTP / port 80) configuration
to not listen to the public interface.

Set the DocumentRoot directive in the main configuration so that it
can't serve out the files that your HTTPS site does.  Additionally, use
a re-write rule so that visitors are redirected to the HTTPS address.

You can set up firewall rules blocking port 80, but I'd recommend
against doing this by itself.  You'd be relying on your firewall,
instead of simply configuring the server appropriately.

-- 
(Currently running FC4, occasionally trying FC5.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux