Advertisement
Guest User

nginx -T

a guest
Aug 23rd, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.33 KB | None | 0 0
  1. nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  2. nginx: configuration file /etc/nginx/nginx.conf test is successful
  3. # configuration file /etc/nginx/nginx.conf:
  4. # For more information on configuration, see:
  5. # * Official English Documentation: http://nginx.org/en/docs/
  6. # * Official Russian Documentation: http://nginx.org/ru/docs/
  7.  
  8. user nginx;
  9. worker_processes auto;
  10. error_log /var/log/nginx/error.log;
  11. pid /run/nginx.pid;
  12.  
  13. # Load dynamic modules. See /usr/share/nginx/README.dynamic.
  14. include /usr/share/nginx/modules/*.conf;
  15.  
  16. events {
  17. worker_connections 1024;
  18. }
  19.  
  20. http {
  21. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  22. '$status $body_bytes_sent "$http_referer" '
  23. '"$http_user_agent" "$http_x_forwarded_for"';
  24.  
  25. access_log /var/log/nginx/access.log main;
  26.  
  27. sendfile on;
  28. tcp_nopush on;
  29. tcp_nodelay on;
  30. keepalive_timeout 65;
  31. types_hash_max_size 2048;
  32.  
  33. include /etc/nginx/mime.types;
  34. default_type application/octet-stream;
  35.  
  36. # Load modular configuration files from the /etc/nginx/conf.d directory.
  37. # See http://nginx.org/en/docs/ngx_core_module.html#include
  38. # for more information.
  39. include /etc/nginx/conf.d/*.conf;
  40. #include /etc/nginx/sites-enabled/*.conf;
  41.  
  42. server_tokens off;
  43.  
  44. server {
  45. listen 80 default_server;
  46. listen [::]:80 default_server;
  47. server_name _;
  48. root /usr/share/nginx/html;
  49.  
  50. # Load configuration files for the default server block.
  51. include /etc/nginx/default.d/*.conf;
  52.  
  53. location / {
  54. }
  55.  
  56. error_page 404 /404.html;
  57. location = /40x.html {
  58. }
  59.  
  60. error_page 500 502 503 504 /50x.html;
  61. location = /50x.html {
  62. }
  63. }
  64.  
  65. # Settings for a TLS enabled server.
  66. #
  67. # server {
  68. # listen 443 ssl http2 default_server;
  69. # listen [::]:443 ssl http2 default_server;
  70. # server_name _;
  71. # root /usr/share/nginx/html;
  72. #
  73. # ssl_certificate "/etc/pki/nginx/server.crt";
  74. # ssl_certificate_key "/etc/pki/nginx/private/server.key";
  75. # ssl_session_cache shared:SSL:1m;
  76. # ssl_session_timeout 10m;
  77. # ssl_ciphers HIGH:!aNULL:!MD5;
  78. # ssl_prefer_server_ciphers on;
  79. #
  80. # # Load configuration files for the default server block.
  81. # include /etc/nginx/default.d/*.conf;
  82. #
  83. # location / {
  84. # }
  85. #
  86. # error_page 404 /404.html;
  87. # location = /40x.html {
  88. # }
  89. #
  90. # error_page 500 502 503 504 /50x.html;
  91. # location = /50x.html {
  92. # }
  93. # }
  94.  
  95. }
  96.  
  97.  
  98. # configuration file /usr/share/nginx/modules/mod-http-geoip.conf:
  99. load_module "/usr/lib64/nginx/modules/ngx_http_geoip_module.so";
  100.  
  101. # configuration file /usr/share/nginx/modules/mod-http-image-filter.conf:
  102. load_module "/usr/lib64/nginx/modules/ngx_http_image_filter_module.so";
  103.  
  104. # configuration file /usr/share/nginx/modules/mod-http-perl.conf:
  105. load_module "/usr/lib64/nginx/modules/ngx_http_perl_module.so";
  106.  
  107. # configuration file /usr/share/nginx/modules/mod-http-xslt-filter.conf:
  108. load_module "/usr/lib64/nginx/modules/ngx_http_xslt_filter_module.so";
  109.  
  110. # configuration file /usr/share/nginx/modules/mod-mail.conf:
  111. load_module "/usr/lib64/nginx/modules/ngx_mail_module.so";
  112.  
  113. # configuration file /usr/share/nginx/modules/mod-stream.conf:
  114. load_module "/usr/lib64/nginx/modules/ngx_stream_module.so";
  115.  
  116. # configuration file /etc/nginx/mime.types:
  117.  
  118. types {
  119. text/html html htm shtml;
  120. text/css css;
  121. text/xml xml;
  122. image/gif gif;
  123. image/jpeg jpeg jpg;
  124. application/javascript js;
  125. application/atom+xml atom;
  126. application/rss+xml rss;
  127.  
  128. text/mathml mml;
  129. text/plain txt;
  130. text/vnd.sun.j2me.app-descriptor jad;
  131. text/vnd.wap.wml wml;
  132. text/x-component htc;
  133.  
  134. image/png png;
  135. image/tiff tif tiff;
  136. image/vnd.wap.wbmp wbmp;
  137. image/x-icon ico;
  138. image/x-jng jng;
  139. image/x-ms-bmp bmp;
  140. image/svg+xml svg svgz;
  141. image/webp webp;
  142.  
  143. application/font-woff woff;
  144. application/java-archive jar war ear;
  145. application/json json;
  146. application/mac-binhex40 hqx;
  147. application/msword doc;
  148. application/pdf pdf;
  149. application/postscript ps eps ai;
  150. application/rtf rtf;
  151. application/vnd.apple.mpegurl m3u8;
  152. application/vnd.ms-excel xls;
  153. application/vnd.ms-fontobject eot;
  154. application/vnd.ms-powerpoint ppt;
  155. application/vnd.wap.wmlc wmlc;
  156. application/vnd.google-earth.kml+xml kml;
  157. application/vnd.google-earth.kmz kmz;
  158. application/x-7z-compressed 7z;
  159. application/x-cocoa cco;
  160. application/x-java-archive-diff jardiff;
  161. application/x-java-jnlp-file jnlp;
  162. application/x-makeself run;
  163. application/x-perl pl pm;
  164. application/x-pilot prc pdb;
  165. application/x-rar-compressed rar;
  166. application/x-redhat-package-manager rpm;
  167. application/x-sea sea;
  168. application/x-shockwave-flash swf;
  169. application/x-stuffit sit;
  170. application/x-tcl tcl tk;
  171. application/x-x509-ca-cert der pem crt;
  172. application/x-xpinstall xpi;
  173. application/xhtml+xml xhtml;
  174. application/xspf+xml xspf;
  175. application/zip zip;
  176.  
  177. application/octet-stream bin exe dll;
  178. application/octet-stream deb;
  179. application/octet-stream dmg;
  180. application/octet-stream iso img;
  181. application/octet-stream msi msp msm;
  182.  
  183. application/vnd.openxmlformats-officedocument.wordprocessingml.document docx;
  184. application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx;
  185. application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
  186.  
  187. audio/midi mid midi kar;
  188. audio/mpeg mp3;
  189. audio/ogg ogg;
  190. audio/x-m4a m4a;
  191. audio/x-realaudio ra;
  192.  
  193. video/3gpp 3gpp 3gp;
  194. video/mp2t ts;
  195. video/mp4 mp4;
  196. video/mpeg mpeg mpg;
  197. video/quicktime mov;
  198. video/webm webm;
  199. video/x-flv flv;
  200. video/x-m4v m4v;
  201. video/x-mng mng;
  202. video/x-ms-asf asx asf;
  203. video/x-ms-wmv wmv;
  204. video/x-msvideo avi;
  205. }
  206.  
  207. # configuration file /etc/nginx/conf.d/default.conf:
  208. server {
  209. listen 80;
  210. server_name 192.168.75.129;
  211.  
  212. # note that these lines are originally from the "location /" block
  213. root /usr/share/nginx/html/;
  214. index index.php index.html index.htm;
  215.  
  216. location / {
  217. try_files $uri $uri/ =404;
  218. }
  219. error_page 404 /404.html;
  220. error_page 500 502 503 504 /50x.html;
  221. location = /50x.html {
  222. root /usr/share/nginx/html;
  223. }
  224.  
  225. location ~ \.php$ {
  226. try_files $uri =404;
  227. fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  228. fastcgi_index index.php;
  229. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  230. include fastcgi_params;
  231. }
  232. }
  233.  
  234. # configuration file /etc/nginx/fastcgi_params:
  235.  
  236. fastcgi_param QUERY_STRING $query_string;
  237. fastcgi_param REQUEST_METHOD $request_method;
  238. fastcgi_param CONTENT_TYPE $content_type;
  239. fastcgi_param CONTENT_LENGTH $content_length;
  240.  
  241. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  242. fastcgi_param REQUEST_URI $request_uri;
  243. fastcgi_param DOCUMENT_URI $document_uri;
  244. fastcgi_param DOCUMENT_ROOT $document_root;
  245. fastcgi_param SERVER_PROTOCOL $server_protocol;
  246. fastcgi_param REQUEST_SCHEME $scheme;
  247. fastcgi_param HTTPS $https if_not_empty;
  248.  
  249. fastcgi_param GATEWAY_INTERFACE CGI/1.1;
  250. fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
  251.  
  252. fastcgi_param REMOTE_ADDR $remote_addr;
  253. fastcgi_param REMOTE_PORT $remote_port;
  254. fastcgi_param SERVER_ADDR $server_addr;
  255. fastcgi_param SERVER_PORT $server_port;
  256. fastcgi_param SERVER_NAME $server_name;
  257.  
  258. # PHP only, required if PHP was built with --enable-force-cgi-redirect
  259. fastcgi_param REDIRECT_STATUS 200;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement