Isn't $document_root equal to $root? Anyway, any idea how to solve it?by donkeyy - How to...
Hello, I would like to implement conditional root directory in nginx. If one directory exists, nginx will use it as root dir, otherwise, different dir will be used. Here is my solution so far: server { listen 80; server_name *.dev; root /var/www/$host/public; location / { index index.html index.htm index.php; try_files $uriby donkeyy - How to...