Reinis Rozitis
January 30, 2020 03:06AM
> I struggled with using the alias directive because I (incorrectly) assumed that it was relative to root since all other parts of my nginx configs are. This is not mentioned in the documentation, it'd be nice to see it there.

Well it's not directly worded but you can (should) see from the example here that it doesn't use the root (even with a notice that you can't use the $document_root variables):

location /i/ {
alias /data/w3/images/;
on request of “/i/top.gif”, the file /data/w3/images/top.gif will be sent.


nginx mailing list
Subject Author Posted

Documentation for alias directive

slowgary January 29, 2020 09:32PM

RE: Documentation for alias directive

Reinis Rozitis January 30, 2020 03:06AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready