Problem with configuring Reverse Proxy and VirtualHost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear user,

I am a new bie in Reverse Proxy configuration but something is wrong
and I really do not know
where can be a problem.

My configuration of Virtual Host is following:
<VirtualHost *:443>
        SSLEngine on
        SSLProxyEngine on
        ServerName main_assistant
        ProxyPreserveHost on
        ProxyRequests off
        TraceEnable off
        DocumentRoot "/opt/apache/htdocs/ssldocs"
              <Location "/APPL/">
                    require valid-user
                    ProxyPass  http://192.0.2.25:8080/SECAdmin
                    ProxyPassReverse  http://192.0.2.25:8080/SECAdmin
                    ProxyPassReverseCookiePath /SECAdmin /APPL
                </Location>
</VirtualHost>

<VirtualHost 192.0.2.25:8080>

ServerName APPL
#ProxyPreserveHost on
ProxyRequests Off
TraceEnable Off
Include /opt/apache/conf/sslcrtcnf/current.conf

# Possible values: debug, info, notice, warn, error, crit, alert, emerg.
ErrorLog "|/opt/apache/bin/pipelogs /var/log/apache2/appl_log 640000"
LogLevel debug
LogFormat "%v %h %l %u \"%r\" %>s %b Port: %p Pid: %P User-Agent:
\"%{User-Agent}i\" Cookie: \"%{Cookie}i\""
TransferLog "|/opt/apache/bin/pipelogs /var/log/apache2/access_log 640000"

</VirtualHost>

But when I am accessing https://<ip_address>/APPL/
in the log I see following:

[Fri Aug 12 16:13:56 2011] [debug] mod_proxy_http.c(56): proxy: HTTP:
canonicalising URL //192.0.2.25:8080/SECAdminAuthServlet
[Fri Aug 12 16:13:56 2011] [debug] udsc_handlers.c(3419): udsc_fixups
/APPL/AuthServlet
[Fri Aug 12 16:13:56 2011] [debug] proxy_util.c(1506): [client
10.7.254.50] proxy: http: found worker http://192.0.2.25:8080/CBAdmin
for http://192.0.2.25:8080/SECAdminAuthServlet, referer:
https://10.6.40.5/test/APPL.html
[Fri Aug 12 16:13:56 2011] [debug] mod_proxy.c(1015): Running scheme
http handler (attempt 0)
[Fri Aug 12 16:13:56 2011] [debug] mod_proxy_ajp.c(655): proxy: AJP:
declining URL http://192.0.2.25:8080/SECAdminAuthServlet
[Fri Aug 12 16:13:56 2011] [debug] mod_proxy_http.c(1973): proxy:
HTTP: serving URL http://192.0.2.25:8080/SECAdminAuthServlet

As you can see there is missing character "/" and URL has to be:
/SECAdmin/AuthServlet

Where I have made a mistake in configuration?

Does it mean the VirtualHost has to have the same name ServerName APPL
as URL is mentioned?
Each VirtualHost should have its own webserver(apache2,tomcat5...) or
it is enought to specify only URL page.

Thank you in advance

-- 
Best Regards / S pozdravem
Petr Hracek

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux