Guest User

Untitled

a guest
Jul 17th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.53 KB | None | 0 0
  1. root@5-63-152-158:/var/www/nodejs# nginx -T
  2. nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  3. nginx: configuration file /etc/nginx/nginx.conf test is successful
  4. # configuration file /etc/nginx/nginx.conf:
  5. user www-root;
  6. worker_processes 1;
  7.  
  8. error_log /var/log/nginx/error.log warn;
  9. pid /var/run/nginx.pid;
  10.  
  11.  
  12. events {
  13. worker_connections 1024;
  14. }
  15.  
  16.  
  17. http {
  18. include /etc/nginx/mime.types;
  19. default_type application/octet-stream;
  20.  
  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.  
  30. keepalive_timeout 65;
  31.  
  32. proxy_connect_timeout 3600;
  33. proxy_send_timeout 3600;
  34. proxy_read_timeout 3600;
  35. send_timeout 3600;
  36.  
  37. #gzip on;
  38.  
  39. include /etc/nginx/conf.d/*.conf;
  40. include /etc/nginx/vhosts/*/*.conf;
  41. client_max_body_size 128m;
  42. server {
  43. server_name localhost;
  44. disable_symlinks if_not_owner;
  45. listen 443;
  46. include /etc/nginx/vhosts-includes/*.conf;
  47. location @fallback {
  48. error_log /dev/null crit;
  49. proxy_pass http://127.0.0.1:5000;
  50. proxy_redirect off;
  51. proxy_set_header Host $host;
  52. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  53. proxy_set_header X-Forwarded-Proto $scheme;
  54. access_log off ;
  55. }
  56. }
  57. }
  58.  
  59. # configuration file /etc/nginx/mime.types:
  60.  
  61. types {
  62. text/html html htm shtml;
  63. text/css css;
  64. text/xml xml;
  65. image/gif gif;
  66. image/jpeg jpeg jpg;
  67. application/javascript js;
  68. application/atom+xml atom;
  69. application/rss+xml rss;
  70.  
  71. text/mathml mml;
  72. text/plain txt;
  73. text/vnd.sun.j2me.app-descriptor jad;
  74. text/vnd.wap.wml wml;
  75. text/x-component htc;
  76.  
  77. image/png png;
  78. image/svg+xml svg svgz;
  79. image/tiff tif tiff;
  80. image/vnd.wap.wbmp wbmp;
  81. image/webp webp;
  82. image/x-icon ico;
  83. image/x-jng jng;
  84. image/x-ms-bmp bmp;
  85.  
  86. font/woff woff;
  87. font/woff2 woff2;
  88.  
  89. application/java-archive jar war ear;
  90. application/json json;
  91. application/mac-binhex40 hqx;
  92. application/msword doc;
  93. application/pdf pdf;
  94. application/postscript ps eps ai;
  95. application/rtf rtf;
  96. application/vnd.apple.mpegurl m3u8;
  97. application/vnd.google-earth.kml+xml kml;
  98. application/vnd.google-earth.kmz kmz;
  99. application/vnd.ms-excel xls;
  100. application/vnd.ms-fontobject eot;
  101. application/vnd.ms-powerpoint ppt;
  102. application/vnd.oasis.opendocument.graphics odg;
  103. application/vnd.oasis.opendocument.presentation odp;
  104. application/vnd.oasis.opendocument.spreadsheet ods;
  105. application/vnd.oasis.opendocument.text odt;
  106. application/vnd.openxmlformats-officedocument.presentationml.presentation
  107. pptx;
  108. application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  109. xlsx;
  110. application/vnd.openxmlformats-officedocument.wordprocessingml.document
  111. docx;
  112. application/vnd.wap.wmlc wmlc;
  113. application/x-7z-compressed 7z;
  114. application/x-cocoa cco;
  115. application/x-java-archive-diff jardiff;
  116. application/x-java-jnlp-file jnlp;
  117. application/x-makeself run;
  118. application/x-perl pl pm;
  119. application/x-pilot prc pdb;
  120. application/x-rar-compressed rar;
  121. application/x-redhat-package-manager rpm;
  122. application/x-sea sea;
  123. application/x-shockwave-flash swf;
  124. application/x-stuffit sit;
  125. application/x-tcl tcl tk;
  126. application/x-x509-ca-cert der pem crt;
  127. application/x-xpinstall xpi;
  128. application/xhtml+xml xhtml;
  129. application/xspf+xml xspf;
  130. application/zip zip;
  131.  
  132. application/octet-stream bin exe dll;
  133. application/octet-stream deb;
  134. application/octet-stream dmg;
  135. application/octet-stream iso img;
  136. application/octet-stream msi msp msm;
  137.  
  138. audio/midi mid midi kar;
  139. audio/mpeg mp3;
  140. audio/ogg ogg;
  141. audio/x-m4a m4a;
  142. audio/x-realaudio ra;
  143.  
  144. video/3gpp 3gpp 3gp;
  145. video/mp2t ts;
  146. video/mp4 mp4;
  147. video/mpeg mpeg mpg;
  148. video/quicktime mov;
  149. video/webm webm;
  150. video/x-flv flv;
  151. video/x-m4v m4v;
  152. video/x-mng mng;
  153. video/x-ms-asf asx asf;
  154. video/x-ms-wmv wmv;
  155. video/x-msvideo avi;
  156. }
  157.  
  158. # configuration file /etc/nginx/conf.d/default.conf:
  159. # disabled by ISPmanager
  160.  
  161. # configuration file /etc/nginx/conf.d/sysmon.conf:
  162. server {
  163. listen 443;
  164. server_name shot-on-top.com;
  165.  
  166. location / {
  167. proxy_set_header X-Forwarded-For $remote_addr;
  168. proxy_set_header Host $http_host;
  169. proxy_pass http://5.63.152.158:5000/;
  170. }
  171. }
  172.  
  173.  
  174. # configuration file /etc/nginx/vhosts/www-root/shot-on-top.com.conf:
  175. server {
  176. server_name shot-on-top.com www.shot-on-top.com;
  177. charset off;
  178. index index.php index.html;
  179. disable_symlinks if_not_owner from=$root_path;
  180. include /etc/nginx/vhosts-includes/*.conf;
  181. include /etc/nginx/vhosts-resources/shot-on-top.com/*.conf;
  182. access_log /var/www/httpd-logs/shot-on-top.com.access.log;
  183. error_log /var/www/httpd-logs/shot-on-top.com.error.log notice;
  184. ssi on;
  185. set $root_path /var/www/www-root/data/www/shot-on-top.com;
  186. root $root_path;
  187. location / {
  188. location ~ [^/]\.ph(p\d*|tml)$ {
  189. try_files /does_not_exists @fallback;
  190. }
  191. location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
  192. try_files $uri $uri/ @fallback;
  193. }
  194. location / {
  195. try_files /does_not_exists @fallback;
  196. }
  197. }
  198. location @fallback {
  199. proxy_pass http://127.0.0.1:8080;
  200. proxy_redirect http://127.0.0.1:8080 /;
  201. proxy_set_header Host $host;
  202. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  203. proxy_set_header X-Forwarded-Proto $scheme;
  204. proxy_set_header X-Forwarded-Port $server_port;
  205. access_log off;
  206. }
  207. return 301 https://$host:443$request_uri;
  208. listen 5.63.152.158:80;
  209. listen [2a00:f940:2:1:2::17e]:80;
  210. }
  211. server {
  212. server_name shot-on-top.com www.shot-on-top.com;
  213. ssl_certificate "/var/www/httpd-cert/www-root/shot-on-top.com.crtca";
  214. ssl_certificate_key "/var/www/httpd-cert/www-root/shot-on-top.com.key";
  215. ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
  216. ssl_prefer_server_ciphers on;
  217. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  218. add_header Strict-Transport-Security "max-age=31536000;";
  219. ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
  220. charset off;
  221. index index.php index.html;
  222. disable_symlinks if_not_owner from=$root_path;
  223. include /etc/nginx/vhosts-includes/*.conf;
  224. include /etc/nginx/vhosts-resources/shot-on-top.com/*.conf;
  225. access_log /var/www/httpd-logs/shot-on-top.com.access.log;
  226. error_log /var/www/httpd-logs/shot-on-top.com.error.log notice;
  227. ssi on;
  228. set $root_path /var/www/www-root/data/www/shot-on-top.com;
  229. root $root_path;
  230. location / {
  231. location ~ [^/]\.ph(p\d*|tml)$ {
  232. try_files /does_not_exists @fallback;
  233. }
  234. location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
  235. try_files $uri $uri/ @fallback;
  236. }
  237. location / {
  238. try_files /does_not_exists @fallback;
  239. }
  240. }
  241. location @fallback {
  242. proxy_pass http://127.0.0.1:8080;
  243. proxy_redirect http://127.0.0.1:8080 /;
  244. proxy_set_header Host $host;
  245. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  246. proxy_set_header X-Forwarded-Proto $scheme;
  247. proxy_set_header X-Forwarded-Port $server_port;
  248. access_log off;
  249. }
  250. listen [2a00:f940:2:1:2::17e]:443 ssl;
  251. listen 5.63.152.158:443 ssl;
  252. }
  253.  
  254. # configuration file /etc/nginx/vhosts-includes/awstats-nginx.conf:
  255. location /awstatsicons/ {
  256. alias /usr/share/awstats/icon/;
  257. }
  258.  
  259. # configuration file /etc/nginx/vhosts-includes/blacklist-nginx.conf:
  260. location @blacklist {
  261. proxy_redirect off ;
  262. proxy_pass https://151.248.122.119:1500;
  263. rewrite (.*) /mancgi/ddos break;
  264. proxy_set_header Host $host;
  265. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  266. proxy_set_header X-Forwarded-Proto $scheme;
  267. proxy_set_header X_ISP_FIREWALLSEC 3c59772a16887ba6bbff65ad4a6eb0521a0e8a130c4616e801e93959cb1635076fac328534ad2befac909cf7ff4c49195bd32d6719434f1a2d8973f89fa8ff0e54319488debf778b5013824f60cb68bb9f9522b8d971d306fa46fe99effda8432f3ccc0dfb43984b571a9ab7e603728598943d710510770057759946734189a2;
  268. }
  269.  
  270. # configuration file /etc/nginx/vhosts-includes/disabled.conf:
  271. location /disabled/ {
  272. alias /usr/local/mgr5/www/disabled/;
  273. }
  274.  
  275. # configuration file /etc/nginx/vhosts-includes/letsencrypt.conf:
  276. location ^~ /.well-known/acme-challenge/ {
  277. alias /usr/local/mgr5/www/letsencrypt/;
  278. }
  279. # configuration file /etc/nginx/vhosts-includes/phpmyadmin-nginx.conf:
  280. location /phpmyadmin {
  281. alias /usr/share/phpmyadmin;
  282. index index.php;
  283. }
  284. location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  285. alias /usr/share/phpmyadmin/$1;
  286. error_page 404 @apache;
  287. }
  288. location ~ ^/phpmyadmin/(.+\.php)$ {
  289. alias /usr/share/phpmyadmin/$1;
  290. fastcgi_pass unix:/var/run/php-fpm.www-data.sock;
  291. fastcgi_index index.php;
  292. fastcgi_param SCRIPT_FILENAME $request_filename;
  293. include fastcgi_params;
  294. error_page 502 = @apache;
  295. error_page 404 = @apache;
  296. }
  297. location @apache {
  298. error_log /dev/null crit;
  299. proxy_pass http://127.0.0.1:8080;
  300. proxy_redirect http://127.0.0.1:8080 /;
  301. proxy_set_header Host $host;
  302. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  303. proxy_set_header X-Forwarded-Proto $scheme;
  304. }
  305. location ^~ /phpmyadmin/setup {
  306. deny all;
  307. }
  308.  
  309. # configuration file /etc/nginx/fastcgi_params:
  310.  
  311. fastcgi_param QUERY_STRING $query_string;
  312. fastcgi_param REQUEST_METHOD $request_method;
  313. fastcgi_param CONTENT_TYPE $content_type;
  314. fastcgi_param CONTENT_LENGTH $content_length;
  315.  
  316. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  317. fastcgi_param REQUEST_URI $request_uri;
  318. fastcgi_param DOCUMENT_URI $document_uri;
  319. fastcgi_param DOCUMENT_ROOT $document_root;
  320. fastcgi_param SERVER_PROTOCOL $server_protocol;
  321. fastcgi_param REQUEST_SCHEME $scheme;
  322. fastcgi_param HTTPS $https if_not_empty;
  323.  
  324. fastcgi_param GATEWAY_INTERFACE CGI/1.1;
  325. fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
  326.  
  327. fastcgi_param REMOTE_ADDR $remote_addr;
  328. fastcgi_param REMOTE_PORT $remote_port;
  329. fastcgi_param SERVER_ADDR $server_addr;
  330. fastcgi_param SERVER_PORT $server_port;
  331. fastcgi_param SERVER_NAME $server_name;
  332.  
  333. # PHP only, required if PHP was built with --enable-force-cgi-redirect
  334. fastcgi_param REDIRECT_STATUS 200;
  335. fastcgi_param SCRIPT_FILENAME $request_filename;
  336.  
  337. # configuration file /etc/nginx/vhosts-includes/roundcube-nginx.conf:
  338. location /roundcube {
  339. alias /var/lib/roundcube;
  340. index index.php;
  341. }
  342. location ~* ^/roundcube/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
  343. alias /var/lib/roundcube/$1;
  344. error_page 404 @apache;
  345. }
  346. location ~ ^/roundcube/(.+\.php)$ {
  347. alias /var/lib/roundcube/$1;
  348. fastcgi_pass unix:/var/run/php-fpm.www-data.sock;
  349. fastcgi_index index.php;
  350. fastcgi_param SCRIPT_FILENAME $request_filename;
  351. include fastcgi_params;
  352. error_page 502 = @apache;
  353. error_page 404 = @apache;
  354. }
  355. location @apache {
  356. error_log /dev/null crit;
  357. proxy_pass http://127.0.0.1:8080;
  358. proxy_redirect http://127.0.0.1:8080 /;
  359. proxy_set_header Host $host;
  360. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  361. proxy_set_header X-Forwarded-Proto $scheme;
  362. }
  363.  
  364. root@5-63-152-158:/var/www/nodejs# curl https://shot-on-top.com
  365. <!doctype html><html lang="en"><head><html xmlns:og="http://ogp.me/ns#"><meta charset="UTF-8"><meta name="description" content="Shot on Top"><meta property="og:title" content="Shot on Top"/><meta property="og:description" content="Service for promoting video in the Triller app"/><meta property="og:image" content="./favicon.ico"/><meta property="og:type" content="Product"/><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="twitter:creator" content="Shot On Top"><meta name="twitter:site" content="https://shot-on-top.com"><meta name="twitter:image" content="/favicon.ico"><meta name="twitter:title" content="Shot on Top"><meta name="twitter:description" content="Shot on Top is a best world project which can help to creative and talented people become heard and famous. Shot on Top works on the Triller platform where you can promote your publications to the top."><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon.ico"><link rel="icon" type="image/png" sizes="16x16" href="/favicon.ico"><link rel="manifest" href="/site.webmanifest"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"><meta name="msapplication-TileColor" content="#603cba"><meta name="theme-color" content="#000000"><meta property="og:title" content="Shot on Top"/><meta property="og:image" content="/favicon.ico"/><meta property="og:description" content="Shot on Top is a best world project which can help to creative and talented people become heard and famous. Shot on Top works on the Triller platform where you can promote your publications to the top."/><meta property="og:url" content="https://shot-on-top.com"/><meta property="og:site_name" content="Shot on Top"/><meta name="twitter:image" content="/favicon.ico"><link rel="apple-touch-icon" href="touch-icon-iphone.png"><link rel="apple-touch-icon" href="/favicon.ico"><link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon.png"><link rel="apple-touch-icon" sizes="180x180" href="/favicon.ico"><link rel="apple-touch-icon" sizes="167x167" href="/favicon.ico"><link rel="shortcut icon" href="favicon.ico"/><link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap"><link rel="preload" as="style" href="chrome-extension://liecbddmkiiihnedobmlmillhodjkdmb/css/content.css"><title>Shot On Top</title><link href="/static/css/7.c27a359e.chunk.css" rel="stylesheet"><link href="/static/css/main.33824ff7.chunk.css" rel="stylesheet"></head><script async type="application/ld+json">{
  366. "@context" : "http://schema.org",
  367. "@type" : "Organization",
  368. "name" : "Example",
  369. "url" : "https://www.example.com",
  370. "sameAs" : [
  371. "https://twitter.com/example",
  372. "https://www.facebook.com/example",
  373. "https://foursquare.com/v/example/4e296473149554c77442cc98",
  374. "http://www.yelp.com/biz/your-business-url-from-yelp",
  375. "https://www.instagram.com/example/?hl=en"
  376. ],
  377. "address": {
  378. "@type": "LA",
  379. "streetAddress": "15 Street",
  380. "addressRegion": "LA",
  381. "postalCode": "414123",
  382. "addressCountry": "USA"
  383. }
  384. }</script><body><div id="root"></div><script>!function(e){function t(t){for(var n,o,u=t[0],i=t[1],f=t[2],l=0,d=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(s&&s(t);d.length;)d.shift()();return c.push.apply(c,f||[]),r()}function r(){for(var e,t=0;t<c.length;t++){for(var r=c[t],n=!0,o=1;o<r.length;o++){var i=r[o];0!==a[i]&&(n=!1)}n&&(c.splice(t--,1),e=u(u.s=r[0]))}return e}var n={},o={5:0},a={5:0},c=[];function u(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,u),r.l=!0,r.exports}u.e=function(e){var t=[];o[e]?t.push(o[e]):0!==o[e]&&{2:1,3:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1}[e]&&t.push(o[e]=new Promise((function(t,r){for(var n="static/css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"78fe0b07",3:"e0ee8a2c",6:"31d6cfe0",8:"2ddf350c",9:"15d8ca54",10:"5ab7b1b9",11:"807b9a50",12:"141ffaf9",13:"5ab7b1b9",14:"b51bbad8"}[e]+".chunk.css",a=u.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(s=c[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===n||f===a))return t()}var l=document.getElementsByTagName("style");for(i=0;i<l.length;i++){var s;if((f=(s=l[i]).getAttribute("data-href"))===n||f===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var n=t&&t.target&&t.target.src||a,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=n,delete o[e],d.parentNode.removeChild(d),r(c)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){o[e]=0})));var r=a[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=a[e]=[t,n]}));t.push(r[2]=n);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/js/"+({}[e]||e)+"."+{0:"c484f01c",1:"c213d77b",2:"ee71495d",3:"48357a2f",6:"09fced82",8:"5f4d55e4",9:"c6aaaab0",10:"45a15e81",11:"06e57f43",12:"6ff9c1fa",13:"40cdb78d",14:"72482cae"}[e]+".chunk.js"}(e);var f=new Error;c=function(t){i.onerror=i.onload=null,clearTimeout(l);var r=a[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",f.name="ChunkLoadError",f.type=n,f.request=o,r[1](f)}a[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:i})}),12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(t)},u.m=e,u.c=n,u.d=function(e,t,r){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(u.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(r,n,function(t){return e[t]}.bind(null,n));return r},u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/",u.oe=function(e){throw console.error(e),e};var i=this.webpackJsonpclient=this.webpackJsonpclient||[],f=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var s=f;r()}([])</script><script src="/static/js/7.8d138b30.chunk.js"></script><script src="/static/js/main.f06f17f9.chunk.js"></script></body></html>root@5-63-152-158:/var/www/nodejs# ^C
Add Comment
Please, Sign In to add comment