Re: [users@httpd] Redirecting virtual host to https in Apache 2.4

2014-02-18 Thread David Mehler
Hello, My thanks to everyone who helped. What I did was set up an additional virtual host which points to the https one with a rewrite. It's probably not the best way, but it does work. Here's my config: ServerAdmin xxx ServerName webmail.example.com ServerAlias webmail.example.c

Re: [users@httpd] Redirecting virtual host to https in Apache 2.4

2014-02-18 Thread Eric Covener
On Tue, Feb 18, 2014 at 4:27 PM, David Mehler wrote: > That hostname instead of * or an IP is almost always the source of these errors. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mai

Re: [users@httpd] Redirecting virtual host to https in Apache 2.4

2014-02-18 Thread Michel Labarre
Must works with this RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Le 18/02/2014 22:27, David Mehler a écrit : Hello, I'm running Apache 2.4 on an FC20 box. It's running several name based virtual hosts. I've set up one name based virtual host o

Re: [users@httpd] Redirecting virtual host to https in Apache 2.4

2014-02-18 Thread Yehuda Katz
That implies that you are not hitting the VirtualHost that you expect. This is the exact configuration I use on one of my servers: RewriteEngine On RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Can you look at your access logs and see which VirtualHost you are accessing? You can use

[users@httpd] Redirecting virtual host to https in Apache 2.4

2014-02-18 Thread David Mehler
Hello, I'm running Apache 2.4 on an FC20 box. It's running several name based virtual hosts. I've set up one name based virtual host on port 443 I'll call it webmail.example.com. When a user goes to https://webmail.example.com the connection encrypts, the page is displayed. Here's the original ve