nginx server to access static files

For example: I visit the following address

http://device.joinstar.cn/publics/world_geo_data.json

1. Configuration files.


2. Resource placement directory


illustrate:

1. When accessing the /publics section , root (directory) goes to the specified  /usr/local/nginx/html/device.joinstar.cn/ ,

Then stipulate that /usr/local/nginx/html/device.joinstar.cn/ and  publics are spliced ​​together.

2. So visit http://device.joinstar.cn/publics/world_geo_data.json where

This section of /publics is like  /usr/local/nginx/html/device.joinstar.cn/publics ,

Remember that he will be spliced ​​together.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325506494&siteId=291194637