JorekTheGlitch

Untitled

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