LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2009, 12:12 AM   #1
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
http to https automatically


Hi,
We installed apache 2.0.63 on red hat 4.2.we would like to use as a proxy server.And also we installed TEST self signed certificate.how to redirect all the http to https permanently.
 
Old 11-04-2009, 01:36 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

Look into mod_rewrite for apache, that should do it.
mod_rewrite

Kind regards,

Eric
 
Old 11-04-2009, 03:26 AM   #3
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,285

Rep: Reputation: 61
This is what is use for the rewrite on my server for all webmail to redirect to https, just edit it to suit your needs.

Quote:
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^/webmail(.*)$ https://%{HTTP_HOST}/webmail$1 [L,R]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to redirect http to https? Sovan Linux - Server 1 12-03-2008 02:11 PM
http > https for 1 of 6 sites hivtop Fedora 1 03-11-2008 02:27 PM
http and https wennie Linux - Software 1 04-01-2005 12:47 PM
HTTP to HTTPS shegde Linux - Software 8 01-31-2003 05:29 AM
https or http? antken Programming 3 10-30-2002 06:06 PM


All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration