NGinx Default public www location?

前端 未结 30 1149
野性不改
野性不改 2020-11-28 17:51

I have worked with Apache before, so I am aware that the default public web root is typically /var/www/.

I recently started working with nginx, but I ca

30条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 18:14

    You can find it in /var/www/ that is default directory for nginx and apache but you can change it. step 1 go to the following folder /etc/nginx/sites-available

    step 2 edit default file in that you can find a server block under that there will be line named as root that is what defines the location.

提交回复
热议问题