Remove rewrite
This commit is contained in:
parent
5657af4ec0
commit
859e8ee73f
|
@ -1,10 +1,8 @@
|
|||
add_header Onion-Location http://xmpp.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
||||
|
||||
root /var/www/conversejs;
|
||||
index index.html index.htm;
|
||||
|
||||
location / {
|
||||
client_max_body_size 100m;
|
||||
proxy_pass https://vern.cc:5281/conversejs/; # The / is important!
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host vern.cc;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
|
|
@ -9,3 +9,6 @@ location / {
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
if ($http_user_agent = "Mozilla/5.0 (compatible; Farside/0.1.0; +https://farside.link)"){
|
||||
return 403;
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@ index index.html;
|
|||
ssi on;
|
||||
|
||||
location / {
|
||||
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
||||
rewrite ^/(.*)/$ /$1 permanent;
|
||||
# rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
||||
# rewrite ^/(.*)/$ /$1 permanent;
|
||||
try_files $uri $uri/index.html $uri.html $uri/ @extensionless-php;
|
||||
|
||||
error_page 403 /errors/403;
|
||||
|
@ -57,8 +57,8 @@ location ~ ^/(~|u/)(?<user>[\w-]+)(?<user_uri>/.*)?$ {
|
|||
index index.html index.php index.cgi index.py index.sh index.pl index.lua;
|
||||
ssi on;
|
||||
|
||||
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
||||
rewrite ^/(.*)/$ /$1 permanent;
|
||||
# rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
||||
# rewrite ^/(.*)/$ /$1 permanent;
|
||||
try_files $user_uri $user_uri/index.html $user_uri.html $user_uri/ @extensionless-php;
|
||||
autoindex on;
|
||||
autoindex_exact_size off;
|
||||
|
|
|
@ -2,26 +2,30 @@ server {
|
|||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
server_name yacy.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion search.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
|
||||
server_name yc.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion yacy.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion search.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
|
||||
|
||||
include common/yacy.conf;
|
||||
include common/yacy-onion.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 11025;
|
||||
listen [::]:11025;
|
||||
listen 11038;
|
||||
listen [::]:11038;
|
||||
|
||||
server_name verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p;
|
||||
server_name vernxiu4oiyb6t2impixu7kqot4irhdr3pzmgszbaxjbpwblapeq.b32.i2p;
|
||||
|
||||
include common/yacy.conf;
|
||||
include common/yacy-i2p.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name yc.vern.cc yacy.vern.cc search.vern.cc;
|
||||
|
||||
include snippets/lets-encrypt.conf;
|
||||
include snippets/headers.conf;
|
||||
server_name yacy.vern.cc search.vern.cc;
|
||||
|
||||
include common/yacy.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8090/;
|
||||
|
@ -34,5 +38,5 @@ server {
|
|||
listen 80;
|
||||
listen [::]:80;
|
||||
return 301 https://$host$request_uri;
|
||||
server_name yacy.vern.cc search.vern.cc;
|
||||
server_name yc.vern.cc yacy.vern.cc search.vern.cc;
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/etc/nginx/sites-available/yacy.conf
|
|
@ -26,8 +26,8 @@ autoindex on;
|
|||
autoindex_exact_size off;
|
||||
|
||||
location / {
|
||||
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
||||
rewrite ^/(.*)/$ /$1 permanent;
|
||||
# rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
||||
# rewrite ^/(.*)/$ /$1 permanent;
|
||||
try_files $uri $uri/index.html $uri.html $uri/ @extensionless-php;
|
||||
autoindex on ;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue