mirror of
https://github.com/lijiejie/eyes.sh.git
synced 2026-09-22 01:30:43 +08:00
解决了子域名无法访问和会访问到管理后台的问题
This commit is contained in:
+2
-5
@@ -1,15 +1,12 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost $ADMIN_DOMAIN;
|
||||
server_name localhost $ADMIN_DOMAIN *.$DNS_DOMAIN;
|
||||
uwsgi_pass_request_headers on;
|
||||
|
||||
if ($request_uri ~* "^/$") {
|
||||
return 302 $scheme://$http_host/login;
|
||||
}
|
||||
|
||||
location = /favicon.ico {
|
||||
access_log off; log_not_found off;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
alias /dnslog/static/;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user