A
A
Arsen Abakarov2016-08-21 11:37:39
Nginx
Arsen Abakarov, 2016-08-21 11:37:39

Transferring the admin panel to another domain?

All hello.
I have an online store in development, I did it on nginx + uwsgi + django, almost everything is ready, the admin panel is ready, I did a lot on ajax, the admin panel is available at "http://<url store>/admin/"
I stuck authentication, now the problem with cookies, they are common for the entire domain
. How can I transfer the admin panel to another domain more painlessly in order to change the urls in the js code as little as possible? Is there a way to configure nginx?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arsen Abakarov, 2016-09-07
@ArsenAbakarov

I didn’t do perversions, I destroyed them with AAA mechanisms

D
Dimonchik, 2016-08-21
@dimonchik2013

well, the easiest way in Django is to change /admin/ to /hren-vy-adminku-naidete/ in urls.py,
but if you want perversions, raise the second domain, map the same uwsgi/django there, use nginx to set the answer 400, 500 by root, or whatever you want

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question