Как-то так, наверное: server_name ~^((.)(.).+)\.static\.site\.com$; root /var/www/sites/$2/$3/$1/files/;by yz - Russian Forum
I've got several virtual hosts ("server {...}") with the same regexp in `location' directive, but different actions for. E.g.: server { server_name first_name.com ... location ~* ^.+\.(zip|tar|gz|bz2)$ { root /var/www/first_name.com/archives/ } ... } server { server_name seby yz - How to...
![]() |
![]() |
![]() |
![]() |
|