Advertisement
Guest User

Untitled

a guest
Aug 26th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. #
  2. # wallpaperjp.mobi configuration
  3. #
  4.  
  5. server {
  6. listen 443 ssl;
  7. server_name www.wallpaperjp.mobi;
  8.  
  9. # SSL
  10. ssl_certificate /etc/letsencrypt/live/wallpaperjp.mobi/fullchain.pem;
  11. ssl_certificate_key /etc/letsencrypt/live/wallpaperjp.mobi/privkey.pem;
  12. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  13. ssl_prefer_server_ciphers on;
  14. ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3$
  15.  
  16. rewrite ^(.*) https://wallpaperjp.mobi$1 permanent;
  17. }
  18.  
  19.  
  20. server {
  21. listen 80;
  22. server_name wallpaperjp.mobi www.wallpaperjp.mobi;
  23. rewrite ^(.*) https://wallpaperjp.mobi$1 permanent;
  24.  
  25. location / {
  26. root /home/wallpaperjp.mobi/public_html;
  27. index index.php index.html index.htm;
  28. try_files $uri $uri/ /index.php?q=$uri&$args;
  29. }
  30. error_page 404 /404.html;
  31. location = /404.html {
  32. root /home/wallpaperjp.mobi/public_html;
  33. }
  34.  
  35. error_page 500 502 503 504 /50x.html;
  36. location = /50x.html {
  37. root /home/wallpaperjp.mobi/public_html;
  38. }
  39.  
  40. # pass the PHP scripts to FastCGI server
  41. #
  42. location ~ \.php$ {
  43. root /home/wallpaperjp.mobi/public_html;
  44. fastcgi_pass 127.0.0.1:9000;
  45. fastcgi_index index.php;
  46. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  47. include fastcgi_params;
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement