How to use Apache 2 with HTTPS only?
Vinicius
cviniciusm at uol.com.br
Mon Jul 31 05:54:45 UTC 2006
Tim escreveu:
> 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.
>
Hello,
If I do an iptables rule to deny access to port 80 then any TCP/IP
packets will be dropped, so the redirect will not work, is that correct?
Regards,
Vinicius.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20060731/781a7212/attachment-0002.bin
More information about the users
mailing list