I have followed instruction for setting up django with nginx from the django wiki (https://code.djangoproject.com/wiki/DjangoAndNginx) and have nginx setup as follows (a few name changes to fit my setup).
user nginx nginx;
worker_processes 2;
error_log /var/log/nginx/error_log info;
events {
worker_connections 1024;
use epoll;
}
http {
include /etc/nginx/mime.types;
Below is my Nginx.conf -
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
#
ok maybe more infos needed...In nginx.conf (chroot)I get some lines like fastcgi_pass unix:/run/php-fpm/php-fpm.sock;But i've not this files in chrooted /runSo can i make use of php-fpm in chroot ?Here my nginx.conf :#user html;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
wo
Here's my NGINX config (no apache, just php-fpm):
user nginx;
worker_processes 1;
error_log /usr/local/nginx/logs/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 384;
}
http {
include mime.types;
default_type application/octet-stream;
access_log off;
server_tokens off;
sendfile
I have gzip enabled on nginx 1.2.8, but for some reason, it is not gzipping anything.
Nginx install info:
nginx version: nginx/1.2.8
built by gcc 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx-1.2.8 --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --with-pcre --conf-path=/etc/nginx/nginx.conf --add-modul
I have an nginx configuration where the virtual host keeps getting redirected to the localhost.
I try to start my Nginx and i get this errore after this commend -
sudo /etc/init.d/nginx start
Starting nginx: start-stop-daemon: unable to start /usr/local/nginx (Permission denied)
My config file -
user www-data www-data;
worker_processes 1;
events {
worker_connections 2048;
}
http {
include mime.types;
default_type application/octet-stream;
access_log off
sendf
I am new to nginx. I have always used apache. So maybe I don't know enough about nginx to make this work. I am no newbie to arch though.I have tried EVERYTHING. Also I have thoroughly searched the forum and google and no, none of the solutions worked. I have a VPS with DigitalOcean (great provider, btw) and I have mariadb, nginx, and php-fpm running perfectly. Everything works.
I can't figure out how to redirect / to index.html.