Skip to content

Instantly share code, notes, and snippets.

@yu81
Last active August 29, 2015 14:24
Show Gist options
  • Save yu81/b1b7ce53389374ca2711 to your computer and use it in GitHub Desktop.
Save yu81/b1b7ce53389374ca2711 to your computer and use it in GitHub Desktop.
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user www;
worker_processes 1;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 60;
gzip on;
index index.html index.htm;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
# listen 80;
# server_name tolendit.com;
include /etc/nginx/conf.d/*.conf;
server {
listen 80;
location / {
root /var/www/fuelphp/public/;
try_files $uri /index.php?$uri&$args;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
root /var/www/fuelphp/public/;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fastcgi_param FUEL_ENV production;
fastcgi_param FUEL_ENV development;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment