Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #user 'medini' virtual host 'medini-original.com' configuration file
- server {
- server_name medini-original.com www.medini-original.com;
- charset UTF-8;
- disable_symlinks if_not_owner from=$root_path;
- index index.html index.php;
- root $root_path;
- set $root_path /var/www/medini/data/www/medini-original.com;
- access_log off ;
- error_log /dev/null crit;
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- }
- location @fallback {
- access_log off ;
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@medini-original.com";
- fastcgi_pass unix:/var/www/php-fpm/medini.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- try_files $uri =404;
- include fastcgi_params;
- }
- listen 138.201.136.206:80;
- }
- server {
- server_name medini-original.com www.medini-original.com;
- charset UTF-8;
- disable_symlinks if_not_owner from=$root_path;
- index index.html index.php;
- root $root_path;
- set $root_path /var/www/medini/data/www/medini-original.com;
- access_log off ;
- error_log /dev/null crit;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-includes/*.conf;
- if ($request_uri ~* "^(.*/)index\.(php|html)$") {
- return 301 $1;
- }
- if ($request_uri ~* "\/\/") {
- rewrite ^/(.*) $scheme://$host/$1 permanent;
- }
- if ($request_filename !~* .(txt|gif|html|jpe?g|png|json|ico|js|css|flv|swf|pdf|xml|html|php|otf|woff|ttf|woff2|htm)$ ) {
- rewrite (^[^?]+[^/?])([^/]*)$ $1/$2 permanent;
- }
- location / {
- try_files $uri $uri/ /index.php?$args;
- if ($http_host ~* "^www.medini-original\.com$")
- { rewrite ^(.*)$ http://medini-original.com$1 redirect; }
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @php;
- }
- }
- location @fallback {
- access_log off ;
- }
- location @php {
- fastcgi_index index.php;
- fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f webmaster@medini-original.com";
- fastcgi_pass unix:/var/www/php-fpm/medini.sock;
- fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
- try_files $uri =404;
- include fastcgi_params;
- }
- listen 138.201.136.206:443;
- ssl on;
- ssl_certificate "/var/www/httpd-cert/medini/medini-original.com_le1.crtca";
- ssl_certificate_key "/var/www/httpd-cert/medini/medini-original.com_le1.key";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement