LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-28-2007, 08:12 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
Configuring Automatic Redirects from port 80 to port 443 with bundled Apache server


Hi there --

We have a system running Fedora Core 7 with the bundled Apache server. I would like to have connections made to port 80 (http) be automatically redirected to port 443 (https). What is the best way to accomplish this? Thanks.
 
Old 12-28-2007, 08:30 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
You may use the rewrite engine for that:

Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://your.website.example.com/ [R]
 
  


Reply



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
Apache Port 443 Verbal Kint Linux - Software 0 10-04-2005 03:07 AM
apache mod_ssl not using port 443 davidsrsb Slackware 8 06-07-2005 10:33 AM
Webmin On TCP port 443...but with Apache Mod_ssl installed... ech310n Linux - Networking 6 01-27-2004 04:10 PM
FAVICON with apache server at port 443 doesn't seem 2 work ganninu Linux - General 0 12-21-2003 03:58 AM
Apache won't answer on Port 80, but will on 443 KevinJ Linux - Software 10 02-04-2003 08:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:16 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
Open Source Consulting | Domain Registration