Welcome! Log In Create A New Profile

Advanced

Re: Nginx reverse proxy issue

January 26, 2011 11:40AM
On Wed, Jan 26, 2011 at 02:36:01PM +0100, Robin Diederen wrote:

> Hello all,
>
> For the last few days I’ve been trying Nginx as a reverse proxy in front of an IIS webserver with an ASP.NET webapp.
>
>
> From the Nginx configuration:
>
> location / { proxy_pass  http://theproxiedserver/somepath; }
>  
>
> When I visit http://nginx I see an error generated by “theproxiedserver”; from this I conclude that the basic proxying is working. The error more or less tells me the ASP application has issues fetching its URL. Can I somehow convince Nginx to work around this issue? The IIS server is a blackbox, no modifications can be made there. My stracktrace:
>
> At X. Suite.ASP.ASPInstance..ctor(String strRootURL)
>
> at X.Suite.General.GetASPInstanceID()
>
> at X.Suite.iPortal.Skin.Global_asax.InitializeApplication()
>
> at X.Suite.iPortal.Skin.Global_asax.Application_BeginRequest(Object sender, EventArgs e)
>
> at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
>
> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Probably you need

location / {
proxy_pass  http://theproxiedserver/somepath;
proxy_set_header Host thepublicservername;
# or
proxy_set_header Host $host;
}


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx reverse proxy issue

rajdee January 26, 2011 08:42AM

Re: Nginx reverse proxy issue

Igor Sysoev January 26, 2011 11:40AM

RE: Nginx reverse proxy issue

rajdee January 26, 2011 12:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 114
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready