Advertisement
Guest User

Untitled

a guest
Jul 6th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.33 KB | None | 0 0
  1. server{
  2.         listen 80;
  3.         server_name nekit.me;
  4.         return 301 https://nekit.me$request_uri;
  5. }
  6.  
  7. server {
  8.     listen 443;
  9.     # ssl on;
  10.     ssl_certificate /root/certs/cert_chain.crt;
  11.     ssl_certificate_key /root/certs/nekit.key;
  12.  
  13.     root /var/www/html/vue/app/dist;
  14.  
  15.     # Add index.php to the list if you are using PHP
  16.     index index.html index.htm index.nginx-debian.html;
  17.  
  18.  
  19.     server_name nekit.me;
  20.  
  21.     location / {
  22.         # First attempt to serve request as file, then
  23.         # as directory, then fall back to displaying a 404.
  24.         try_files $uri $uri/ =404;
  25.     }
  26.  
  27.     # pass PHP scripts to FastCGI server
  28.     #
  29.     #location ~ \.php$ {
  30.     #   include snippets/fastcgi-php.conf;
  31.     #
  32.     #   # With php-fpm (or other unix sockets):
  33.     #   fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  34.     #   # With php-cgi (or other tcp sockets):
  35.     #   fastcgi_pass 127.0.0.1:9000;
  36.     #}
  37.  
  38.     # deny access to .htaccess files, if Apache's document root
  39.     # concurs with nginx's one
  40.     #
  41.     #location ~ /\.ht {
  42.     #   deny all;
  43.     #}
  44. }
  45.  
  46.  
  47. # Virtual Host configuration for example.com
  48. #
  49. # You can move that to a different file under sites-available/ and symlink that
  50. # to sites-enabled/ to enable it.
  51. #
  52. #server {
  53. #   listen 80;
  54. #   listen [::]:80;
  55. #
  56. #   server_name example.com;
  57. #
  58. #   root /var/www/example.com;
  59. #   index index.html;
  60. #
  61. #   location / {
  62. #       try_files $uri $uri/ =404;
  63. #   }
  64. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement