Re: [users@httpd] virtual host double slash effect, need solution

2017-07-16 Thread David Mehler
Hello, Thanks. That sure made my file easier to handle. One thing can I using redirect go from http to https? Like example.com redirects to https://www.example.com? Thanks. Dave. On 7/16/17, Daniel wrote: > Redirect is simpler as you can see, it redirects everything, it has a > regex version

Re: [users@httpd] virtual host double slash effect, need solution

2017-07-16 Thread Daniel
Redirect is simpler as you can see, it redirects everything, it has a regex version called RedirectMatch. Both are provided by mod_alias. RewriteRule is for more complex things, yes it can redirect too, but as you have seen yourself, the most simple thing can bring confusion. RewriteRute is provid

Re: [users@httpd] virtual host double slash effect, need solution

2017-07-16 Thread David Mehler
Hello, Thanks. I'll try the rewrite redirect. With regards the redirect option, the simpler way, does it do the tls conversion unsecure to secure? What would the advantages/disadvantages of rewrite and redirect? Thanks. Dave. On 7/16/17, Daniel wrote: > And while at it why not use simple Redi

Re: [users@httpd] virtual host double slash effect, need solution

2017-07-16 Thread Daniel
And while at it why not use simple Redirect's since your config fits perfectly to use them: ServerName example.com Redirect / http://www.example.com/ simpler, gets the job done, and you don't need a cannon to smash a fly. 2017-07-16 17:48 GMT+02:00 Luca Toscano : > Hi David, > > 2017-

Re: [users@httpd] virtual host double slash effect, need solution

2017-07-16 Thread Luca Toscano
Hi David, 2017-07-15 3:11 GMT+02:00 David Mehler : > Hello, > > I'm running Apache 2.4 on a FreeBSD 10.3 system, with several virtual > hosts. My goal is to have all of them completely ssl, except for the > .well-known area needed for letsencrypt. > > > ServerName example.com > RewriteEn

[users@httpd] virtual host double slash effect, need solution

2017-07-14 Thread David Mehler
Hello, I'm running Apache 2.4 on a FreeBSD 10.3 system, with several virtual hosts. My goal is to have all of them completely ssl, except for the .well-known area needed for letsencrypt. I'm getting a double slash effect, for example example.com// and similar for other virtual hosts. I've googl