changes vhost rules

This commit is contained in:
joglomedia
2019-12-03 21:12:24 +07:00
parent 8c47017afd
commit 9c81451179
8 changed files with 11 additions and 25 deletions

View File

@@ -2,7 +2,6 @@
# Designed to be included in any server {} block.
location / {
#index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
# Uncomment to enable naxsi on this location

View File

@@ -1,4 +1,4 @@
## Default rewrite rules.
## Default site rewrite rules.
# Designed to be included in any server {} block.
location / {

View File

@@ -1,11 +1,9 @@
## Drupal site rules.
## Drupal rewrite rules.
# Designed to be included in any server {} block.
# This order might seem weird - this is attempted to match last if rules below fail.
# http://wiki.nginx.org/HttpCoreModule
location / {
# try_files $uri @rewrite; # For Drupal <= 6
try_files $uri /index.php?$query_string; # For Drupal >= 7
# try_files $uri $uri/ @rewrite; # For Drupal <= 6
try_files $uri $uri/ /index.php?$query_string; # For Drupal >= 7
# Uncomment to enable naxsi on this location
#include /etc/nginx/naxsi.rules

View File

@@ -1,12 +1,9 @@
## Laravel PHP Frameworks rewrite rules.
# Designed to be included in any server {} block.
# This order might seem weird - this is attempted to match last if rules below fail.
# http://wiki.nginx.org/HttpCoreModule
location / {
# try to serve file directly, fallback to index.php
try_files $uri $uri/ /index.php?$query_string;
try_files $uri $uri/ /index.php?$query_string;
# Uncomment to enable naxsi on this location
#include /etc/nginx/naxsi.rules

View File

@@ -1,4 +1,4 @@
## Roundcube webmail site rules.
## Roundcube webmail rewrite rules.
# Designed to be included in any server {} block.
location / {
@@ -16,11 +16,3 @@ location / {
# Shows file listing times as local time.
#autoindex_localtime on;
}
location ~ ^/(README|README.md|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
deny all;
}
location ~ ^/(bin|SQL)/ {
deny all;
}

View File

@@ -1,6 +1,8 @@
## Sendy.co site rules.
## Sendy.co rewrite rules.
# Designed to be included in any server {} block.
add_header X-Robots-Tag "noindex, noarchive";
#try_files $uri $uri/ @rewrite;
#location @rewrite {
@@ -27,5 +29,3 @@ location / {
location ~ ^\/(l|t|w|confirm|(un)?subscribe)\/ {
rewrite ^\/([^/]+)\/(.+)$ "/$1.php?i=$2" last;
}
add_header X-Robots-Tag "noindex, noarchive";

View File

@@ -1,4 +1,4 @@
## WP + BWPS plugin rules.
## WP + BWPS plugin rewrite rules.
# Designed to be included in any server {} block.
# Include Wordpress single-site configuration.

View File

@@ -1,4 +1,4 @@
## WordPress singlesite rules.
## WordPress rewrite rules.
# Designed to be included in any server {} block.
location / {