i have multible Domains on my awstats Server. Now i want to protect the URL for other customers.
The real url = host/awstasts.pl?config=DOMAIN
どうすればそれらを保護できますか? 私は特別なヘッダー/構成セットを試していましたが、これは顧客が他のドメインを推測できるという私の問題を解決しません.
私はそのようなことを試みます。
location /DOMAIN {
set config-domain DOMAIN;
add_header config_domain DOMAIN;
return 301 host/awstats.pl?config=DOMAIN;
}
location /awstats.pl {
if ($http_CONFIG-domain != "") { return 403; }
if ($confi-domain != "") { return 403; }
fastcgi stuff
BASIC認証はおそらく解決策ですが、ドメインごとに必要です
誰かが私を助けることができますか?
//debian 10 nginx/1.14.2 を secure_link なしで編集