Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape support forum
 Helicon Tech : Helicon Ape support forum
Subject Topic: APE 1.2.0.20 and WSS 3.0 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Docwyatt2001
Newbie
Newbie


Joined: 15 June 2009
Location: Australia
Online Status: Offline
Posts: 5
Posted: 15 June 2009 at 6:37am | IP Logged Quote Docwyatt2001

I've been trying to get Windows Sharepoint Services running with a trial version of APE for the last couple of days, and after the usual hurdles of WSS zones, etc, I was able to get to the normal FBA login screen as usual.

If I'm internal accessing the inside DNS name, I can successfully login. If I go via the reverse proxy going through APE it fails. I get a 502 Bad Gateway error after I submit the form for login.

Running a packet sniffer on the reverse proxy box, and HTTPFox on the local client, I can see the request to the back end work successfully, and it returns this... (I've trimmed the non-essential bits out)

HTTP/1.1 302 Found

Connection: close

Date: Mon, 15 Jun 2009 10:54:14 GMT

Server: Microsoft-IIS/6.0

X-AspNet-Version: 2.0.50727

Location: /default.aspx

Set-Cookie: .ASPXAUTH=*** DETAILS REMOVED ***; path=/; HttpOnly

Cache-Control: private

Content-Type: text/html; charset=utf-8

Content-Length: 8486

 

<html><head><title>Object moved</title></head><body>

<h2>Object moved to <a href="%2fdefault.aspx">here</a>.</h2>

</body></html>

<HTML dir="ltr">

<HEAD><meta name="GENERATOR" content="Microsoft SharePoint" /><meta name="progid" content="SharePoint.WebPartPage.Document" /><meta HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8" /><meta HTTP-EQUIV="Expires" content="0" /><meta name="ROBOTS" content="NOHTMLINDEX" /><title>

.

    Sign In

 

</title><link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/core.css?rev=5msmprmeONfN6lJ3wtbAlA%3D%3D"/>
<script type="text/javascript" language="javascript" src="/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D"></script>
<script type="text/javascript" language="javascript" src="/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D"></script>
</HEAD>

<BODY scroll="yes" onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">

  <form name="aspnetForm" method="post" action="login.aspx?ReturnUrl=%2fdefault.aspx" id="aspnetForm" onsubmit="return _spFormOnSubmitWrapper();">

<div>
:
:

So I gather the issue is something in APE or IIS on that box. I checked the IIS logs, and they are empty. So I checked my rewrite logs, and this is how it looked (again - sanitised)

10.***.***.*** 10.***.***.***  [15/Jun/2009:18:06:16] [internal.domain.com/sid#1589845953][rid#7837633/initial] (1) [perdir c:\program files\helicon\ape\] init rewrite engine with /_layouts/login.aspx
10.***.***.*** 10.***.***.***  [15/Jun/2009:18:06:16] [internal.domain.com/sid#1589845953][rid#7837633/initial] (3) [perdir c:\program files\helicon\ape\] applying pattern ^/$ to uri /_layouts/login.aspx
10.***.***.*** 10.***.***.***  [15/Jun/2009:18:06:16] [internal.domain.com/sid#1589845953][rid#7837633/initial] (3) [perdir c:\program files\helicon\ape\] applying pattern ^(.*)$ to uri /_layouts/login.aspx
10.***.***.*** 10.***.***.***  [15/Jun/2009:18:06:16] [internal.domain.com/sid#1589845953][rid#7837633/initial] (4) [perdir c:\program files\helicon\ape\] RewriteCond: input='internal.domain.com' pattern='^internal\.domain\.com$' => matched
10.***.***.*** 10.***.***.***  [15/Jun/2009:18:06:16] [internal.domain.com/sid#1589845953][rid#7837633/initial] (1) [perdir c:\program files\helicon\ape\] go-ahead with proxy request
http://internal.domain.com:8008/_layouts/login.aspx?ReturnUrl=%2fdefault.aspx [OK]

So the request is going to the back end server happily.

But looking at what HTTPFox is seeing leaving and returning is not the same. It goes out like this...

POST /_layouts/login.aspx?ReturnUrl=%2fdefault.aspx HTTP/1.1

but the location from the responding server (which isn't the back end one)

Location /_layouts/login.aspx.apehandler?ReturnUrl=%2fdefault.aspx

Is this apehandler supposed to be in there?

This is the config from the httpd.conf

<VirtualHost ***.***.***.***:443>
#
# The following code enables most detailed logging for mod_rewrite
#
  RewriteLog  E:\SHAREPOINT_REVPROXY\rewrite.txt
  RewriteLogLevel 9

  SetEnv proxy-nokeepalive 1
  SetEnv force-proxy-request-1.0 1

  <Proxy *>
    Order Allow,Deny
    Allow from all
  </Proxy>

  ProxyRequests off

  RewriteEngine On
 
#
# If looking for no page, redirect to default.aspx for the Sharepoint site
#
  RewriteCond %{HTTP_HOST}  ^internal\.domain\.com$   [NC]
  RewriteCond %{REQUEST_URI} /       [NC] 
  RewriteRule ^/$   /default.aspx      [NC,R]

#
# If any request for the Sharepoint site, map to the internal box
#
  RewriteCond %{HTTP_HOST}  ^internal\.domain\.com$   [NC]
  RewriteRule ^(.*)$    
http://internal.domain.com:8008$1 [NC,QSA,P]

  ProxyPassReverse  /          http://internal.domain.com:8008/

  <Location />
    ProxyPassReverse
http://internal.domain.com:8008/
    ProxyPassReverse internal.domain.com:8008
  </Location>
</VirtualHost>

Has anyone had any luck getting this to work? Or am I blindly missing something obvious?

Back to Top View Docwyatt2001's Profile Search for other posts by Docwyatt2001 Visit Docwyatt2001's Homepage
 
Docwyatt2001
Newbie
Newbie


Joined: 15 June 2009
Location: Australia
Online Status: Offline
Posts: 5
Posted: 15 June 2009 at 6:43am | IP Logged Quote Docwyatt2001

I missed one little part - turning the error log also on. After I did, I found this...

[15/06/2009 7:14:17 PM] proxy Done with error: HttpWebRequest.BeginGetResponse (http://internal.domain.com:8008/_layouts/login.aspx?ReturnUrl=%2fdefault.aspx), error: System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   at 1.171.0(String , HttpContext )
   at 1.169.0(HttpWebResponse , HttpContext )
   at 1.126.107()
   at 1.126.0(IAsyncResult )
   at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
   at System.Net.ContextAwareResult.CaptureOrComplete(ExecutionContext& cachedContext, Boolean returnContext)
   at System.Net.ContextAwareResult.FinishPostingAsyncOp()
   at System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state)
   at 1.126.103()

That would have helped in the first post...

Back to Top View Docwyatt2001's Profile Search for other posts by Docwyatt2001 Visit Docwyatt2001's Homepage
 
Vyacheslav
Moderator Group
Moderator Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1054
Posted: 15 June 2009 at 9:16am | IP Logged Quote Vyacheslav

Hello,
Thanks for detailed information regarding the issue. However we need one more thing to investigate it. Would you please either provide WFetch logs for requests to the back-end, or allow us to get them through temporal access to the back-end.

__________________
Kind regards,
Slava Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
Docwyatt2001
Newbie
Newbie


Joined: 15 June 2009
Location: Australia
Online Status: Offline
Posts: 5
Posted: 16 June 2009 at 2:58am | IP Logged Quote Docwyatt2001

Hmmm.. Couldn't get WFetch to work properly. WSS is being cagey, or I have no idea what I'm doing. I'm going with the latter.

I used HTTPFox to pull out some details - maybe these will help.

Started       Time  Sent   Received   Method  Result  Type                                                                                                      URL
-------       ----  ---    --------   ------  ------  ----                                                                                                      ---
00:00:04.837 0.151 474    357       GET     302     Redirect to:
http://internal.domain.com:8008/_layouts/Authenticate.aspx?Source=%2f                       http://internal.domain.com:8008/

  Headers
    Request Header    Value
    --------------    -----
    (Request-Line)   GET / HTTP/1.1
    Host             internal.domain.com:8008
    User-Agent       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
    Accept           text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;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
    Connection       keep-alive
 
  Response
    Response Header   Value
    ---------------   -----
    (Status-Line)     HTTP/1.1 302 Object Moved
    Content-Length   195
    Content-Type     text/html
    Location        
http://internal.domain.com:8008/_layouts/Authenticate.aspx?Source=%2f
    Server           Microsoft-IIS/6.0
    Date             Tue, 16 Jun 2009 02:56:13 GMT
    Connection       close 

00:00:05.028 0.070 511    441       GET     302     Redirect to: /_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f   http://internal.domain.com:8008/_layouts/Authenticate.aspx?Source=%2f

  Headers
    Request Header    Value
    --------------    -----
    (Request-Line)   GET /_layouts/Authenticate.aspx?Source=%2f HTTP/1.1
    Host             internal.domain.com:8008
    User-Agent       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
    Accept           text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;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
    Connection       keep-alive
   
  Response
    Response Header   Value
    ---------------   -----
    (Status-Line)     HTTP/1.1 302 Found
    Connection       close
    Date             Tue, 16 Jun 2009 02:56:13 GMT
    Server           Microsoft-IIS/6.0
    X-AspNet-Version 2.0.50727
    Location         /_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f
    Cache-Control     private
    Content-Type     text/html; charset=utf-8
    Content-Length    231

00:00:05.128 0.501 563    8509       GET     200     text/html http://internal.domain.com:8008/_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f

  Headers
    Request Header    Value
    --------------    -----
    (Request-Line)   GET /_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f HTTP/1.1
    Host             internal.domain.com:8008
    User-Agent       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
    Accept           text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;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
    Connection       keep-alive
   
  Response
    Response Header   Value
    ---------------   -----
    (Status-Line)     HTTP/1.1 200 OK
    Cache-Control     private
    Content-Length   8323
    Content-Type     text/html; charset=utf-8
    Server           Microsoft-IIS/6.0
    X-AspNet-Version 2.0.50727
    Date             Tue, 16 Jun 2009 02:56:13 GMT
    Connection       close

00:00:05.629 0.060 590    (13596)   GET     (Cache) text/css http://internal.domain.com:8008/_layouts/1033/styles/core.css?rev=5msmprmeONfN6lJ3wtbAlA%3D%3D

00:00:05.689 0.080 569    (15865)   GET     (Cache) application/x-javascript http://internal.domain.com:8008/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D

00:00:05.769 0.230 567    (54675)   GET     (Cache) application/x-javascript http://internal.domain.com:8008/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D

00:00:05.999 0.060 575    (0)       GET     (Cache) application/x-javascript http://internal.domain.com:8008/WebResource.axd?d=pZIxlJ26zQT2OFhKBbuqiw2&t=633725519499896642

00:00:06.059 0.060 575    (0)       GET     (Cache) application/x-javascript http://internal.domain.com:8008/WebResource.axd?d=JNBqNycyxC4R6B5vTd-hwQ2&t=633725519499896642

00:00:06.159 0.211 530    (15865)   GET     (Cache) application/x-javascript http://internal.domain.com:8008/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D

00:00:14.752 0.611 1339  8800       POST   302     Redirect to: /_layouts/Authenticate.aspx?Source=%2f                                                       http://internal.domain.com:8008/_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f

  Headers
    Request Header    Value
    --------------    -----
    (Request-Line)   POST /_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f HTTP/1.1
    Host             internal.domain.com:8008
    User-Agent       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
    Accept           text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;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
    Connection       keep-alive
    Referer          
http://internal.domain.com:8008/_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f
    Content-Type     application/x-www-form-urlencoded
    Content-Length   570
 
  POST Data
    Parameter                             Value
    ---------                             -----
    __LASTFOCUS 
    __VIEWSTATE                           ### DELETED ###
    __EVENTTARGET 
    __EVENTARGUMENT 
    __EVENTVALIDATION                     ### DELETED ###
    ctl00$PlaceHolderMain$login$UserName testuser
    ctl00$PlaceHolderMain$login$password password
    ctl00$PlaceHolderMain$login$login     Sign In
    __spDummyText1 
    __spDummyText2 
 
  Response
    Response Header   Value
    ---------------   -----
    (Status-Line)     HTTP/1.1 302 Found
    Connection       close
    Date             Tue, 16 Jun 2009 02:56:24 GMT
    Server           Microsoft-IIS/6.0
    X-AspNet-Version 2.0.50727
    Location         /_layouts/Authenticate.aspx?Source=%2f
    Set-Cookie       .ASPXAUTH=###DELETED ###; path=/; HttpOnly
    Cache-Control     private
    Content-Type     text/html; charset=utf-8
    Content-Length   8567

00:00:15.393 0.170 818    330       GET     302     Redirect to: /                                                                                           http://internal.domain.com:8008/_layouts/Authenticate.aspx?Source=%2f

  Headers
    Request Header    Value
    --------------    -----
    (Request-Line)    GET /_layouts/Authenticate.aspx?Source=%2f HTTP/1.1
    Host             internal.domain.com:8008
    User-Agent       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
    Accept           text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;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
    Connection       keep-alive
    Referer          
http://internal.domain.com:8008/_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f
    Cookie           .ASPXAUTH=###DELETED ###

  Response
    Response Header   Value
    ---------------   -----
    (Status-Line)     HTTP/1.1 302 Found
    Connection       close
    Date             Tue, 16 Jun 2009 02:56:24 GMT
    Server           Microsoft-IIS/6.0
    X-AspNet-Version 2.0.50727
    Location         /
    Cache-Control     private
    Content-Type     text/html; charset=utf-8
    Content-Length   120


00:00:15.583 0.170 781    332       GET     302     Redirect to: http://internal.domain.com:8008/default.aspx                                                 http://internal.domain.com:8008/

  Headers
    Request Header    Value
    --------------    -----
    (Request-Line)   GET / HTTP/1.1
    Host             internal.domain.com:8008
    User-Agent       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
    Accept           text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;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
    Connection       keep-alive
    Referer          
http://internal.domain.com:8008/_layouts/login.aspx?ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252f&Source=%2f
    Cookie           .ASPXAUTH=###DELETED ###

  Response
    Response Header   Value
    ---------------   -----
    (Status-Line)     HTTP/1.1 302 Object Moved
    Content-Length   170
    Content-Type     text/html
    Location        
http://internal.domain.com:8008/default.aspx
    Server           Microsoft-IIS/6.0
    Date             Tue, 16 Jun 2009 02:56:24 GMT
    Connection       close

*** SITE LOADS NORMALLY FROM HERE ***

00:00:15.783 7.611 793    60904     GET     200     text/html                                                                                                 http://internal.domain.com:8008/default.aspx
00:00:23.204 0.260 685    (13596)   GET     (Cache) text/css                                                                                                 http://internal.domain.com:8008/_layouts/1033/styles/core.css?rev=5msmprmeONfN6lJ3wtbAlA%3D%3D
00:00:23.464 0.090 677    200       GET     404     text/css                                                                                                 http://internal.domain.com:8008/_themes/water/wate1011-65001.css?rev=12%2E0%2E0%2E6421
00:00:23.584 0.091 664    (15865)   GET     (Cache) application/x-javascript                                                                                 http://internal.domain.com:8008/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D
00:00:23.675 0.200 662    (54675)   GET     (Cache) application/x-javascript                                                                                 http://internal.domain.com:8008/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D
00:00:23.885 0.300 666    13285     GET     200     application/x-javascript                                                                                 http://internal.domain.com:8008/_layouts/1033/non_ie.js?rev=yfNry4hY0Gwa%2FPDNGrqXVg%3D%3D
00:00:24.185 0.060 670    (0)       GET     (Cache) application/x-javascript                                                                                 http://internal.domain.com:8008/WebResource.axd?d=pZIxlJ26zQT2OFhKBbuqiw2&t=633725519499896642
00:00:24.245 0.080 670    281       GET     200     application/x-javascript                                                                                 http://internal.domain.com:8008/WebResource.axd?d=3L5ZprnDwuoTF3AV_5hr7A2&t=633725519499896642
00:00:24.396 0.841 652    294       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/menudark.gif
00:00:24.436 0.811 652    755       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/gosearch.gif
00:00:24.466 0.781 654    294       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/whitearrow.gif
00:00:24.736 0.521 652    1230       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/recycbin.gif
00:00:24.756 0.511 649    294       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/Menu1.gif
00:00:24.826 0.441 708    372       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/topnavselected.gif
00:00:24.866 0.401 710    318       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/topnavunselected.gif
00:00:24.906 0.361 713    372       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/siteactionsmenugrad.gif
00:00:24.936 0.331 702    1794       GET     200     image/jpeg                                                                                                http://internal.domain.com:8008/_layouts/images/topshape.jpg
00:00:24.966 0.311 711    374       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/quickLaunchHeader.gif
00:00:24.996 0.391 703    284       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/navBullet.gif
00:00:25.057 0.240 648    306       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/rect.gif
00:00:25.097 0.290 652    5610       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/homepage.gif
00:00:25.127 0.260 650    296       GET     200     image/gif                                                                                                 http://internal.domain.com:8008/_layouts/images/square.gif
00:00:25.437 0.030 702    (15865)   GET     (Cache) application/x-javascript                                                                                 http://internal.domain.com:8008/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D

Now, when you do it to the external box...

Started       Time  Sent   Received   Method  Result  Type                                                                                                      URL
-------       ----  ---    --------   ------  ------  ----                                                                                                      ---
00:00:04.517 0.532 437    383       GET     302     Redirect to: /_layouts/login.aspx?ReturnUrl=%2fdefault.aspx                                              
https://external.domain.com/
00:00:05.049 0.161 482    8461       GET     200     text/html                                                                                                 https://external.domain.com/_layouts/login.aspx?ReturnUrl=%2fdefault.aspx
00:00:05.210 0.090 505    (13596)   GET     (Cache) text/css                                                                                                 https://external.domain.com/_layouts/1033/styles/core.css?rev=5msmprmeONfN6lJ3wtbAlA%3D%3D
00:00:05.300 0.061 484    (15865)   GET     (Cache) application/x-javascript                                                                                  https://external.domain.com/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D
00:00:05.361 0.200 482    (54675)   GET     (Cache) application/x-javascript                                                                                  https://external.domain.com/_layouts/1033/core.js?rev=CNBZRdV1h3pKuA7LsMXf3w%3D%3D
00:00:05.561 0.221 490    5545       GET     200     application/x-javascript                                                                                  https://external.domain.com/WebResource.axd?d=pZIxlJ26zQT2OFhKBbuqiw2&t=633725519499896642
00:00:05.782 0.352 490    1288       GET     200     application/x-javascript                                                                                  https://external.domain.com/WebResource.axd?d=JNBqNycyxC4R6B5vTd-hwQ2&t=633725519499896642
00:00:06.214 0.040 493    (15865)   GET     (Cache) application/x-javascript                                                                                  https://external.domain.com/_layouts/1033/init.js?rev=qX%2BG3yl4pldKy9KbPLXf9w%3D%3D
00:00:06.525 0.763 1210  442       POST   502     text/html                                                                                                 https://external.domain.com/_layouts/login.aspx?ReturnUrl=%2fdefault.aspx

  Headers
    Request Header    Value
    --------------    -----
    (Request-Line)    POST /_layouts/login.aspx?ReturnUrl=%2fdefault.aspx HTTP/1.1
    Host             external.domain.com
    User-Agent       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)
    Accept           text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;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
    Connection       keep-alive
    Referer          
https://external.domain.com/_layouts/login.aspx?ReturnUrl=%2fdefault.aspx
    Content-Type     application/x-www-form-urlencoded
    Content-Length   570

  POST Data
    Parameter                             Value
    ---------                             -----
    __LASTFOCUS 
    __VIEWSTATE                           ### DELETED ###
    __EVENTTARGET 
    __EVENTARGUMENT 
    __EVENTVALIDATION                     ### DELETED ###
    ctl00$PlaceHolderMain$login$UserName testuser
    ctl00$PlaceHolderMain$login$password password
    ctl00$PlaceHolderMain$login$login     Sign In
    __spDummyText1 
    __spDummyText2 

  Response
    Response Header   Value
    ---------------   -----
    (Status-Line)     HTTP/1.1 502 Bad Gateway
    Connection       close
    Date             Tue, 16 Jun 2009 04:31:59 GMT
    Server           Microsoft-IIS/6.0
    X-AspNet-Version 2.0.50727
    Location         /_layouts/login.aspx.apehandler?ReturnUrl=%2fdefault.aspx
    Cache-Control     private
    Content-Type     text/html
    Content-Length   226


So I'm not sure what it could be... The only thing I am suspecting at this point (but it could also very wrong) is that the cookie could be breaking stuff... (the httponly. It doesn't match key=value syntax) Everything else looks normal - standard 302 redirects, and nothing in the the content that would throw a bad response.



Edited by Docwyatt2001 - 16 June 2009 at 3:03am
Back to Top View Docwyatt2001's Profile Search for other posts by Docwyatt2001 Visit Docwyatt2001's Homepage
 
Ruslan
Newbie
Newbie


Joined: 03 March 2008
Location: Ukraine
Online Status: Offline
Posts: 26
Posted: 17 June 2009 at 4:25am | IP Logged Quote Ruslan

 Hello!

Location header must contain full URL including protocol, host and path. SharePoint server returns wrong Location header only with url path.
We have found a bug in processing of such wrong Location headers in mod_proxy. This bug will be fixed in the next build.

Your proxy-reverse rules must be as follows:

ProxyPassReverse / http://internal.domain.com:8008/
# optional rule for you configuration for wrong Location processing
ProxyPassReverse / /

Section <Location /> is redundant.

Thanks for help! We may offer you a discount coupon for Helicon Ape.

Back to Top View Ruslan's Profile Search for other posts by Ruslan Visit Ruslan's Homepage
 
Docwyatt2001
Newbie
Newbie


Joined: 15 June 2009
Location: Australia
Online Status: Offline
Posts: 5
Posted: 17 June 2009 at 4:41am | IP Logged Quote Docwyatt2001

I started without the <location> entries. That's just where I was up to when I posted here.

Changing to what you have suggested made no difference, so I guess I have to wait for the next build. (Is there a rough ETA, so I can let management know?)

And happy to help - its nice to see a decent project bring some of Apache's functionality across. I have another box using Apache using mod_rewrite, mod_proxy and mod_proxy_html for another application with 14 back end servers around the world. Compiling those libraries, etc was a head-ache, so this seemed the obvious choice to simplify things a bit.

I've worked a way to get passed the issue (not practical, but it works), but have come across other issues with Sharepoint - it has URLs in the javascript in some places, sometimes in <OPTION> tags, and to make it even more complicated, it has unicode slashes in other URLs... Microsoft. Got to love them.

Back to Top View Docwyatt2001's Profile Search for other posts by Docwyatt2001 Visit Docwyatt2001's Homepage
 
Ruslan
Newbie
Newbie


Joined: 03 March 2008
Location: Ukraine
Online Status: Offline
Posts: 26
Posted: 17 June 2009 at 5:58am | IP Logged Quote Ruslan

We plan to release the build at next week.

Directive 'ProxyPassReverse / /' is not optional, it will correct wrong Location header.
Back to Top View Ruslan's Profile Search for other posts by Ruslan Visit Ruslan's Homepage
 
Ruslan
Newbie
Newbie


Joined: 03 March 2008
Location: Ukraine
Online Status: Offline
Posts: 26
Posted: 23 June 2009 at 7:36am | IP Logged Quote Ruslan

Hello!
New build released.
http://www.helicontech.com/download-ape.htm
Back to Top View Ruslan's Profile Search for other posts by Ruslan Visit Ruslan's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum