Answer the question
In order to leave comments, you need to log in
Nginx as a front end to apache. How to setup?
Tell me how to properly configure nginx so that it can process static not only from the site root folder (location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt)$ {
root /var/www/html/sitename/;), but also from another, for example /var/www/html/sitename2/?
Answer the question
In order to leave comments, you need to log in
server {
server_name name of site2;
location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt)$ {
root /var/www/html/sitename2/;}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question