[users@httpd] Re: mod_rewrite behavior when port is specified

2017-03-06 Thread Paul Schroeder
Ah, I see what was going on. The port being included in the HTTP_HOST var was causing the initial rewrite to be written as an invalid URL. It appears the mod_rewrite was then assuming that this wasn't actually a redirect and that it needed to prepend the '/' because of this. I was distracted by

[users@httpd] mod_rewrite behavior when port is specified

2017-03-06 Thread Paul Schroeder
Hello.. I'm seeing an issue where mod_rewrite seems to behave differently when the client connects to my VirtualHost and includes the port as a part of the URL. i.e. http://xenial.localdomain vs. http://xenial.localdomain:80 With this RewriteRule, the redirection that I want (to my SSL VirtualH

Re: [users@httpd] Help with rewriterule

2017-03-06 Thread Robert Moskowitz
Luca, Thank you for replying. On 03/06/2017 04:07 AM, Luca Toscano wrote: Hi Robert, 2017-03-05 21:57 GMT+01:00 Robert Moskowitz >: Hello, This is for Apache 2.4 on Centos7. I am migrating from Apache 2.2 on Centos6. I want to support redirecti

Re: [users@httpd] httpd 2.4.25-1.fc25 avoiding search permission errors across file systems Fedora 25 linux

2017-03-06 Thread David B Snyder
Thanks, this seems to have worked! I guess I need to learn about SELinux now. :) On 03/05/2017 06:04 PM, Robert Moskowitz wrote: Are you running SELinux? Have you done the needed: chcon -R -t httpd_sys_content_rw_t /diretory commands? On 03/05/2017 05:48 PM, David B Snyder wrote: I am tryi

Re: [users@httpd] mod_lua and subprocess_env

2017-03-06 Thread Yann Ylavic
Hi Andrei, On Mon, Mar 6, 2017 at 10:15 AM, Andrei Ivanov wrote: > On Thu, Mar 2, 2017 at 12:40 PM, Andrei Ivanov > wrote: > >> On Tue, Feb 28, 2017 at 12:09 PM, Andrei Ivanov >> wrote: >> >>> On Mon, Feb 27, 2017 at 11:58 AM, Andrei Ivanov >> > wrote: >>> On Fri, Feb 24, 2017 at 10:58 PM

Re: [users@httpd] mod_lua and subprocess_env

2017-03-06 Thread Andrei Ivanov
On Thu, Mar 2, 2017 at 12:40 PM, Andrei Ivanov wrote: > On Tue, Feb 28, 2017 at 12:09 PM, Andrei Ivanov > wrote: > >> On Mon, Feb 27, 2017 at 11:58 AM, Andrei Ivanov >> wrote: >> >>> On Fri, Feb 24, 2017 at 10:58 PM, Andrei Ivanov >> > wrote: >>> On Feb 24, 2017 22:54, "Yann Ylavic" wrote

Re: [users@httpd] Help with rewriterule

2017-03-06 Thread Luca Toscano
Hi Robert, 2017-03-05 21:57 GMT+01:00 Robert Moskowitz : > Hello, > > This is for Apache 2.4 on Centos7. I am migrating from Apache 2.2 on > Centos6. > > I want to support redirecting all webmail queries to https. for either > queries to: > > webmail.foo.com or foo.com/webmail > > My old rules