Advertisement
Guest User

Untitled

a guest
May 1st, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. root@OpenWrt:~# cat /etc/nginx/nginx.conf
  2.  
  3. user nobody nogroup;
  4. worker_processes 1;
  5.  
  6. error_log logs/error.log;
  7. #error_log logs/error.log notice;
  8. #error_log logs/error.log info;
  9.  
  10. #pid logs/nginx.pid;
  11.  
  12.  
  13. events {
  14. worker_connections 1024;
  15. }
  16.  
  17.  
  18. http {
  19. include mime.types;
  20. #default_type application/octet-stream;
  21.  
  22. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  23. # '$status $body_bytes_sent "$http_referer" '
  24. # '"$http_user_agent" "$http_x_forwarded_for"';
  25.  
  26. #access_log logs/access.log main;
  27.  
  28. sendfile on;
  29. #tcp_nopush on;
  30.  
  31. keepalive_timeout 1;
  32.  
  33. #gzip on;
  34.  
  35. server {
  36. listen 9080;
  37. listen [::]:9080;
  38.  
  39. # SSL configuration
  40. #
  41. #listen 9443 ssl;
  42. #listen [::]:9443 ssl;
  43. #
  44. #include snippets/snakeoil.conf;
  45.  
  46. root /srv/www/;
  47.  
  48. # Add index.php to the list if you are using PHP
  49. index index.php index.html index.htm index.nginx-debian.html;
  50.  
  51. server_name parker-gateway-na.amazon.com;
  52.  
  53. # To allow POST on static pages
  54. error_page 405 =200 $uri;
  55.  
  56. rewrite ^/2/b$ /dash.php;
  57.  
  58. location / {
  59. # First attempt to serve request as file, then
  60. # as directory, then fall back to displaying a 404.
  61. try_files $uri $uri/ =404;
  62. }
  63.  
  64. # pass the PHP scripts to FastCGI server listening on the php-fpm socket
  65. location ~ \.php$ {
  66. try_files $uri =404;
  67. fastcgi_pass unix:/var/run/php5-fpm.sock;
  68. fastcgi_index index.php;
  69. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  70. include fastcgi_params;
  71. }
  72. }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement