Re: how do i redirect web trafic from port 80 to 443

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

 



Am So, den 04.01.2004 schrieb Technical um 20:34:

[ nothing - no text in body ]

What do you mean exactly with your question in the subject? Do you mean
redirection of IP traffic normally done with iptables? That won't surely
not do what you want.

Probably you want to enforce a redirection webpage calls on your Apache
with HTTP to a HTTPS site. You can do that for instance this way using
mod_rewrite:

<Directory /var/www/html/phpMyAdmin>
    RewriteEngine       on
    RewriteCond         %{SERVER_PORT} !=443
    RewriteRule         ^.* - [F]
    ErrorDocument       403 https://www.otherdomain.tld/
</Directory>

So if you access http://www.domain.de/phpMyAdmin/ (which is port 80) you
will be directed to the HTTPS address given as the ErrorDocument.

Alexander
 

-- 
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416  14CD E197 6E88 ED69 5653




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

  Powered by Linux