mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-11 23:48:19 +00:00
changes vhost rules
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
## Default rewrite rules.
|
||||
## Default site rewrite rules.
|
||||
# Designed to be included in any server {} block.
|
||||
|
||||
location / {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
## WordPress singlesite rules.
|
||||
## WordPress rewrite rules.
|
||||
# Designed to be included in any server {} block.
|
||||
|
||||
location / {
|
||||
|
||||
Reference in New Issue
Block a user