apache redirect to https isn't working
Hi,
I've installed owncloud on my Centos 7 VPS. It works fine and I've also enabled ssl. Of course, the problem now is that clients are not automatically redirected to https. So I tried using Redirect / https://example.com, but it doesn't work. It says, "the page isn't directing properly" on Firefox. In Safari it asks me to accept a certificate (my self-signed certificate) and then it says "Safari can't open the page". If I try running example.com/owncloud, it's the same thing. Here is part of my httpd.conf: Code:
ServerRoot "/etc/httpd" It's worth mentioning that if I delete the Redirect directive, the server works fine. |
Hi,
You should put the Redirect directive inside the http vhost definition or else you're going in a loop. And you need a trailing slash at the https URL: Code:
<VirtualHost *:80> |
All times are GMT -5. The time now is 11:24 AM. |