Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.