How to automatically redirect HTTP to HTTPS on Apache servers?

Environment Centos with apache Trying to setup automatic redirection from http to https From manage.mydomain.com — To —> https://manage.mydomain.com I have tried adding the following to my httpd.conf but it didn’t work RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] Any ideas? 12 Answers 12

Apache Proxy: No protocol handler was valid

I am trying to proxy a subdirectory to another server. My httpd.conf: RewriteEngine On ProxyPreserveHost On RewriteRule .*subdir/ https://anotherserver/subdir/ [P] The problem is that Apache is always logging this: AH01144: No protocol handler was valid for the URL /subdir/. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included … Read more

Lost httpd.conf file located apache [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 9 years ago. Improve this question How can I find where my httpd.conf file is located? I am running an Ubuntu Linux server from the Amazon Web Services EC2 … Read more

Error message “Forbidden You don’t have permission to access / on this server” [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 3 years ago. Improve this question I have configured my Apache by myself and have tried to load phpMyAdmin on a virtual host, but I … Read more