Advertisement
Guest User

Untitled

a guest
Jun 13th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. #load_module "modules/ngx_http_image_filter_module.so";
  2. #load_module "modules/ngx_http_perl_module.so";
  3. #load_module "modules/ngx_http_xslt_filter_module.so";
  4. #load_module "modules/ngx_mail_module.so";
  5. #load_module "modules/ngx_stream_module.so";
  6.  
  7. user nobody staff;
  8. worker_processes 2;
  9.  
  10. events {
  11. worker_connections 1024;
  12. }
  13.  
  14. http {
  15. include mime.types;
  16. default_type text/html;
  17. gzip on;
  18. gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
  19.  
  20. sendfile on;
  21.  
  22. server {
  23. listen 7888 default_server;
  24.  
  25. # MAMP DOCUMENT_ROOT !! Don't remove this line !!
  26. root "/Applications/MAMP/htdocs";
  27.  
  28. access_log /Applications/MAMP/logs/nginx_access.log;
  29. error_log /Applications/MAMP/logs/nginx_error.log;
  30.  
  31. location / {
  32. index index.html index.php;
  33. }
  34.  
  35. location ~* /MAMP[^-]*(.*)$ {
  36. root /Applications/MAMP/bin;
  37. index index.php;
  38.  
  39. location ~ \.php$ {
  40. try_files $uri =404;
  41. fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
  42. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  43. include fastcgi_params;
  44. }
  45. }
  46.  
  47. location ~* /phpMyAdmin(.*)$ {
  48. root /Applications/MAMP/bin;
  49. index index.php;
  50.  
  51. location ~ \.php$ {
  52. try_files $uri =404;
  53. fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
  54. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  55. include fastcgi_params;
  56. }
  57. }
  58.  
  59. location ~* /phpPgAdmin(.*)$ {
  60. root /Applications/MAMP/bin;
  61. index index.php;
  62.  
  63. location ~ \.php$ {
  64. try_files $uri =404;
  65. fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
  66. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  67. include fastcgi_params;
  68. }
  69. }
  70.  
  71. location ~* /phpLiteAdmin(.*)$ {
  72. root /Applications/MAMP/bin;
  73. index index.php;
  74.  
  75. location ~ \.php$ {
  76. try_files $uri =404;
  77. fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
  78. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  79. include fastcgi_params;
  80. }
  81. }
  82.  
  83. location ~* /SQLiteManager(.*)$ {
  84. root /Applications/MAMP/bin;
  85. index index.php;
  86.  
  87. location ~ \.php$ {
  88. try_files $uri =404;
  89. fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
  90. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  91. include fastcgi_params;
  92. }
  93. }
  94.  
  95. location ~* /adminer(.*)$ {
  96. root /Applications/MAMP/bin;
  97. index adminer.php;
  98.  
  99. location ~ \.php$ {
  100. try_files $uri =404;
  101. fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
  102. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  103. include fastcgi_params;
  104. }
  105. }
  106.  
  107. location /icons {
  108. alias /Applications/MAMP/Library/icons;
  109. autoindex on;
  110. }
  111.  
  112. location /favicon.ico {
  113. alias /Applications/MAMP/bin/favicon.ico;
  114. # log_not_found off;
  115. # access_log off;
  116. }
  117.  
  118. location ~ \.php$ {
  119. try_files $uri =404;
  120. fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
  121. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  122. include fastcgi_params;
  123. }
  124.  
  125. location ~ /\. {
  126. deny all;
  127. }
  128.  
  129. # location ~* \.(gif|jpg|png|pdf)$ {
  130. # expires 30d;
  131. # }
  132.  
  133. # location = /robots.txt {
  134. # allow all;
  135. # log_not_found off;
  136. # access_log off;
  137. # }
  138.  
  139. # location ~* \.(txt|log)$ {
  140. # allow 127.0.0.1;
  141. # deny all;
  142. # }
  143.  
  144. # location ~ \..*/.*\.php$ {
  145. # return 403;
  146. # }
  147.  
  148. location /nginx_status {
  149. stub_status on;
  150. access_log off;
  151. allow 127.0.0.1;
  152. deny all;
  153. }
  154. }
  155.  
  156. # HTTPS server
  157. #
  158. #server {
  159. # listen 443 ssl;
  160. # server_name localhost;
  161.  
  162. # ssl_certificate cert.pem;
  163. # ssl_certificate_key cert.key;
  164.  
  165. # ssl_session_cache shared:SSL:1m;
  166. # ssl_session_timeout 5m;
  167.  
  168. # ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  169. # ssl_ciphers HIGH:!aNULL:!MD5;
  170. # ssl_prefer_server_ciphers on;
  171.  
  172. # location / {
  173. # root html;
  174. # index index.html index.htm;
  175. # }
  176. #}
  177. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement