0
是否有可能完全禁用生產中的w admin管理員的網址登錄。因爲我想在Bastian盒子中設置一個複製的環境,所以我只允許我的IP地址進行更改時你可以禁用w admin管理員網址嗎?
是否有可能完全禁用生產中的w admin管理員的網址登錄。因爲我想在Bastian盒子中設置一個複製的環境,所以我只允許我的IP地址進行更改時你可以禁用w admin管理員網址嗎?
您是否嘗試從您的url配置中刪除admin url?
# urls.py
urlpatterns = [
# uncomment the following line
# url(r'^admin/', include(wagtailadmin_urls)),
url(r'^documents/', include(wagtaildocs_urls)),
# For anything not caught by a more specific rule above, hand over to
# Wagtail's page serving mechanism. This should be the last pattern in
# the list:
url(r'', include(wagtail_urls)),
# Alternatively, if you want Wagtail pages to be served from a subpath
# of your site, rather than the site root:
# url(r'^pages/', include(wagtail_urls)),
]
您可以阻止/允許Nginx的
location /admin/ {
allow XXX.XX.XX.XX; ## Your specific IP
deny all;
}
IP位址是的,我們試過,但由於某種原因 – user8585282
@ user8585282究竟什麼是你想要做的一切打破? – Moritz
我的道歉,重新審視這個上面的作品完全是我想要的。 – user8585282