Welcome! Log In Create A New Profile

Advanced

Re: upload module forbidden

Francis Daly
April 05, 2011 05:42AM
On Tue, Apr 05, 2011 at 05:08:08AM -0400, vetri wrote:

Hi there,

> i am uploading files via form to nginx .here below i have written my
> config

You *must* have your own code to handle the POST data. It will be a cgi
script, or a fastcgi script, or a servlet, or something like that.

> # Pass altered request body to this location
> upload_pass @test;

This says "your own code is available at @test".

> # Pass altered request body to a backend
> location @test {
> proxy_pass http://localhost:8080;
> }

This says "your own code is really at http://localhost:8080/upload".

> server{
> listen 8080;
> }
> }

but you do not have your own code there.

> can u tell me why it is returning forbidden after file is uploaded?

Because http://localhost:8080/upload corresponds to a directory.

You must tell nginx where your own form-handling code is.

Where is it?

f
--
Francis Daly francis@daoine.org

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

upload module forbidden

vetri April 05, 2011 02:17AM

Re: upload module forbidden

Francis Daly April 05, 2011 05:02AM

Re: upload module forbidden

vetri April 05, 2011 05:08AM

Re: upload module forbidden

Francis Daly April 05, 2011 05:42AM

Re: upload module forbidden

Alexander Kunz April 05, 2011 05:48AM

Re: upload module forbidden

vetri April 05, 2011 06:47AM

Re: upload module forbidden

Francis Daly April 05, 2011 06:56AM

Re: upload module forbidden

Alexander Kunz April 05, 2011 07:52AM

Re: upload module forbidden

vetri April 05, 2011 09:43AM

Re: upload module forbidden

Alexander Kunz April 05, 2011 10:02AM

Re: upload module forbidden

Francis Daly April 05, 2011 01:34PM

Re: upload module forbidden

vetri April 06, 2011 12:09AM

Re: upload module forbidden

Francis Daly April 06, 2011 08:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 289
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