Answer the question
In order to leave comments, you need to log in
How to configure nginx config so that there is one admin panel for all sites?
Hello! I have a number of typical sites, more than 100, and they all have an identical control panel. Is it possible in nginx at the config level to load the contents of another folder when accessing the domain? I have such a default config for all domains: pastebin.com/R64WJKdb
I was sure that by adding the directive
location ~* ^/admin/ {
root /var/www/url_admin.ru
}
Answer the question
In order to leave comments, you need to log in
Do you take into account that when
location ~* ^/admin/ {
root /var/www/url_admin.ru;
}
/var/www/url_admin.ru/admin/
? Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question