Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.09 KB | None | 0 0
  1. nginx: [warn] conflicting server name "ethanmckee.net" on 0.0.0.0:80, ignored
  2. nginx: [warn] conflicting server name "www.ethanmckee.net" on 0.0.0.0:80, ignored
  3. nginx: [warn] conflicting server name "ethanmckee.net" on [::]:80, ignored
  4. nginx: [warn] conflicting server name "www.ethanmckee.net" on [::]:80, ignored
  5. nginx: [warn] conflicting server name "ethanmckee.net" on [::]:443, ignored
  6. nginx: [warn] conflicting server name "www.ethanmckee.net" on [::]:443, ignored
  7. nginx: [warn] conflicting server name "ethanmckee.net" on 0.0.0.0:443, ignored
  8. nginx: [warn] conflicting server name "www.ethanmckee.net" on 0.0.0.0:443, ignored
  9. nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  10. nginx: configuration file /etc/nginx/nginx.conf test is successful
  11. # configuration file /etc/nginx/nginx.conf:
  12. user www-data;
  13. worker_processes auto;
  14. pid /run/nginx.pid;
  15. include /etc/nginx/modules-enabled/*.conf;
  16.  
  17. events {
  18. worker_connections 768;
  19. # multi_accept on;
  20. }
  21.  
  22. http {
  23.  
  24. ##
  25. # Basic Settings
  26. ##
  27.  
  28. sendfile on;
  29. tcp_nopush on;
  30. tcp_nodelay on;
  31. keepalive_timeout 65;
  32. types_hash_max_size 2048;
  33. # server_tokens off;
  34.  
  35. server_names_hash_bucket_size 64;
  36. # server_name_in_redirect off;
  37.  
  38. include /etc/nginx/mime.types;
  39. default_type application/octet-stream;
  40.  
  41. ##
  42. # SSL Settings
  43. ##
  44.  
  45. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  46. ssl_prefer_server_ciphers on;
  47.  
  48. ##
  49. # Logging Settings
  50. ##
  51.  
  52. access_log /var/log/nginx/access.log;
  53. error_log /var/log/nginx/error.log;
  54.  
  55. ##
  56. # Gzip Settings
  57. ##
  58.  
  59. gzip on;
  60.  
  61. # gzip_vary on;
  62. # gzip_proxied any;
  63. # gzip_comp_level 6;
  64. # gzip_buffers 16 8k;
  65. # gzip_http_version 1.1;
  66. # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
  67.  
  68. ##
  69. # Virtual Host Configs
  70. ##
  71.  
  72. include /etc/nginx/conf.d/*.conf;
  73. include /etc/nginx/sites-enabled/*;
  74. }
  75.  
  76.  
  77. #mail {
  78. # # See sample authentication script at:
  79. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  80. #
  81. # # auth_http localhost/auth.php;
  82. # # pop3_capabilities "TOP" "USER";
  83. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  84. #
  85. # server {
  86. # listen localhost:110;
  87. # protocol pop3;
  88. # proxy on;
  89. # }
  90. #
  91. # server {
  92. # listen localhost:143;
  93. # protocol imap;
  94. # proxy on;
  95. # }
  96. #}
  97.  
  98. # configuration file /etc/nginx/modules-enabled/50-mod-http-geoip.conf:
  99. load_module modules/ngx_http_geoip_module.so;
  100.  
  101. # configuration file /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:
  102. load_module modules/ngx_http_image_filter_module.so;
  103.  
  104. # configuration file /etc/nginx/modules-enabled/50-mod-http-xslt-filter.conf:
  105. load_module modules/ngx_http_xslt_filter_module.so;
  106.  
  107. # configuration file /etc/nginx/modules-enabled/50-mod-mail.conf:
  108. load_module modules/ngx_mail_module.so;
  109.  
  110. # configuration file /etc/nginx/modules-enabled/50-mod-stream.conf:
  111. load_module modules/ngx_stream_module.so;
  112.  
  113. # configuration file /etc/nginx/mime.types:
  114.  
  115. types {
  116. text/html html htm shtml;
  117. text/css css;
  118. text/xml xml;
  119. image/gif gif;
  120. image/jpeg jpeg jpg;
  121. application/javascript js;
  122. application/atom+xml atom;
  123. application/rss+xml rss;
  124.  
  125. text/mathml mml;
  126. text/plain txt;
  127. text/vnd.sun.j2me.app-descriptor jad;
  128. text/vnd.wap.wml wml;
  129. text/x-component htc;
  130.  
  131. image/png png;
  132. image/tiff tif tiff;
  133. image/vnd.wap.wbmp wbmp;
  134. image/x-icon ico;
  135. image/x-jng jng;
  136. image/x-ms-bmp bmp;
  137. image/svg+xml svg svgz;
  138. image/webp webp;
  139.  
  140. application/font-woff woff;
  141. application/java-archive jar war ear;
  142. application/json json;
  143. application/mac-binhex40 hqx;
  144. application/msword doc;
  145. application/pdf pdf;
  146. application/postscript ps eps ai;
  147. application/rtf rtf;
  148. application/vnd.apple.mpegurl m3u8;
  149. application/vnd.ms-excel xls;
  150. application/vnd.ms-fontobject eot;
  151. application/vnd.ms-powerpoint ppt;
  152. application/vnd.wap.wmlc wmlc;
  153. application/vnd.google-earth.kml+xml kml;
  154. application/vnd.google-earth.kmz kmz;
  155. application/x-7z-compressed 7z;
  156. application/x-cocoa cco;
  157. application/x-java-archive-diff jardiff;
  158. application/x-java-jnlp-file jnlp;
  159. application/x-makeself run;
  160. application/x-perl pl pm;
  161. application/x-pilot prc pdb;
  162. application/x-rar-compressed rar;
  163. application/x-redhat-package-manager rpm;
  164. application/x-sea sea;
  165. application/x-shockwave-flash swf;
  166. application/x-stuffit sit;
  167. application/x-tcl tcl tk;
  168. application/x-x509-ca-cert der pem crt;
  169. application/x-xpinstall xpi;
  170. application/xhtml+xml xhtml;
  171. application/xspf+xml xspf;
  172. application/zip zip;
  173.  
  174. application/octet-stream bin exe dll;
  175. application/octet-stream deb;
  176. application/octet-stream dmg;
  177. application/octet-stream iso img;
  178. application/octet-stream msi msp msm;
  179.  
  180. application/vnd.openxmlformats-officedocument.wordprocessingml.document docx;
  181. application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx;
  182. application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
  183.  
  184. audio/midi mid midi kar;
  185. audio/mpeg mp3;
  186. audio/ogg ogg;
  187. audio/x-m4a m4a;
  188. audio/x-realaudio ra;
  189.  
  190. video/3gpp 3gpp 3gp;
  191. video/mp2t ts;
  192. video/mp4 mp4;
  193. video/mpeg mpeg mpg;
  194. video/quicktime mov;
  195. video/webm webm;
  196. video/x-flv flv;
  197. video/x-m4v m4v;
  198. video/x-mng mng;
  199. video/x-ms-asf asx asf;
  200. video/x-ms-wmv wmv;
  201. video/x-msvideo avi;
  202. }
  203.  
  204. # configuration file /etc/nginx/sites-enabled/default:
  205. ##
  206. # You should look at the following URL's in order to grasp a solid understanding
  207. # of Nginx configuration files in order to fully unleash the power of Nginx.
  208. # https://www.nginx.com/resources/wiki/start/
  209. # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
  210. # https://wiki.debian.org/Nginx/DirectoryStructure
  211. #
  212. # In most cases, administrators will remove this file from sites-enabled/ and
  213. # leave it as reference inside of sites-available where it will continue to be
  214. # updated by the nginx packaging team.
  215. #
  216. # This file will automatically load configuration files provided by other
  217. # applications, such as Drupal or Wordpress. These applications will be made
  218. # available underneath a path with that package name, such as /drupal8.
  219. #
  220. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  221. ##
  222.  
  223. # Default server configuration
  224. #
  225. server {
  226. listen 80 default_server;
  227. listen [::]:80 default_server;
  228.  
  229. # SSL configuration
  230. #
  231. # listen 443 ssl default_server;
  232. # listen [::]:443 ssl default_server;
  233. #
  234. # Note: You should disable gzip for SSL traffic.
  235. # See: https://bugs.debian.org/773332
  236. #
  237. # Read up on ssl_ciphers to ensure a secure configuration.
  238. # See: https://bugs.debian.org/765782
  239. #
  240. # Self signed certs generated by the ssl-cert package
  241. # Don't use them in a production server!
  242. #
  243. # include snippets/snakeoil.conf;
  244.  
  245. root /var/www/html;
  246.  
  247. # Add index.php to the list if you are using PHP
  248. index index.html index.htm index.nginx-debian.html;
  249.  
  250. server_name _;
  251.  
  252. location / {
  253. # First attempt to serve request as file, then
  254. # as directory, then fall back to displaying a 404.
  255. try_files $uri $uri/ =404;
  256. }
  257.  
  258. # pass PHP scripts to FastCGI server
  259. #
  260. #location ~ \.php$ {
  261. # include snippets/fastcgi-php.conf;
  262. #
  263. # # With php-fpm (or other unix sockets):
  264. # fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  265. # # With php-cgi (or other tcp sockets):
  266. # fastcgi_pass 127.0.0.1:9000;
  267. #}
  268.  
  269. # deny access to .htaccess files, if Apache's document root
  270. # concurs with nginx's one
  271. #
  272. #location ~ /\.ht {
  273. # deny all;
  274. #}
  275. }
  276.  
  277.  
  278. # Virtual Host configuration for example.com
  279. #
  280. # You can move that to a different file under sites-available/ and symlink that
  281. # to sites-enabled/ to enable it.
  282. #
  283. #server {
  284. # listen 80;
  285. # listen [::]:80;
  286. #
  287. # server_name example.com;
  288. #
  289. # root /var/www/example.com;
  290. # index index.html;
  291. #
  292. # location / {
  293. # try_files $uri $uri/ =404;
  294. # }
  295. #}
  296.  
  297. # configuration file /etc/nginx/sites-enabled/ethanmckee.net:
  298. server {
  299.  
  300. root /var/www/ethanmckee.net/html;
  301. index index.html index.htm index.nginx-debian.html;
  302.  
  303. server_name ethanmckee.net www.ethanmckee.net;
  304.  
  305. location / {
  306. try_files $uri $uri/ =404;
  307. }
  308.  
  309. listen [::]:443 ssl; # managed by Certbot
  310. listen 443 ssl; # managed by Certbot
  311. ssl_certificate /etc/letsencrypt/live/ethanmckee.net/fullchain.pem; # managed by Certbot
  312. ssl_certificate_key /etc/letsencrypt/live/ethanmckee.net/privkey.pem; # managed by Certbot
  313. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  314. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  315.  
  316.  
  317. }
  318. server {
  319. if ($host = www.ethanmckee.net) {
  320. return 301 https://$host$request_uri;
  321. } # managed by Certbot
  322.  
  323.  
  324. if ($host = ethanmckee.net) {
  325. return 301 https://$host$request_uri;
  326. } # managed by Certbot
  327.  
  328.  
  329. listen 80;
  330. listen [::]:80;
  331.  
  332. server_name ethanmckee.net www.ethanmckee.net;
  333. return 404; # managed by Certbot
  334. }
  335. server {
  336.  
  337. server_name news.ethanmckee.net;
  338. root /var/www/ethanmckee.net/html/build/;
  339. index index.html;
  340.  
  341. listen [::]:443 ssl; # managed by Certbot
  342. listen 443 ssl; # managed by Certbot
  343. ssl_certificate /etc/letsencrypt/live/news.ethanmckee.net/fullchain.pem; # managed by Certbot
  344. ssl_certificate_key /etc/letsencrypt/live/news.ethanmckee.net/privkey.pem; # managed by Certbot
  345. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  346. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  347.  
  348. }
  349. server {
  350. if ($host = news.ethanmckee.net) {
  351. return 301 https://$host$request_uri;
  352. } # managed by Certbot
  353.  
  354.  
  355. listen 80;
  356. listen [::]:80;
  357.  
  358. server_name news.ethanmckee.net;
  359. return 404; # managed by Certbot
  360.  
  361.  
  362. }
  363. server {
  364.  
  365. server_name table.ethanmckee.net;
  366. root /var/www/ethanmckee.net/html/periodictable/;
  367. index index.html;
  368.  
  369. listen [::]:443 ssl;
  370. listen 443 ssl;
  371.  
  372. ssl_certificate /etc/letsencrypt/live/table.ethanmckee.net/fullchain.pem; # managed by Certbot
  373. ssl_certificate_key /etc/letsencrypt/live/table.ethanmckee.net/privkey.pem; # managed by Certbot
  374. }
  375. server {
  376. if ($host = table.ethanmckee.net) {
  377. return 301 https://$host$request_uri;
  378. } # managed by Certbot
  379.  
  380.  
  381. listen 80;
  382. listen [::]:80;
  383.  
  384. server_name table.ethanmckee.net;
  385. return 404; # managed by Certbot
  386.  
  387.  
  388. }
  389. # configuration file /etc/letsencrypt/options-ssl-nginx.conf:
  390. # This file contains important security parameters. If you modify this file
  391. # manually, Certbot will be unable to automatically provide future security
  392. # updates. Instead, Certbot will print and log an error message with a path to
  393. # the up-to-date file that you will need to refer to when manually updating
  394. # this file.
  395.  
  396. ssl_session_cache shared:le_nginx_SSL:1m;
  397. ssl_session_timeout 1440m;
  398.  
  399. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  400. ssl_prefer_server_ciphers on;
  401.  
  402. ssl_ciphers "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS";
  403.  
  404. # configuration file /etc/nginx/sites-enabled/ethanmckee.net.save:
  405. server {
  406.  
  407. root /var/www/ethanmckee.net/html;
  408. index index.html index.htm index.nginx-debian.html;
  409.  
  410. server_name ethanmckee.net www.ethanmckee.net;
  411.  
  412. location / {
  413. try_files $uri $uri/ =404;
  414. }
  415.  
  416. listen [::]:443 ssl ipv6only=on; # managed by Certbot
  417. listen 443 ssl; # managed by Certbot
  418. ssl_certificate /etc/letsencrypt/live/ethanmckee.net/fullchain.pem; # managed by Certbot
  419. ssl_certificate_key /etc/letsencrypt/live/ethanmckee.net/privkey.pem; # managed by Certbot
  420. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  421. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  422.  
  423.  
  424. }
  425. server {
  426. if ($host = www.ethanmckee.net) {
  427. return 301 https://$host$request_uri;
  428. } # managed by Certbot
  429.  
  430.  
  431. if ($host = ethanmckee.net) {
  432. return 301 https://$host$request_uri;
  433. } # managed by Certbot
  434.  
  435.  
  436. listen 80;
  437. listen [::]:80;
  438.  
  439. server_name ethanmckee.net www.ethanmckee.net;
  440. return 404; # managed by Certbot
  441.  
  442. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement