You are not logged in.

#1 2005-03-19 23:06:47

bosewicht
Member
From: Honolulu, HI
Registered: 2004-05-29
Posts: 67

apache and ssl

So I have apache and ssl set up as https://site1.site.com and http://site.com. My prob is that everything that is https is directed to "/home/http/html/site1" and everything that is http  is directed to "/home/http/html/site", but the address remains whatever the user types in. so http://site1.site.com shows  "/home/http/html/site". Can i set up a redirect so apache redirects based on https so the address will change?


<b>There are 10 kinds of people in the world - those who understand binary
and those who don't.</b>

<b>I'm Steve and I'm a Super Villian</b>
http://www.rofl.name/flash/switchlinux4

Offline

#2 2005-03-19 23:38:50

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: apache and ssl

yes.

try putting this in your http.conf file...see if it works.
If it doesn't, it shouldn't be too far from what you need..

RewriteEngine on
RewriteCond %{REQUEST_URI}  ^site1.site.com [NC]
RewriteCond %{SERVER_PORT} ^80$ 
RewriteRule ^/.*$         https://site1.site.com/$1 [L,R]

"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-03-20 00:52:56

bosewicht
Member
From: Honolulu, HI
Registered: 2004-05-29
Posts: 67

Re: apache and ssl

I put it in httpd.conf, but i noticed that htaccess has:

RewriteEngine  on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?site.com/.*$ [NC]


Would i need to rewite this as well?  Thanks in advance


<b>There are 10 kinds of people in the world - those who understand binary
and those who don't.</b>

<b>I'm Steve and I'm a Super Villian</b>
http://www.rofl.name/flash/switchlinux4

Offline

Board footer

Powered by FluxBB