Re: [users@httpd] Apache 2.4 : Rewrite to keep the original URL

2017-03-13 Thread Robert Moskowitz
Fabio, Right now I am not in the position to test this. Your .conf attempt looks a LOT like what I tried. I was told: Rewriterules and https. Actually, looking at what you have doesn't really tell me why it gets applied to everything and not just the webmail. However, I'd say that your rou

Re: [users@httpd] Apache 2.4 : Rewrite to keep the original URL

2017-03-11 Thread Marat Khalili
Best way is to avoid redirects completely: show requested application page if user is authenticated, otherwise show login page. This is what happens if you use apache authentication modules, like mode_auth_basic (warning: SSL is mandatory for it). Some applications use redirects, but pass origin

[users@httpd] Apache 2.4 : Rewrite to keep the original URL

2017-03-11 Thread Fabio S. Schmidt
Hi, I'm trying to setup an environment with a frontend interface which login and redirects to my application. The scenario is: The user access with webmail.domain.com and the login page redirects to the application, running on the same host, but on port 81. How could I keep the original URL? I m