Advertisement
Guest User

nginx-t

a guest
Dec 8th, 2021
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.50 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. user www-data;
  5. worker_processes auto;
  6. pid /run/nginx.pid;
  7. include /etc/nginx/modules-enabled/*.conf;
  8.  
  9. events {
  10. worker_connections 768;
  11. # multi_accept on;
  12. }
  13.  
  14. http {
  15.  
  16. ##
  17. # Basic Settings
  18. ##
  19.  
  20. sendfile on;
  21. tcp_nopush on;
  22. tcp_nodelay on;
  23. keepalive_timeout 65;
  24. types_hash_max_size 2048;
  25. # server_tokens off;
  26.  
  27. # server_names_hash_bucket_size 64;
  28. # server_name_in_redirect off;
  29.  
  30. include /etc/nginx/mime.types;
  31. default_type application/octet-stream;
  32.  
  33. ##
  34. # SSL Settings
  35. ##
  36.  
  37. ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
  38. ssl_prefer_server_ciphers on;
  39.  
  40. ##
  41. # Logging Settings
  42. ##
  43.  
  44. access_log /var/log/nginx/access.log;
  45. error_log /var/log/nginx/error.log;
  46.  
  47. ##
  48. # Gzip Settings
  49. ##
  50.  
  51. gzip on;
  52.  
  53. # gzip_vary on;
  54. # gzip_proxied any;
  55. # gzip_comp_level 6;
  56. # gzip_buffers 16 8k;
  57. # gzip_http_version 1.1;
  58. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  59.  
  60. ##
  61. # Virtual Host Configs
  62. ##
  63.  
  64. include /etc/nginx/conf.d/*.conf;
  65. include /etc/nginx/sites-enabled/*;
  66. }
  67.  
  68.  
  69. #mail {
  70. # # See sample authentication script at:
  71. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  72. #
  73. # # auth_http localhost/auth.php;
  74. # # pop3_capabilities "TOP" "USER";
  75. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  76. #
  77. # server {
  78. # listen localhost:110;
  79. # protocol pop3;
  80. # proxy on;
  81. # }
  82. #
  83. # server {
  84. # listen localhost:143;
  85. # protocol imap;
  86. # proxy on;
  87. # }
  88. #}
  89.  
  90. # configuration file /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:
  91. load_module modules/ngx_http_image_filter_module.so;
  92.  
  93. # configuration file /etc/nginx/modules-enabled/50-mod-http-xslt-filter.conf:
  94. load_module modules/ngx_http_xslt_filter_module.so;
  95.  
  96. # configuration file /etc/nginx/modules-enabled/50-mod-mail.conf:
  97. load_module modules/ngx_mail_module.so;
  98.  
  99. # configuration file /etc/nginx/modules-enabled/50-mod-stream.conf:
  100. load_module modules/ngx_stream_module.so;
  101.  
  102. # configuration file /etc/nginx/mime.types:
  103.  
  104. types {
  105. text/html html htm shtml;
  106. text/css css;
  107. text/xml xml;
  108. image/gif gif;
  109. image/jpeg jpeg jpg;
  110. application/javascript js;
  111. application/atom+xml atom;
  112. application/rss+xml rss;
  113.  
  114. text/mathml mml;
  115. text/plain txt;
  116. text/vnd.sun.j2me.app-descriptor jad;
  117. text/vnd.wap.wml wml;
  118. text/x-component htc;
  119.  
  120. image/png png;
  121. image/tiff tif tiff;
  122. image/vnd.wap.wbmp wbmp;
  123. image/x-icon ico;
  124. image/x-jng jng;
  125. image/x-ms-bmp bmp;
  126. image/svg+xml svg svgz;
  127. image/webp webp;
  128.  
  129. application/font-woff woff;
  130. application/java-archive jar war ear;
  131. application/json json;
  132. application/mac-binhex40 hqx;
  133. application/msword doc;
  134. application/pdf pdf;
  135. application/postscript ps eps ai;
  136. application/rtf rtf;
  137. application/vnd.apple.mpegurl m3u8;
  138. application/vnd.ms-excel xls;
  139. application/vnd.ms-fontobject eot;
  140. application/vnd.ms-powerpoint ppt;
  141. application/vnd.wap.wmlc wmlc;
  142. application/vnd.google-earth.kml+xml kml;
  143. application/vnd.google-earth.kmz kmz;
  144. application/x-7z-compressed 7z;
  145. application/x-cocoa cco;
  146. application/x-java-archive-diff jardiff;
  147. application/x-java-jnlp-file jnlp;
  148. application/x-makeself run;
  149. application/x-perl pl pm;
  150. application/x-pilot prc pdb;
  151. application/x-rar-compressed rar;
  152. application/x-redhat-package-manager rpm;
  153. application/x-sea sea;
  154. application/x-shockwave-flash swf;
  155. application/x-stuffit sit;
  156. application/x-tcl tcl tk;
  157. application/x-x509-ca-cert der pem crt;
  158. application/x-xpinstall xpi;
  159. application/xhtml+xml xhtml;
  160. application/xspf+xml xspf;
  161. application/zip zip;
  162.  
  163. application/octet-stream bin exe dll;
  164. application/octet-stream deb;
  165. application/octet-stream dmg;
  166. application/octet-stream iso img;
  167. application/octet-stream msi msp msm;
  168.  
  169. application/vnd.openxmlformats-officedocument.wordprocessingml.document docx;
  170. application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx;
  171. application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
  172.  
  173. audio/midi mid midi kar;
  174. audio/mpeg mp3;
  175. audio/ogg ogg;
  176. audio/x-m4a m4a;
  177. audio/x-realaudio ra;
  178.  
  179. video/3gpp 3gpp 3gp;
  180. video/mp2t ts;
  181. video/mp4 mp4;
  182. video/mpeg mpeg mpg;
  183. video/quicktime mov;
  184. video/webm webm;
  185. video/x-flv flv;
  186. video/x-m4v m4v;
  187. video/x-mng mng;
  188. video/x-ms-asf asx asf;
  189. video/x-ms-wmv wmv;
  190. video/x-msvideo avi;
  191. }
  192.  
  193. # configuration file /etc/nginx/sites-enabled/default:
  194. ##
  195. # You should look at the following URL's in order to grasp a solid understanding
  196. # of Nginx configuration files in order to fully unleash the power of Nginx.
  197. # https://www.nginx.com/resources/wiki/start/
  198. # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
  199. # https://wiki.debian.org/Nginx/DirectoryStructure
  200. #
  201. # In most cases, administrators will remove this file from sites-enabled/ and
  202. # leave it as reference inside of sites-available where it will continue to be
  203. # updated by the nginx packaging team.
  204. #
  205. # This file will automatically load configuration files provided by other
  206. # applications, such as Drupal or Wordpress. These applications will be made
  207. # available underneath a path with that package name, such as /drupal8.
  208. #
  209. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  210. ##
  211.  
  212. # Default server configuration
  213. #
  214. server {
  215. listen 8088 default_server;
  216. listen [::]:8088 default_server;
  217.  
  218. # SSL configuration
  219. #
  220. # listen 443 ssl default_server;
  221. # listen [::]:443 ssl default_server;
  222. #
  223. # Note: You should disable gzip for SSL traffic.
  224. # See: https://bugs.debian.org/773332
  225. #
  226. # Read up on ssl_ciphers to ensure a secure configuration.
  227. # See: https://bugs.debian.org/765782
  228. #
  229. # Self signed certs generated by the ssl-cert package
  230. # Don't use them in a production server!
  231. #
  232. # include snippets/snakeoil.conf;
  233.  
  234. root /var/www/html;
  235.  
  236. # Add index.php to the list if you are using PHP
  237. index index.html index.htm index.nginx-debian.html;
  238.  
  239. server_name _;
  240.  
  241. location / {
  242. # First attempt to serve request as file, then
  243. # as directory, then fall back to displaying a 404.
  244. try_files $uri $uri/ =404;
  245. }
  246.  
  247. # pass PHP scripts to FastCGI server
  248. #
  249. #location ~ \.php$ {
  250. # include snippets/fastcgi-php.conf;
  251. #
  252. # # With php-fpm (or other unix sockets):
  253. # fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
  254. # # With php-cgi (or other tcp sockets):
  255. # fastcgi_pass 127.0.0.1:9000;
  256. #}
  257.  
  258. # deny access to .htaccess files, if Apache's document root
  259. # concurs with nginx's one
  260. #
  261. #location ~ /\.ht {
  262. # deny all;
  263. #}
  264. }
  265.  
  266.  
  267. # Virtual Host configuration for example.com
  268. #
  269. # You can move that to a different file under sites-available/ and symlink that
  270. # to sites-enabled/ to enable it.
  271. #
  272. #server {
  273. # listen 80;
  274. # listen [::]:80;
  275. #
  276. # server_name example.com;
  277. #
  278. # root /var/www/example.com;
  279. # index index.html;
  280. #
  281. # location / {
  282. # try_files $uri $uri/ =404;
  283. # }
  284. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement