2017-09-09 51 views

回答

1

您是否嘗試從您的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)), 
] 
+0

IP位址是的,我們試過,但由於某種原因 – user8585282

+0

@ user8585282究竟什麼是你想要做的一切打破? – Moritz

+0

我的道歉,重新審視這個上面的作品完全是我想要的。 – user8585282

0

您可以阻止/允許Nginx的

location /admin/ { 
    allow XXX.XX.XX.XX; ## Your specific IP 
    deny all; 
} 
相關問題