Welcome! Log In Create A New Profile

Advanced

Re: upload module forbidden

Francis Daly
April 05, 2011 05:02AM
On Tue, Apr 05, 2011 at 02:17:30AM -0400, vetri wrote:

Hi there,

there seem to be lots of mails reporting lots of problems with your
configuration. Presumably something is not being done right, or you are
finding something unclear about the documentation.

To step back a bit:

in order for you to upload a file via http, you must write a html form
which includes at least one "<input type=file>" field, which the client
gets; and you must write an upload-form-handler which nginx has access to,
either via proxy_pass to another http server, or via fastcgi_pass to a
fastcgi server, or via one of the other "dynamic" mechanisms (scgi_pass,
uwsgi_pass, etc).

You seem to have written the form, and sent it to the client. That's good.

I don't see any obvious evidence that you have written the form-handler.

Have you? And if so, how does nginx send the request to your handler? As
in, what url does nginx access, and by what means (proxy_pass,
fastcgi_pass, other)?

> i am uploading files via nginx upload module . in my configuration
>
> location /upload {
> ..............
> ..................
> }
> this will be matched with post request .but when i upload file
> .file is uploaded successfully response to the client is 403 .
>
> when i see log file it is showing directory indexof
> /usr/local/nginx/html/upload/ is forbidden ?
>
> if someone knows plz tell me .

I guess that you are trying to POST to a url like /directory, and are
being redirected to /directory/, and then you try to GET /directory/
which has not been configured to e allowed.

But that's pretty much just a symptom of the broken setup, and so not
too important.

The important bit is: where is your form handler?

Good luck,

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: 161
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