hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : want to change maxfile size in nginx
Reply

Forum Jump

want to change maxfile size in nginx

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Newbie
 
Join Date: Feb 2005
Posts: 28

want to change maxfile size in nginx


hi,

after installing NGINX and moving my big site to it... i found that there is new settings occured in the web, for example i couldnt upload over than 1 MB more or less to my website .. etc


any one could help me in change NGINX confgrations ?


thanks in Advance

keyman



Sponsored Links
  #2  
Old
Newbie
 
Join Date: Feb 2005
Posts: 28
i need urgent help please

  #3  
Old
Web Hosting Guru
 
Join Date: May 2006
Location: Teh Interweb
Posts: 314
From the directives listed here: http://wiki.codemongers.com/NginxHttpCoreModule, this does not seem to be an option that is configured in Nginx. What is your max upload size set to in your php.ini?

Please note that I am shooting in the dark here as i have never worked with this product. Just trying to help as you seem desperate.

__________________

[theBleeber@wht01] ~ $ cat .signature
cat: .signature: No such file or directory


Sponsored Links
  #4  
Old
Newbie
 
Join Date: Feb 2005
Posts: 28
thank you very much CariTech04 for trying help me


the maxfile size in php.ini was 2M and i have changed to be 1000MB but still i couldnt upload more than 1 M.

  #5  
Old
Web Hosting Guru
 
Join Date: May 2006
Location: Teh Interweb
Posts: 314
Apparently, client_max_body_size, is the directive you need to change. Doesn't exactly scream upload_size to me but on another foruma a user suggested this.

__________________

[theBleeber@wht01] ~ $ cat .signature
cat: .signature: No such file or directory


  #6  
Old
Web Hosting Guru
 
Join Date: May 2006
Location: Teh Interweb
Posts: 314
I am curious. Why are you using this product? What made you feel it was better than a more mainstream package like Apache? What benefits are you seeing? Just wondering...

__________________

[theBleeber@wht01] ~ $ cat .signature
cat: .signature: No such file or directory


  #7  
Old
Newbie
 
Join Date: Feb 2005
Posts: 28
where could i find that?

  #8  
Old
Web Hosting Guru
 
Join Date: May 2006
Location: Teh Interweb
Posts: 314
Should be in your main configuration file or perhaps your proxy.conf.

__________________

[theBleeber@wht01] ~ $ cat .signature
cat: .signature: No such file or directory


  #9  
Old
Newbie
 
Join Date: Feb 2005
Posts: 28
Quote:
Originally Posted by CaroTech04
I am curious. Why are you using this product? What made you feel it was better than a more mainstream package like Apache? What benefits are you seeing? Just wondering...



i have one big site, which has connections over than 1000 users... , according to server's optimizer, apachie cannot handel over than 1000 connections and it going to ovarload the server ..

he suggested to install NGINX, to reduce server overload, after he did that i noticed the diffrence in the site speed and server overload, his solution was like a magek.

but i faced these new issues in my server.... i am trying by best to solve it

  #10  
Old
Web Hosting Guru
 
Join Date: May 2006
Location: Teh Interweb
Posts: 314
Glad to hear it is running better for you. Did you find that directive? Perhaps just go to the nginx directory and grep for the string in all files.

__________________

[theBleeber@wht01] ~ $ cat .signature
cat: .signature: No such file or directory


  #11  
Old
Newbie
 
Join Date: Feb 2005
Posts: 28
Quote:
Originally Posted by CaroTech04
Should be in your main configuration file or perhaps your proxy.conf.

where is this file loaction?

  #12  
Old
Newbie
 
Join Date: Feb 2005
Posts: 28
Quote:
Originally Posted by CaroTech04
Glad to hear it is running better for you. Did you find that directive? Perhaps just go to the nginx directory and grep for the string in all files.

i tried my best with no result , this is first time to deal with nginx anyway

  #13  
Old
Web Hosting Guru
 
Join Date: Jan 2006
Location: Sydney, Australia
Posts: 251
Quote:
Originally Posted by keyman
where is this file loaction?
Where is nginx installed to? Usually the main configuration file would be in

/usr/local/nginx/conf/nginx.conf

if you don't have any special configuration when it was installed. You should be able to find something like this in your configuration file:

Code:
http {
    include conf/mime.types;
    default_type application/octet-stream;
    ...
}
Put the client_max_body_size there somewhere, for example

Code:
http {
    include conf/mime.types;
    default_type application/octet-stream;
    client_max_body_size 10m;
    ....
}
It will allow maximum 10m upload.

Is your site a PHP or a Ruby on Rails site? I have also recently tested nginx, and found it much faster than Apache and more configurable than lighttpd.

Scott

  #14  
Old
Newbie
 
Join Date: Feb 2005
Posts: 28
ylsy


thank you very much, i think your modification is working fine.

but i still have another problem relating to uploading file, it is toooooo slow when trying to upload files in all sites in the server whether are in apachie or nginx ...


before i doing this modifction the php site in nginx just give white page with no any message, on the other hand, the php site in apachie trying to upload file but take too long time and if file over than 2 MB it fails to upload file.


after nginx's modification same behavior i am facing now in all sites ... which mean there is another problem but not nginx side ...

i tried to do some change in /etc/php.ini
so, i made this change

upload_max_filesize 1000M

but no result

any one could help?


Last edited by keyman; 12-20-2006 at 12:26 PM.
  #15  
Old
Newbie
 
Join Date: Feb 2005
Posts: 28
thank you guys ....


all my problems have be solved

thank you again and again


your
keyman

Reply

Related posts from TheWhir.com
Title Type Date Posted
Nginx to be Included in Upcoming Ubuntu Release Web Hosting News 2014-01-08 15:17:12
Nginx Raises $10M to Extend Commercial Support Web Hosting News 2013-10-15 11:20:26
Apache Market Share Dips Slightly in June Netcraft Web Server Survey Web Hosting News 2013-06-06 13:40:21
nginx Version 1.4.0 Supports SPDY Protocol Web Hosting News 2013-04-29 15:08:14
Nginx Aims to Grow Market Share Under New CEO Gus Robertson Web Hosting News 2013-04-08 14:28:48


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?