On Wed, Mar 21, 2007 at 02:15:57AM +0100, Gabor HALASZ wrote: > Nagy Gabor Peter wrote: > > Valami olyasmit akarok, hogy ha beesik egy http keres a gep 80-as > > portjara, az keruljon a https portra (atiranyitas, vagy ilyesmi, nem > > tudom, kell-e tobb annal, minthogy az iptables csinal egy DNAT-ot). > > > Ne bonyolitsd, csinalsz 2 virtual hostot, az egyik http, a masik https, > a http-re csinalsz egy index.html-elt, amiben ez van: <meta > HTTP-EQUIV="REFRESH" content="0; > url=https://www.yourdomain.com/index.html">, a https-en meg figyel a > szerver.
Apache alatt valami ilyesmivel szoktak megoldani: RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L] Az nem mukodik, hogy csomagszurovel atrakod, mert egesz maskepp zajlik a http es a https kapcsolat. -- Udvozlettel Zsiga _________________________________________________ linux lista - linux@mlf.linux.rulez.org http://mlf2.linux.rulez.org/mailman/listinfo/linux