On Fri, Jun 11, 2010 at 9:01 PM, Tom Evans <tevans.uk@xxxxxxxxxxxxxx> wrote: > OK, that makes everything clearer. > > BTW, you are proxying /mingle/. That final / has meaning, please be > precise about whether something has a trailing slash or not. Your > first examples of attempting to access '/mingle/' through the proxy I am confused with the word proxy in the documents. > were requesting the URL '/mingle', which is why you got 404s. You did > later show logs where you had requested it properly, so I could > understand, but you must use the correct URLs, or things _wont_ work. > > OK, so when you go to the proxy and request a mingle URL, the mingle > server returns this Location header: > Location: http://site.mydomain.com/profile/login > > When you go directly, by specifying the IP address, the mingle server > returns this Location header: > Location: http://localhost:8080/profile/login > > When this is processed by the proxy, it must be rewritten to this: > Location: http://site.mydomain.com/mingle/profile/login > > so change this line in the configuration: > ProxyPassReverse /mingle/ http://192.168.1.10:8080/ > > to this: > ProxyPassReverse /mingle/ http://site.mydomain.com/ I did I did get a page when I accessed from my laptop as ( I do not have a DNS entry for this) http://site.mydomain.com/mingle the URL in browser got changed to http://software.openitup.in/mingle/profile/login but CSS and Javascripts were broken and this was not the correct page. The headers of this instance from my laptop are (I have posted more headers from all servers) http://site.mydomain.com/mingle GET /mingle HTTP/1.1 Host: site.mydomain.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Cookie: SESS440c87567d2953541cb9726c24c2fe5f=dpc7834qqbv8ds8ct7b18129o1; SESSc7d2ae400a554b03caf14d856186f992=7l2b3etbtgmf15s0scbgg2uke7 HTTP/1.0 302 Moved Temporarily Date: Fri, 11 Jun 2010 16:19:23 GMT Server: Jetty(6.1.19) Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Location: http://site.mydomain.com/mingle/profile/login X-Runtime: 80 Set-Cookie: mingle_3_1_session_id=92be88f857dbe501e520b97a75cc2ebb; path=/; HttpOnly Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 110 X-Cache: MISS from cachingserver X-Cache-Lookup: MISS from cachingserver:80 Via: 1.0 site.mydomain.com, 1.0 cachingserver:80 (squid/2.6.STABLE6) Proxy-Connection: keep-alive ---------------------------------------------------------- http://site.mydomain.com/mingle/profile/login GET /mingle/profile/login HTTP/1.1 Host: site.mydomain.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Cookie: SESS440c87567d2953541cb9726c24c2fe5f=dpc7834qqbv8ds8ct7b18129o1; SESSc7d2ae400a554b03caf14d856186f992=7l2b3etbtgmf15s0scbgg2uke7; mingle_3_1_session_id=92be88f857dbe501e520b97a75cc2ebb HTTP/1.0 404 Not Found Date: Fri, 11 Jun 2010 16:19:23 GMT Server: Jetty(6.1.19) Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 1068 X-Cache: MISS from cachingserver X-Cache-Lookup: MISS from cachingserver:80 Via: 1.0 site.mydomain.com, 1.0 cachingserver:80 (squid/2.6.STABLE6) Proxy-Connection: close ---------------------------------------------------------- http://site.mydomain.com/javascripts/base_packaged.js?1270057297 GET /javascripts/base_packaged.js?1270057297 HTTP/1.1 Host: site.mydomain.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8 Accept: */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Referer: http://site.mydomain.com/mingle/profile/login Cookie: SESS440c87567d2953541cb9726c24c2fe5f=dpc7834qqbv8ds8ct7b18129o1; SESSc7d2ae400a554b03caf14d856186f992=7l2b3etbtgmf15s0scbgg2uke7; mingle_3_1_session_id=92be88f857dbe501e520b97a75cc2ebb HTTP/1.0 404 Not Found Date: Fri, 11 Jun 2010 16:19:23 GMT Server: Apache/2.2.14 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 256 Content-Type: text/html; charset=iso-8859-1 X-Cache: MISS from cachingserver X-Cache-Lookup: MISS from cachingserver:80 Via: 1.0 site.mydomain.com, 1.0 cachingserver:80 (squid/2.6.STABLE6) Proxy-Connection: close ---------------------------------------------------------- http://site.mydomain.com/stylesheets/base_packaged.css?1270057297 GET /stylesheets/base_packaged.css?1270057297 HTTP/1.1 Host: site.mydomain.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8 Accept: text/css,*/*;q=0.1 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Referer: http://site.mydomain.com/mingle/profile/login Cookie: SESS440c87567d2953541cb9726c24c2fe5f=dpc7834qqbv8ds8ct7b18129o1; SESSc7d2ae400a554b03caf14d856186f992=7l2b3etbtgmf15s0scbgg2uke7; mingle_3_1_session_id=92be88f857dbe501e520b97a75cc2ebb HTTP/1.0 404 Not Found Date: Fri, 11 Jun 2010 16:19:24 GMT Server: Apache/2.2.14 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 255 Content-Type: text/html; charset=iso-8859-1 X-Cache: MISS from cachingserver X-Cache-Lookup: MISS from cachingserver:80 Via: 1.0 site.mydomain.com, 1.0 cachingserver:80 (squid/2.6.STABLE6) Proxy-Connection: close ---------------------------------------------------------- http://site.mydomain.com/images/mingle-logo.png?1270057297 GET /images/mingle-logo.png?1270057297 HTTP/1.1 Host: site.mydomain.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8 Accept: image/png,image/*;q=0.8,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Referer: http://site.mydomain.com/mingle/profile/login Cookie: SESS440c87567d2953541cb9726c24c2fe5f=dpc7834qqbv8ds8ct7b18129o1; SESSc7d2ae400a554b03caf14d856186f992=7l2b3etbtgmf15s0scbgg2uke7; mingle_3_1_session_id=92be88f857dbe501e520b97a75cc2ebb HTTP/1.0 404 Not Found Date: Fri, 11 Jun 2010 16:19:24 GMT Server: Apache/2.2.14 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 253 Content-Type: text/html; charset=iso-8859-1 X-Cache: MISS from cachingserver X-Cache-Lookup: MISS from cachingserver:80 Via: 1.0 site.mydomain.com, 1.0 cachingserver:80 (squid/2.6.STABLE6) Proxy-Connection: close ---------------------------------------------------------- http://site.mydomain.com/mingle.ico?1270057297 GET /mingle.ico?1270057297 HTTP/1.1 Host: site.mydomain.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Cookie: SESS440c87567d2953541cb9726c24c2fe5f=dpc7834qqbv8ds8ct7b18129o1; SESSc7d2ae400a554b03caf14d856186f992=7l2b3etbtgmf15s0scbgg2uke7; mingle_3_1_session_id=92be88f857dbe501e520b97a75cc2ebb HTTP/1.0 404 Not Found Date: Fri, 11 Jun 2010 16:19:27 GMT Server: Apache/2.2.14 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 244 Content-Type: text/html; charset=iso-8859-1 X-Cache: MISS from cachingserver X-Cache-Lookup: MISS from cachingserver:80 Via: 1.0 site.mydomain.com, 1.0 cachingserver:80 (squid/2.6.STABLE6) Proxy-Connection: close ---------------------------------------------------------- When I accessed from the Proxy Server where these tests were done I got a 404 not found. Here are the headers on Proxy Server after I did experiment as you suggested. http://site.mydomain.com/mingle GET /mingle HTTP/1.1 Host: site.mydomain.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Cookie: SESS440c87567d2953541cb9726c24c2fe5f=tdn7dej7oh2mnak8cj9k4jc532 HTTP/1.1 404 Not Found Date: Fri, 11 Jun 2010 16:13:38 GMT Server: Apache/2.2.14 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 241 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: text/html; charset=iso-8859-1 ---------------------------------------------------------- And here are the headers when site was accessed locally on that PC where it is hosted. although I did not do any changes on where mingle is hosted but still posting if it can give some clue. http://localhost:8080/ GET / HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive HTTP/1.1 302 Found Content-Type: text/html; charset=utf-8 Set-Cookie: mingle_3_1_session_id=0c2d5039406a3b81568d55e544a5a13d; path=/; HttpOnly Cache-Control: no-cache Location: http://localhost:8080/profile/login X-Runtime: 86 Content-Length: 101 Server: Jetty(6.1.19) ---------------------------------------------------------- http://localhost:8080/profile/login GET /profile/login HTTP/1.1 Host: localhost:8080 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Cookie: mingle_3_1_session_id=0c2d5039406a3b81568d55e544a5a13d HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Set-Cookie: mingle_3_1_session_id=0c2d5039406a3b81568d55e544a5a13d; path=/; HttpOnly Cache-Control: no-cache X-Runtime: 113 Content-Length: 6222 Server: Jetty(6.1.19) ---------------------------------------------------------- and when on the same machine where mingle is hosted I tried to access it like this http://site.mydomain.com/mingle then following were headers http://site.mydomain.com/mingle GET /mingle HTTP/1.1 Host: site.mydomain.com User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive HTTP/1.1 404 Not Found Date: Fri, 11 Jun 2010 16:37:46 GMT Server: Apache/2.2.14 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 241 Keep-Alive: timeout=15, max=98 Connection: Keep-Alive Content-Type: text/html; charset=iso-8859-1 ---------------------------------------------------------- > ProxyPassReverse roughly means this: > For each appropriate header, search for the second argument in the > value, and if found, replace with the first argument and reconstruct > the protocol, host and port according to the host headers/vhost name. Okay thanks for clearing that out. > Restart apache, and re-do the tests. Above are the response of re-doing the tests. Let me know if any thing else need to be observed. -- Tapas http://mightydreams.blogspot.com http://wiki.xensource.com/xenwiki/Xen_on_4_app_servers --------------------------------------------------------------------- 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