Advertisement
oxx93

Untitled

Aug 11th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. include common/upstream;
  2.  
  3. server
  4. {
  5. listen 80;
  6. server_name example.com www.example.com;
  7. return 301 https://$server_name$request_uri;
  8. }
  9.  
  10. server
  11. {
  12. # Порты
  13. listen 80;
  14. listen 443 ssl; #использовать шифрование для этого порта
  15.  
  16. root /var/www;
  17. index index.php index.html index.htm;
  18. server_name example.com www.example.com;
  19. include common/security;
  20. include common/gzip;
  21. include common/locations/*.inc;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement