Nginx not following symlinks

前端 未结 3 1019
孤街浪徒
孤街浪徒 2020-12-13 17:47

I have installed nginx on Ubuntu 12.04. However, nginx does not seem to follow symlinks. I understand that there is a config change required for this but I am not able to fi

3条回答
  •  青春惊慌失措
    2020-12-13 18:41

    if olibre's answer doesn't help edit the file /etc/nginx/sites-available/default and add this line where you've specified your server root directory.

    autoindex on;
    

    save the file and restart server

    /etc/init.d/nginx restart
    

提交回复
热议问题