Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@OpenWrt:~# cat /etc/nginx/nginx.conf
- user nobody nogroup;
- 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" '
- # '$status $body_bytes_sent "$http_referer" '
- # '"$http_user_agent" "$http_x_forwarded_for"';
- #access_log logs/access.log main;
- sendfile on;
- #tcp_nopush on;
- keepalive_timeout 1;
- #gzip on;
- server {
- listen 9080;
- listen [::]:9080;
- # SSL configuration
- #
- #listen 9443 ssl;
- #listen [::]:9443 ssl;
- #
- #include snippets/snakeoil.conf;
- root /srv/www/;
- # Add index.php to the list if you are using PHP
- index index.php index.html index.htm index.nginx-debian.html;
- server_name parker-gateway-na.amazon.com;
- # To allow POST on static pages
- error_page 405 =200 $uri;
- rewrite ^/2/b$ /dash.php;
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ =404;
- }
- # pass the PHP scripts to FastCGI server listening on the php-fpm socket
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement