Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Inactive Publication Date: 2018-04-24
ZTE CORP
View PDF7 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention is an Nginx-based static file access method and device, which is used to solve the problem in the prior art that data leakage is easily caused if the access address is not encrypted during network access

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Static file access method and device based on Nginx
  • Static file access method and device based on Nginx
  • Static file access method and device based on Nginx

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a static file access method and device based on Nginx. The method comprises the following steps executed at an application server side: receiving a page access request sent bya client; determining a page corresponding to a page access request, wherein the page contains the original URL; and returning the page to a client after performing the encryption processing in the original URL included in the page. The method comprises the following steps executed at a Nginx server side: receiving the encrypted URL sent by the client; and decrypting the encrypted URL to acquire the original URL; acquiring a static file corresponding to the original URL, and sending the data in the static file to the client. The application server provided by the invention encrypts the staticfile in a saving path in the Nginx server, and sends the URL in a ciphertext way to the client, thereby enabling the client to access the static file in the Nginx server according to the URL in the ciphertext way, and then the problem of data leakage caused by intercepting the URL is avoided, and the security of the Nginx server is improved.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to an Nginx-based static file access method and device. Background technique [0002] The rapid development of the Internet has brought convenience to life, but it has also exposed many problems, among which security incidents such as information leakage and data loss are common. Establishing sound security protection and doing a good job of basic vulnerability protection have become urgent problems in the Internet field. [0003] At present, most Internet platforms or applications have established a good security awareness for sensitive information such as user names and passwords, and adopt encryption technology in the process of transmitting sensitive information to prevent malicious theft by hackers. However, in the prior art, data that does not involve sensitive information is transmitted in plain text, for example: when accessing JS (JavaScript) files, JPG (Joint Photogr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L63/0428H04L63/10H04L63/1441H04L67/02
Inventor 胡飞飞卫伟张家明
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products