Guest User

Untitled

a guest
Jun 2nd, 2014
707
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #user html;
  3. worker_processes 1;
  4.  
  5. #error_log logs/error.log;
  6. #error_log logs/error.log notice;
  7. #error_log logs/error.log info;
  8.  
  9. #pid logs/nginx.pid;
  10.  
  11.  
  12. events {
  13. worker_connections 1024;
  14. }
  15.  
  16.  
  17. http {
  18. include mime.types;
  19. default_type application/octet-stream;
  20. server_names_hash_bucket_size 64;
  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 0;
  32. keepalive_timeout 65;
  33.  
  34. #gzip on;
  35.  
  36. server {
  37. listen 80;
  38. server_name localhost;
  39.  
  40. #charset koi8-r;
  41.  
  42. #access_log logs/host.access.log main;
  43.  
  44. location / {
  45. root /usr/share/nginx/html;
  46. index index.html index.htm index.php;
  47. }
  48.  
  49. location ~ \.(php|html|htm)$ {
  50. fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
  51. fastcgi_index index.php;
  52. include fastcgi_params;
  53. }
  54.  
  55.  
  56. #error_page 404 /404.html;
  57.  
  58. # redirect server error pages to the static page /50x.html
  59. #
  60. error_page 500 502 503 504 /50x.html;
  61. location = /50x.html {
  62. root /usr/share/nginx/html;
  63. }
  64.  
  65. location ~ \.php$ {
  66. #fastcgi_pass 127.0.0.1:9000; (depending on your php-fpm socket configuration)
  67. fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
  68. fastcgi_index index.php;
  69. include fastcgi.conf;
  70. }
  71.  
  72.  
  73.  
  74. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  75. #
  76. #location ~ \.php$ {
  77. # proxy_pass http://127.0.0.1;
  78. #}
  79.  
  80. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  81. #
  82. #location ~ \.php$ {
  83. # root html;
  84. # fastcgi_pass 127.0.0.1:9000;
  85. # fastcgi_index index.php;
  86. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  87. # include fastcgi_params;
  88. #}
  89.  
  90. # deny access to .htaccess files, if Apache's document root
  91. # concurs with nginx's one
  92. #
  93. #location ~ /\.ht {
  94. # deny all;
  95. #}
  96. }
  97.  
  98.  
  99. # another virtual host using mix of IP-, name-, and port-based configuration
  100. #
  101. #server {
  102. # listen 8000;
  103. # listen somename:8080;
  104. # server_name somename alias another.alias;
  105.  
  106. # location / {
  107. # root html;
  108. # index index.html index.htm;
  109. # }
  110. #}
  111.  
  112.  
  113. # HTTPS server
  114. #
  115.  
  116. server {
  117. server_name phpmyadmin.<domain.tld>;
  118.  
  119. root /usr/share/webapps/phpMyAdmin;
  120. index index.php;
  121.  
  122. location ~ \.php$ {
  123. try_files $uri =404;
  124. fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  125. fastcgi_index index.php;
  126. include fastcgi.conf;
  127. }
  128. }
  129.  
  130. server {
  131. server_name adminer.<domain.tld>;
  132.  
  133. root /usr/share/webapps/adminer;
  134. index index.php;
  135.  
  136. location ~ \.php$ {
  137. try_files $uri =404;
  138. fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  139. fastcgi_index index.php;
  140. include fastcgi.conf;
  141. }
  142. }
  143.  
  144.  
  145. # server {
  146. # listen 443 ssl;
  147. # server_name localhost;
  148.  
  149. # ssl_certificate cert.crt;
  150. # ssl_certificate_key cert.key;
  151.  
  152. # ssl_session_cache shared:SSL:1m;
  153. # ssl_session_timeout 5m;
  154.  
  155. # ssl_ciphers HIGH:!aNULL:!MD5;
  156. # ssl_prefer_server_ciphers on;
  157.  
  158. # root /usr/share/nginx/html;
  159. # location / {
  160. # index index.html index.htm index.php;
  161. # }
  162. # }
  163.  
  164. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×