N
N
navsikayaa2014-09-24 20:39:22
Nginx
navsikayaa, 2014-09-24 20:39:22

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

2 answer(s)
D
Dmitry Yaroshenko, 2014-09-24
@harloprillar

server {
server_name name of site2;
location ~* \.(jpg|jpeg|gif|png|ico|css|bmp|swf|js|html|txt)$ {
root /var/www/html/sitename2/;}
}

S
Sergey, 2014-09-24
@butteff

nginx+apache manual in ubuntu

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question