I have a special path in my site that should read files from another directory in my server.
server {
server_name www.translation1010.com translation1010.com;
root /var/www/translation1010.com/;
error_log /var/www/translation1010.com/_error.log;
index index.php;
#include /etc/nginx/options;
}
i want
translation1010.com/admin/
read from
/var/www/admins.com/panel/
what code should i use in ngnix?
2
Answers
try this
make sure /admin location in front of /
recommended to use alias, it direct pointing to /var/www/admins.com/panel/ instead of /var/www/admins.com/panel/admin