Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the commonly used data published by nginx?

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "what is the commonly used data published by nginx". In the daily operation, I believe that many people have doubts about what is the commonly used data published by nginx. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts of "what is the commonly used data published by nginx?" Next, please follow the editor to study!

Nginx is a lightweight Web server / reverse proxy server and email (IMAP/POP3) proxy server, and is distributed under a BSD-like protocol. It is characterized by stability, less memory and strong concurrency. -- from encyclopedia

In GIS development, to publish some commonly used pictures, model files and other data for use on the network, usually in skyline, with sfs or sgs, publish these data on IIS, other java development, publish data on tomcat, Cesium data release, there are more types, such as image slices, terrain slices, 3dtile data, all need to publish, the above data types Pictures, file data or json data can all be published under the protocol of http.

The volume of nginx itself is also very small, the size of the downloaded installation package is about 1.4m, and decompression can be used, specific use steps can be searched online.

The following is an example of some data used in gis to briefly list how to publish it.

The configuration of nginx is in text form. In the directory of nginx, there is a directory of conf, which contains the configuration file of nginx.

In nginx.conf, add the configuration, publish the directory where the files are located in the system, and add the release of a virtual directory. Datapath is the virtual path name in the http url accessed by nginx, and root is the directory of files in the system.

Location / datapath {

Root E:/data

Autoindex on

Autoindex_exact_size off

}

For data publishing similar to Cesium, cross-domain issues also need to be considered, so cross-domain settings need to be added to the configuration of nginx, and cross-domain setting response headers need to be added at the top to ensure that all publications in nginx can cross-domain.

Some uncommonly used file types, but also set mimetype, such as cesium .b3 dm,.gltf, .configuration, etc., this configuration in the mime.types file, open to see the existing configuration, add according to the format can be added.

For example

Application/octet-stream b3dm

Application/octet-stream gltf

Application/octet-stream glb

Application/octet-stream terrain

After the release is completed, the data can be accessed according to ip and port, and the access speed is quite good.

At this point, the study on "what is the commonly used data published by nginx" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report