Problem:
413 Request Entity Too Large
Solution:
vim /etc/nginx/nginx.conf client_max_body_size 10m;
/etc/init.d/nginx restart
Problem:
413 Request Entity Too Large
Solution:
vim /etc/nginx/nginx.conf client_max_body_size 10m;
/etc/init.d/nginx restart
Problem:
504 Gateway Timeout
Solution:
vim /etc/nginx/conf.d/virtual.conf server { proxy_read_timeout 300; proxy_send_timeout 300; }
vim /etc/nginx/conf.d/virutal.conf server { listen 80; server_name my-helper.com; rewrite ^/(.*) http://www.my-helper.com/$1 permanent; } server { listen 80; server_name www.my-helper.com; access_log /var/www/vhosts/my-helper.com/logs/access.log; error_log /var/www/vhosts/my-helper.com/logs/error.log; location / { root /var/www/vhosts/my-helper.com/htdocs/; index index.php; } }
Reference:
http://articles.slicehost.com/2009/2/25/centos-nginx-virtual-hosts
1. Enable EPEL repo (ref: http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/)
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-6.noarch.rpm
2. Install nginx
yum install nginx
3. Start nginx
/etc/init.d/nginx
Reference:
http://www.ibualoy.net/blog/itech/linux/167-how-to-configure-nginx-and-apache-on-debian
http://articles.slicehost.com/2008/12/17/centos-installing-nginx-via-yum
http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/