开发者

How to create a second webroot folder for a second-level domain in Nginx

开发者 https://www.devze.com 2023-03-27 17:47 出处:网络
Is there any way to create a second webroot in nginx? I\'ve got over 60 GB of pictures. I think store them in another folder and use a 开发者_开发知识库2nd-level domain like pic.domain.comwill make ma

Is there any way to create a second webroot in nginx?

I've got over 60 GB of pictures. I think store them in another folder and use a 开发者_开发知识库2nd-level domain like pic.domain.com will make managing them more convenient.

By the way, my sites is running on a windows server.

Thanks!


Just use a separate

server {
  server_name sub.domain.com;
  root /your/image/root;
  # other options
}
0

精彩评论

暂无评论...
验证码 换一张
取 消