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.
I have a web page shared as a http site. I then installed SSL certificates and the same site is now available using https. How do I stop the httpd:// version from being available? Both can be accessed right now.
I am running Apache 2.0.52 on a Red Hat ES4 server.
I just looked up the rewrite info on the Apache.org site. It will take a little time to read it (about 20 pages), but it looks like it should work. i will reply with results when i get it implemented. Thanks for the direction.
You should be able to comment out the line Listen 80 (Apache 2.0) and remove references to virtual hosts listening on port 80. That way, you're only listening for requests on port 443.
Thank you all for the suggestions. I have used the suggestion from gilead as I think it is the simplest and most efficient. With Listen 80 remarked out I get page not found with the http:// and only the https:// answers.
Is there a thread that actually talks about how to convert a HTTP Apache install already in service to the secure HTTPS?
I know this thread is old, but it should be renamed to how to disable HTTPD which is what it talks about.
Thanks
You can find this information online pretty easily IF you know what to look for.
If you don't already have a certificate on your server, you'll want to search first for information on purchasing an SSL certificate or creating a self-signed certificate, and installing it. You can do that by searching for (for example):
Quote:
SSL CentOS apache
Of course you'll need to take your own OS into consideration.
Then you need to search for information on redirecting http connections to https connections. To find this information you could look for:
Quote:
apache rewrite https
You may wish to adjust your search criteria depending on whether you want to redirect your entire webserver/domain or just certain directories.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.