Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen 443 ssl;
  4. server_name abc.com alias abc.com;
  5. ssl_certificate D:cert1_abc.com_bundle.crt;
  6. ssl_certificate_key D:certabc.com.key;
  7. ssl_session_timeout 5m;
  8. ssl_protocols SSLv2 SSLv3 TLSv1;
  9. ssl_ciphers HIGH:!aNULL:!MD5;
  10. ssl_prefer_server_ciphers on;
  11. if ($scheme = http) && if ($http_user_agent !~* iPhone|iPad) {
  12. return 301 https://$host$request_uri;
  13. }
  14. location / {
  15. root D:/www;
  16. index index.html index.htm default.html default.htm index.php;
  17. include D:/www/up-*.conf;
  18. }
  19.  
  20. if ($scheme = http && $http_user_agent !~* iPhone|iPad)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement