Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. listen 443 ssl default_server;
  5. listen [::]:443 ssl default_server;
  6. root /home/ubuntu/FAKE WEB ROOT DIR;
  7. index index.html index.htm index.php index.nginx-debian.html;
  8. server_name XXxXX.com;
  9. error_page 404 /404.html;
  10. location = /404.html {
  11. root /home/ubuntu/FAKE ERROR DIR/;
  12. internal;
  13. }
  14. location ~ \.php$ {
  15. include snippets/fastcgi-php.conf;
  16. fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  17. }
  18. location ~ /\.ht {
  19. deny all;
  20. }
  21. ssl_certificate /etc/letsencrypt/live/XXxXX.com.com/fullchain.pem;
  22. ssl_certificate_key /etc/letsencrypt/live/XXxXX.com.com/privkey.pem;
  23. location ~* ^/iwl/.+\.(js|css|jpg)$ {
  24. root /path/to/your/node/root;
  25. }
  26. location /iwl {
  27. #root /home/ubuntu/FAKE NODEJS DIR/;
  28. proxy_pass http://localhost:PORT/;
  29. proxy_ssl_trusted_certificate /etc/letsencrypt/live/XXxXX.com.com/fullchain.pem;
  30. proxy_ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement