I have solve that by more virtual hosts. Now it is working but another problem occurs: When URL is entered like: https://<IP_address>/APPL1/index.html and it is redirecting to https://<IP_address>/APPL1/index.jsp then is returns me HTTP 404 because of https://<IP_Address>/APPL1indexjsp. WITHOUT /.
Do you know where can be a problem? Can that be solved by ProxyHTMLURLMap? Thank you in advance Dne 27. července 2011 15:46 Eric Covener <[email protected]> napsal(a): > On Wed, Jul 27, 2011 at 9:35 AM, Stefan Fritsch <[email protected]> wrote: >> On Wednesday 27 July 2011, Petr Hracek wrote: >>> Dear users, >>> >>> I have one simple question. >>> Is there any possibility how to "call" module from the another >>> module? >>> >>> Let's say that my module is used for checking whether user is >>> logged, session is expired, etc. >>> When all those tests are satisfied then URL which was checked by my >>> module is redirect to another module e.g proxy? >>> >>> https://<IP_address>/APPL1 should be authenticated by my own >>> proprietary module and when this is successed then it is redirect >>> to proxy defined in /etc/apache/conf/my_conf.conf file >>> >>> <VirtualHost _default_:443> >>> SSLEngine on >>> SSLProxyEngine on >>> ProxyRequests Off >>> TraceEnable Off >>> >>> <Proxy *> >>> AuthType SEC_CHECK >>> require valid-user >>> satisfy Any >>> </Proxy> >>> </VirtualHost> >>> >>> ProxyPass /APPL1 http://192.0.2.20:8080/APPLONE >>> ProxyPassReverse /APPL1 http://192.0.2.20:8080/APPLONE >>> >>> AuthType in my module SEC_CHECK is defined so: >>> #defined SECURITY_AUTH_CHECK "SEC_CHECK" >>> r->ap_auth_type = SECURITY_AUTH_CHECK >>> Is this "behaviour" possible? >> >> mod_proxy should handle the request with you having to do anything in >> your module. Have you tried replacing your auth module with basic auth >> and checked if that works? If no, there is likely some other problem >> in your config. >> > > If it wasn't already intended to be reverse proxied, or successful > auth in your mod changes where it's destined for, see how mod_rewrite > implements the [P] flag to pass along a request to mod_proxy. > > -- > Eric Covener > [email protected] > -- Best Regards / S pozdravem Petr Hracek
