Giter Site home page Giter Site logo

iisproxy's People

Contributors

kveretennicov avatar paj28 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iisproxy's Issues

proxy.ashx

I've used your code to build a webhandler (.ashx) that fits my needs perfectly.
I'm searching for a ProxyHost (ForwardProxy) to use with openlayers, as 
documented here: 
http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost

request like '/proxy.ashx?url=localhost:8080/geoserver/wfs' 
are redirected to my intranet server, maintaining POST data.

I add my adapted code as attached.
Thanks a lot

Original issue reported on code.google.com by [email protected] on 1 Oct 2010 at 8:43

Attachments:

Failed to access IIS metabase

This isn't really an issue. I just ran into the error "Failed to access IIS
metabase" and thought it might be useful to others to know the solution.

C:\Windows\Microsoft.Net\Framework\v2.0.50727\aspnet_regiis -i
C:\Windows\Microsoft.Net\Framework\v2.0.50727\aspnet_regiis -ga <username>

Original issue reported on code.google.com by [email protected] on 15 Jul 2008 at 3:11

Escaped characters in URI get corrupted (i.e. russian words in query parameters)

Query params (GET method) like
?q=%d0%93%d0%b4%d0%b5+%d1%80%d0%be%d0%b4%d0%b8%d0%bb%d1%81%d1%8f+%d0%9f%d1%83%d1
%82%d0%b8%d0%bd%3f

Will be escaped second time and passed to back-end as:
?q=%25u041a%25u0442%25u043e+%25u043f%25u0435%25u0440%25u0432%25u044b%25u0439+%25
u043f%25u0440%25u0435%25u0437%25u0438%25u0434%25u0435%25u043d%25u0442+%25u0420%2
5u043e%25u0441%25u0441%25u0438%25u0438%3f

Request.RawUrl works fine for me:

public void ProcessRequest(HttpContext context)
{
   string remoteUrl = ConfigurationSettings.AppSettings["ProxyUrl"] +
                    context.Request.RawUrl;

Original issue reported on code.google.com by [email protected] on 27 Sep 2011 at 9:51

username/password dialog produced by browser instead of proxied content

I don't seem to be able to get your version 0.4 of the reverse proxy to 
work. I run a win2k3 server with all latest patches applied, and what 
happens when I follow the readme instructions is I get a username/password 
dialog on trying to connect with the web browser to the URL which should be 
delivering content of the proxied site.

Am I not understanding something properly here? The server is running IIS 
on port 80 as well as a turbogears app on port 8001. I've followed the 
readme in an attempt at setting up http://mysite/TGApp to deliver the 
turbogears site from port 8001. The web.config file thus contains this:
<add key="proxyUrl" value="http://localhost:8001" />

Adding traceRedirect also appears to have no effect, nothing gets written 
to the application log.


Original issue reported on code.google.com by [email protected] on 1 Apr 2009 at 10:58

Filenames ending with . (dot) fails

if an url ends with . (dot) the request will fail. 

thanks an otherwise great piece of software! 

Original issue reported on code.google.com by carl.hoerberg on 14 May 2009 at 3:07

IIS Proxy doesn't Work for IIS 6 and Tomcat

Not able to setup. We are trying simulate mod_proxy behavior for a SSL url 
served from tomcat server. Extactly followed the insttructions mentioned in the 
readme.txt.

Is that possible?

Original issue reported on code.google.com by [email protected] on 30 Mar 2011 at 8:18

EMule webinterface doesn't works

What steps will reproduce the problem?
1. Images aren't loading
2.
3.

What is the expected output? What do you see instead?

Web page without images

What version of the product are you using? On what operating system?

0.2 on Windows 2003

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 25 May 2008 at 10:38

Fails on Large File Upload

I have an MVC web app running on Windows Server 2008 R2 IIS 7.5, ASP 4.0 (call 
it machine ‘B’).  A Windows 2003 IIS 6 (machine ‘A’) is running this 
‘IIS Reverse Proxy’ code.  The application works fine via the reverse proxy 
until I try to upload large image files (it works with small ones). It also 
works when I   When I try to upload a large file (6476 KB) the original code 
returns the error “The request was aborted: The request was canceled” on 
the line “output.Write(buffer, 0, read);” in the CopyStream method in 
‘ReverseProxy.cs’.  It appears to start failing on uploads of files greater 
than 4 MB.

When I try the change suggested in Issue 7 (related to “chunking”) the 
error changes to “Could not contact back-end site” (error text is from the 
Process Request method in ReverseProxy.cs).

By the way I also tried increasing the byte[] array in CopyStream but that did 
not help.

In all attempted versions of ReverseProxy.cs I get an error in 100 seconds.  I 
have changed the web.config in both Machine A (hosting ReverseProxy.cs) and 
Machine B (my web app) to include:

  <system.web>
    <httpRuntime maxRequestLength="2097151" executionTimeout="36000"/>

but still fails.

I can’t find any errors in the event logs on either machine related to 
timeout or otherwise.  I assume (maybe incorrectly) the problem has to be 
related to timeout but where/how can I fix it?  Any ideas?   Thanks.

Original issue reported on code.google.com by [email protected] on 4 Dec 2011 at 8:53

File size seems to cause failed response

What steps will reproduce the problem?
Dynamic pages fail if response exceeds an undetermined size (not very big 
either)

What is the expected output? What do you see instead?
Page contents expected but no response. HTTPFox in FF shows 
NS_ERROR_UNEXPECTED

What version of the product are you using? On what operating system?
v4 on IIS 6.0 retreiving from Apache on XAMPP server.

Please provide any additional information below.

All features seem to work fine. 
Setup was a breeze.
Large .js files have no issue, but text/html files that exceed ~6k simply 
never respond.
Thought it might be a timeout issue or something, but have no idea where 
to look. Have you seen anything like this?

Original issue reported on code.google.com by [email protected] on 5 Sep 2009 at 12:50

Could not load file or assembly 'ReverseProxy'

I'm getting a configuration error.

I followed the install instructions to the letter, creating a /remotesite
folder where I wish the reverse proxied site to be based, and a
/remotesite/bin subdiretory to install the ReverseProxy code.

However, the installation instructions are somewhat vague, so just to clarify:
In step #3, does "this directory" refer to /remotesite/ or /remotesite/bin?
In step #7, what extension pattern should we use? I assumed we should use .*
In step #10, again what directory does "in the directory" refer to?

Configuration Error
Description: An error occurred during the processing of a configuration
file required to service this request. Please review the specific error
details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'ReverseProxy' or one
of its dependencies. The system cannot find the file specified.

Source Error:

Line 5:      <system.web>
Line 6:          <httpHandlers>
Line 7:              <add verb="*" path="*"
type="ReverseProxy.ReverseProxy, ReverseProxy" />
Line 8:          </httpHandlers>
Line 9:      </system.web>


Source File: C:\Inetpub\wwwroot\remotesite\bin\web.config    Line: 7

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'ReverseProxy' could not be loaded.

Original issue reported on code.google.com by [email protected] on 15 Jul 2008 at 3:01

Proxy fails when used on a windows auth website

What steps will reproduce the problem?
1. Create a proxy website that requires windows authentication
2.
3.

What is the expected output? What do you see instead?
You will see an auth error

What version of the product are you using? On what operating system?
Latest

Please provide any additional information below.
To fix the issue, you need to add the following line of code:

CredentialCache.DefaultCredentials

Original issue reported on code.google.com by [email protected] on 24 Aug 2008 at 3:57

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.