Tutorial - Mp3juices How To Set Up Nginx Server Blocks (Virtual Hosts) on Debian | Vevioz Developers

Tutorial Mp3juices How To Set Up Nginx Server Blocks (Virtual Hosts) on Debian

DevOps

Linux Systems Engineer
Joined
Oct 18, 2019
Messages
211
Reaction score
20
Points
18
Location
Novosibirsk, Russia
Website
addons.vevioz.com
Offline
Installed
Code:
 error_page 404 /404.php;
location / {
 
  rewrite ^/([^\.]+)$ /$1.php last;

}
location ~ ^(.+)/$ {
      return 301 $scheme://$host$1;
    }

Dev
Code:
location ~ (.*)/$ {
  if ($query_string) {
    return 301 $scheme://$host$1?$query_string;
  }
  return 301 $scheme://$host$1;
}
 
Top Bottom