Static file access method and device based on Nginx
A technology of static files and access methods, applied in the Internet field, can solve problems such as data leakage, and achieve the effect of improving security and avoiding data leakage
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] This embodiment provides an Nginx-based static file access method executed on the application server side. In this embodiment, the application server is used to provide application or platform services, and the application server pre-stores static files to be stored in the Nginx server.
[0029] figure 1 It is a flow chart of the Nginx-based static file access method according to the first embodiment of the present invention.
[0030] Step S110, receiving a page access request sent by the client.
[0031] In this embodiment, the page access request is used to request access to the content of the page.
[0032] The client is pre-installed in the terminal. A client is, for example, a browser. Terminals are, for example, smartphones, tablet computers, desktop computers, and the like.
[0033] Step S120, determine the page corresponding to the page access request; wherein, the page contains the original URL, and the static file corresponding to the original URL is stor...
Embodiment 2
[0045] The present embodiment provides a kind of static file access method based on Nginx that Nginx server carries out, as figure 2 It is a flow chart of the method for accessing static files based on Nginx according to the second embodiment of the present invention.
[0046] Step S210, receiving the encrypted URL sent by the client.
[0047] The encrypted URL is obtained after the application server encrypts the original URL.
[0048] The original URL refers to the URL contained in the page corresponding to the page access request.
[0049] Specifically, after receiving the page returned by the application server, the client loads the page so as to display the page to the user. The user can click a link in the page to trigger the sending of the URL to obtain the static URL corresponding to the link from the Nginx server. The file, that is, the static file corresponding to the URL, since the application server encrypts the original URL, the URL sent by the client is the or...
Embodiment 3
[0060] This embodiment provides a more specific method for accessing static files based on Nginx. image 3 It is a flow chart of the method for accessing static files based on Nginx according to the third embodiment of the present invention. Figure 4 is a schematic diagram of an Nginx-based static file access method according to the third embodiment of the present invention.
[0061] In step S310, the application server configures the static file and stores the static file in the Nginx server, and the Nginx server returns the original URL corresponding to the static file to the application server.
[0062] Step S320, the client sends a page access request to the application server to request access to the content of the page.
[0063] The application server can obtain the page corresponding to the page access request by performing domain name resolution on the page access request, for example: Youku homepage, Sohu homepage, and Sina homepage. The page includes URLs correspo...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com