Here is this sample config:
server {
server_name ~^(?.+)\.example\.com$;
root /www/$subdomain.example.com;
.....
Then just create needful folders in /www/.
References:
http://stackoverflow.com/questions/9233368/nginx-server-configuration-subdomain-to-folder
Немає коментарів:
Дописати коментар