Results 1 to 15 of 15
-
12-19-2006, 05:15 PM #1Newbie
- 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
-
12-20-2006, 03:05 AM #2Newbie
- Join Date
- Feb 2005
- Posts
- 28
i need urgent help please
-
12-20-2006, 03:18 AM #3Web 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
-
12-20-2006, 03:40 AM #4Newbie
- 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.
-
12-20-2006, 03:46 AM #5Web 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
-
12-20-2006, 03:48 AM #6Web 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
-
12-20-2006, 03:51 AM #7Newbie
- Join Date
- Feb 2005
- Posts
- 28
where could i find that?
-
12-20-2006, 03:55 AM #8Web 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
-
12-20-2006, 03:59 AM #9Newbie
- Join Date
- Feb 2005
- Posts
- 28
Originally Posted by CaroTech04
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
-
12-20-2006, 04:03 AM #10Web 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
-
12-20-2006, 04:17 AM #11Newbie
- Join Date
- Feb 2005
- Posts
- 28
Originally Posted by CaroTech04
where is this file loaction?
-
12-20-2006, 04:19 AM #12Newbie
- Join Date
- Feb 2005
- Posts
- 28
Originally Posted by CaroTech04
i tried my best with no result , this is first time to deal with nginx anyway
-
12-20-2006, 08:20 AM #13Web Hosting Guru
- Join Date
- Jan 2006
- Location
- Sydney, Australia
- Posts
- 251
Originally Posted by keyman
/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; ... }
Code:http { include conf/mime.types; default_type application/octet-stream; client_max_body_size 10m; .... }
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
-
12-20-2006, 12:15 PM #14Newbie
- 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.
-
12-20-2006, 05:50 PM #15Newbie
- Join Date
- Feb 2005
- Posts
- 28
thank you guys ....
all my problems have be solved
thank you again and again
your
keyman