Advertisement
NFL

Untitled

NFL
Nov 1st, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. #user 'medini' virtual host 'medini-original.com' configuration file
  2. server {
  3. server_name medini-original.com www.medini-original.com;
  4. rewrite ^(.*) https://$host$1 permanent;
  5. listen 138.201.136.206:80;
  6. }
  7. server {
  8. server_name medini-original.com www.medini-original.com;
  9. charset UTF-8;
  10. disable_symlinks if_not_owner from=$root_path;
  11. index index.html index.php;
  12. root $root_path;
  13. set $root_path /var/www/medini/data/www/medini-original.com;
  14. access_log off ;
  15. error_log /dev/null crit;
  16. include /etc/nginx/vhosts-includes/*.conf;
  17. include /etc/nginx/vhosts-includes/*.conf;
  18. if ($request_uri ~* "^(.*/)index\.(php|html)$") {
  19. return 301 $1;
  20. }
  21.  
  22.  
  23.  
  24. if ($request_uri ~* "\/\/") {
  25. rewrite ^/(.*) $scheme://$host/$1 permanent;
  26. }
  27.  
  28. if ($request_filename !~* .(txt|gif|html|jpe?g|png|json|ico|js|css|flv|swf|pdf|xml|html|php|otf|woff|ttf|woff2|htm)$ ) {
  29. rewrite (^[^?]+[^/?])([^/]*)$ $1/$2 permanent;
  30. }
  31. location / {
  32. try_files $uri $uri/ /index.php?$args;
  33. if ($http_host ~* "^www.medini-original\.com$")
  34. { rewrite ^(.*)$ http://medini-original.com$1 redirect; }
  35. location ~ [^/]\.ph(p\d*|tml)$ {
  36. try_files /does_not_exists @php;
  37. }
  38. }
  39. location @fallback {
  40. access_log off ;
  41. }
  42. location @php {
  43. fastcgi_index index.php;
  44. fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@medini-original.com";
  45. fastcgi_pass unix:/var/www/php-fpm/medini.sock;
  46. fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
  47. try_files $uri =404;
  48. include fastcgi_params;
  49. }
  50. listen 138.201.136.206:443;
  51. ssl on;
  52. ssl_certificate "/var/www/httpd-cert/medini/medini-original.com_le1.crtca";
  53. ssl_certificate_key "/var/www/httpd-cert/medini/medini-original.com_le1.key";
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement