@
thought #user nobody;
#worker_processes 1;
events {
worker_connections 10240;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 60;
client_max_body_size 2m;
server_names_hash_bucket_size 128;
gzip on;
gzip_comp_level 9;
gzip_types text/plain text/css application/javascript;
proxy_cache_path /etc/nginx/tmp levels=1:2 keys_zone=content:128m inactive=1d max_size=30g;
server {
listen 80;
return 403;
}
server {
listen 80;
server_name acgn.ren;
return 301 http://www.acgn.ren$request_uri;
}
server {
listen 80;
server_name www.acgn.ren;
location / {
proxy_cache content;
proxy_cache_valid 200 302 1h;
proxy_cache_valid 404 1m;
proxy_cache_key $host$uri$is_args$args;
proxy_cookie_domain
google.com.hk acgn.ren;
proxy_pass
https://www.google.com.hk;
proxy_redirect
https://www.google.com.hk/ /;
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language "zh-CN";
proxy_set_header Cookie $http_cookie;
proxy_set_header Host "
www.google.com.hk";
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
sub_filter
www.google.com.hk www.acgn.ren;
sub_filter
www.google.com www.acgn.ren;
sub_filter
www.gstatic.com www.acgn.ren/gstatic;
sub_filter
ssl.gstatic.com www.acgn.ren/gstatic;
sub_filter
id.google.com.hk www.acgn.ren/id;
sub_filter_once off;
}
location /id/ {
proxy_cache content;
proxy_cache_valid 200 302 1h;
proxy_cache_valid 404 1m;
proxy_cache_key $host$uri$is_args$args;
proxy_pass
https://id.google.com.hk;
proxy_redirect
https://id.google.com.hk/ /;
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language "zh-CN";
proxy_set_header Cookie $http_cookie;
proxy_set_header Host "
id.google.com.hk";
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
sub_filter
www.google.com.hk www.acgn.ren;
sub_filter
www.google.com www.acgn.ren;
sub_filter_once off;
}
location /gstatic/ {
proxy_cache content;
proxy_cache_valid 200 302 1h;
proxy_cache_valid 404 1m;
proxy_cache_key $host$uri$is_args$args;
proxy_pass
https://www.gstatic.com;
proxy_redirect
https://www.gstatic.com/ /;
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language "zh-CN";
proxy_set_header Cookie $http_cookie;
proxy_set_header Host "
www.gstatic.com";
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
sub_filter
www.google.com.hk www.acgn.ren;
sub_filter
www.google.com www.acgn.ren;
sub_filter_once off;
}
}
server {
listen 80;
server_name w.acgn.ren;
location / {
proxy_cache content;
proxy_cache_valid 200 302 1h;
proxy_cache_valid 404 1m;
proxy_cache_key $host$uri$is_args$args;
proxy_cookie_domain
wikipedia.org acgn.ren;
proxy_pass
https://zh.wikipedia.org;
proxy_redirect
https://zh.wikipedia.org/ /;
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language "zh-CN";
proxy_set_header Cookie $http_cookie;
proxy_set_header Host "
zh.wikipedia.org";
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
sub_filter
zh.wikipedia.org w.acgn.ren;
sub_filter
zh.m.wikipedia.org w.acgn.ren/m;
sub_filter_once off;
}
location /m/ {
proxy_cache content;
proxy_cache_valid 200 302 1h;
proxy_cache_valid 404 1m;
proxy_cache_key $host$uri$is_args$args;
proxy_cookie_domain
wikipedia.org acgn.ren;
proxy_pass
https://zh.m.wikipedia.org;
proxy_redirect
https://zh.m.wikipedia.org/ /;
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language "zh-CN";
proxy_set_header Cookie $http_cookie;
proxy_set_header Host "
zh.m.wikipedia.org";
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
sub_filter
zh.wikipedia.org w.acgn.ren;
sub_filter
zh.m.wikipedia.org w.acgn.ren/m;
sub_filter_once off;
}
}
server {
listen 80;
server_name loli.wiki www.loli.wiki;
return 301
https://www.loliwiki.org$request_uri;
}
server {
listen 80;
server_name
acgvideo.cn;
return 301
http://www.acgvideo.cn$request_uri;
}
server {
listen 80;
server_name
www.acgvideo.cn;
return 301
http://www.sora.top$request_uri;
}
server {
listen 80;
server_name
acgvideo.me;
return 301
http://www.acgvideo.me$request_uri;
}
server {
listen 80;
server_name
www.acgvideo.me;
return 301
http://www.sora.top$request_uri;
}
server {
listen 80;
server_name
hardware.name www.hardware.name;
return 301
http://www.hardwareunion.com$request_uri;
}
server {
listen 80;
server_name
oreimo.cn oreimo.tech www.oreimo.cn www.oreimo.tech;
return 301
http://www.oreimo.cc$request_uri;
}
server {
listen 80;
server_name osu.pink;
return 301
http://www.osupink.org$request_uri;
#return 301 http://www.osu.pink$request_uri;
}
server {
listen 80;
server_name www.osu.pink;
return 301
http://www.osupink.org$request_uri;
#index index.php index.htm index.html;
#root /var/www/html/osu;
#location ~ .*\.(php|php5)?$ {
#fastcgi_pass unix:/var/run/phpfpm.sock;
#fastcgi_index index.php;
#include fastcgi.conf;
#}
}
server {
listen 80;
server_name ~^(.+).new.osu.pink$;
return 301 https://$
1.new.osupink.me;
}
server {
listen 80;
server_name ~^(.+).osu.pink$;
return 301 http://$
1.osupink.me;
}
server {
listen 80;
server_name
kaba.cx kaba.lol
xiankaba.cx xiankaba.com.cn xiankaba.net www.kaba.cx www.kaba.lol
www.xiankaba.cx www.xiankaba.com.cn www.xiankaba.net;
return 301
http://www.kaba.tech$request_uri;
}
server {
listen 80;
server_name
kaba.tech;
return 301
http://www.kaba.tech$request_uri;
}
server {
listen 80;
server_name
www.kaba.tech;
index index.htm index.html;
root /var/www/html/kaba;
}
server {
listen 80;
server_name
acgn.xyz;
return 301
http://www.acgn.xyz$request_uri;
}
server {
listen 80;
server_name
www.acgn.xyz;
index index.htm index.html;
root /var/www/html/acgn;
}
server {
listen 80;
server_name asd.front.dog;
#location / {
#return 301 https://asd.front.dog;
#}
#location /ncr {
#return 301 http://asd.front.dog/ncr/;
#}
#location /ncr/ {
index index.htm index.html;
root /var/www/html/front;
#}
}
#server {
#listen 443 ssl;
#server_name asd.front.dog;
#index index.htm index.html;
#root /var/www/html/front;
#
#ssl_prefer_server_ciphers on;
#ssl_session_cache shared:SSL:10m;
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
#ssl_ciphers EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
#ssl_certificate /etc/nginx/2.crt;
#ssl_certificate_key /etc/nginx/2.key;
#
#location /ncr/ {
#return 404;
#}
#}
}