LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-01-2010, 09:32 AM   #1
bates
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 0
Redirect HTTP to HTTPS:


Hi. I am not new to Linux but new to apache. Here is my issue. We have a server running Cygwin on a windows server which is running a website. Hope I explained that correctly. I want to redirect the http requests to https. You can access the website through both at this moment, but we want to have all http requests redrect to https. How do I do this? I have looked online but not sure if I understand. Can someone explain to me how to do this? Thanks for all help
 
Old 10-01-2010, 09:41 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Use a RewriteRule. There are 28410478120 tutorials on the Web about this. Plus, I answered this same question yesterday: you could even do a LQ search to get your answer.
 
Old 10-01-2010, 09:57 AM   #3
bates
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
Use a RewriteRule. There are 28410478120 tutorials on the Web about this. Plus, I answered this same question yesterday: you could even do a LQ search to get your answer.
I wrote I searched the internet. If the answer was as plain as day I would not have posted the thread. While I have seen a gazillion posts on rewrite rules, I don't see where or how I enter them. What config file do I edit or do I edit from the shell, those are the questions I am asking. Never had to edit a server running apache or linux for that matter.
 
Old 10-01-2010, 10:34 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
httpd.conf, usually. Which is usually in /etc/httpd/conf, but I couldn't tell you where it would be on Cygwin.
 
Old 10-01-2010, 11:10 AM   #5
bates
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
httpd.conf, usually. Which is usually in /etc/httpd/conf, but I couldn't tell you where it would be on Cygwin.
I found it. It was in the program folder of the program Cygwin installed, I guess thats how it worked. I made the rewrite changes and restarted the service and it worked without a hitch. Thanks. Man linux is so cool, but takes time to get use to. Leave to us Windows children to be all confused, lol. Thanks dude.
 
  


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
redirect http to https nagavinodh Linux - Newbie 3 09-24-2009 08:34 AM
redirect https request to http after user authentication r.r.vishwanath@gmail.com Linux - Newbie 1 01-31-2009 11:42 AM
How to redirect http to https? Sovan Linux - Server 1 12-03-2008 01:11 PM
redirect http to https awreneau Linux - Server 17 10-14-2008 09:13 AM
redirect SquirrelMail from http to https using Apache2 cccc Linux - Server 3 09-23-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:08 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