kveretennicov / iisproxy Goto Github PK
View Code? Open in Web Editor NEWSimple C# script to add reverse proxy functionality to IIS web server.
License: BSD 3-Clause "New" or "Revised" License
Simple C# script to add reverse proxy functionality to IIS web server.
License: BSD 3-Clause "New" or "Revised" License
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:
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
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
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
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
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
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
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
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
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
Also added PUT requests and increased repsponse buffer size to allow for
dynamic requests.
Original issue reported on code.google.com by [email protected]
on 7 Dec 2010 at 9:51
Attachments:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.