CN109495553A - A kind of webpage display control method, system and Reverse Proxy - Google Patents

A kind of webpage display control method, system and Reverse Proxy Download PDF

Info

Publication number
CN109495553A
CN109495553A CN201811288783.2A CN201811288783A CN109495553A CN 109495553 A CN109495553 A CN 109495553A CN 201811288783 A CN201811288783 A CN 201811288783A CN 109495553 A CN109495553 A CN 109495553A
Authority
CN
China
Prior art keywords
web
server
static
sent
user terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811288783.2A
Other languages
Chinese (zh)
Other versions
CN109495553B (en
Inventor
叶亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811288783.2A priority Critical patent/CN109495553B/en
Publication of CN109495553A publication Critical patent/CN109495553A/en
Application granted granted Critical
Publication of CN109495553B publication Critical patent/CN109495553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application provides a kind of webpage display control method, system and Reverse Proxy, it is related to Internet technical field, this method comprises: receiving the web-page requests that user terminal is sent to Reverse Proxy, and web-page requests are sent to and directly go out server.When receiving the straight error information of server feedback out, web-page requests are sent to static server, then by the static Web page data forwarding of static server transmission to user terminal, so that user terminal obtains web content data from content data base, and webpage is generated according to web content data and static Web page data and is shown.Received error information is directly fed back into user terminal compared to reverse proxy service, it is shown for the wrong page in user terminal, web-page requests are sent to static server by Reverse Proxy, user terminal can be made to show the webpage of request when web-page requests increase, to promote user experience.

Description

A kind of webpage display control method, system and Reverse Proxy
Technical field
The present embodiments relate to Internet technical field more particularly to a kind of webpage display control methods, system and anti- To proxy server.
Background technique
The webpage that usual user sees on a web browser is interacted by browser and Web server. In order to improve the speed that user accesses webpage, some webpages are using directly server provides web data out.User inputs network address and mentions After friendship, straight server out goes on data server to obtain the data that user needs, and the data that then will acquire are write on webpage, User can quickly see webpage in this way, however, the user of requested webpage increases sharply, straight to go out to take when the activity such as occurring promoting Business device can not handle all web-page requests in time, the page that reports an error be returned to browser end, to bring bad experience to user.
Summary of the invention
Due in the prior art, when the web-page requests of surge can not be handled by directly going out server, directly being returned to browser end The problem of report an error the page, brings bad experience to user, the embodiment of the present application provide a kind of webpage display control method, are System and Reverse Proxy.
On the one hand, the embodiment of the present application provides a kind of webpage display control method, comprising:
The web-page requests that user terminal is sent are received, and the web-page requests are sent to and directly go out server;
When receiving the straight error information of server feedback out, the web-page requests are sent to static server;
The static Web page data forwarding that the static server is sent is to the user terminal, so that the user terminal Web content data is obtained from content data base, and net is generated according to the web content data and the static Web page data Page is simultaneously shown.
Since the network request of user terminal can not be handled in straight server out, the letter that reports an error is sent to Reverse Proxy When breath, Reverse Proxy is not that received error information is directly fed back to user terminal, shows mistake in user terminal The page, but web-page requests are sent to static server, the static Web page data forwarding for then sending static server is extremely User terminal so that user terminal obtains web content data from content data base, then in conjunction with web content data and Static Web page data generate webpage and show, therefore when web-page requests increase, user terminal can still show the webpage of request, from And promote user experience.
On the other hand, the embodiment of the present application provides a kind of webpage display control method, comprising:
Reverse Proxy receives the web-page requests that user terminal is sent, and the web-page requests are sent to straight clothes out Business device;
It is described directly to go out server when handle the web-page requests, the letter that reports an error of Xiang Suoshu Reverse Proxy feedback Breath;
When the Reverse Proxy receives the straight error information of server feedback out, by the web-page requests It is sent to static server;
The corresponding static Web page data of the web-page requests are sent to Reverse Proxy by the static server;
The static Web page data forwarding that the Reverse Proxy sends the static server is whole to the user End, so that the user terminal obtains web content data from content data base, and according to the web content data and institute Static Web page data are stated to generate webpage and show.
On the other hand, the embodiment of the present application provides a kind of Reverse Proxy, comprising:
Receiving module is sent to straight clothes out for receiving the web-page requests of user terminal transmission, and by the web-page requests Business device;
Distribution module sends the web-page requests when for receiving the straight error information of server feedback out To static server;
Sending module, static Web page data forwarding for sending the static server to the user terminal, with The user terminal is set to obtain web content data from content data base, and according to the web content data and the static state Web data generates webpage and shows.
On the other hand, the embodiment of the present application provides a kind of web displaying control system, comprising:
Reverse Proxy directly goes out server and static server;
The Reverse Proxy for receiving the web-page requests of user terminal transmission, and the web-page requests is sent out It send to straight server out;
It is described directly to go out server, for when that can not handle the web-page requests, Xiang Suoshu Reverse Proxy to be fed back Error information;
The Reverse Proxy will be described when being also used to receive the straight error information of server feedback out Web-page requests are sent to static server;
The static server, for the corresponding static Web page data of the web-page requests to be sent to reverse proxy service Device;
The Reverse Proxy, the static Web page data forwarding for being also used to send the static server is to described User terminal, so that the user terminal obtains web content data from content data base, and according to the web page contents number It webpage and is shown according to being generated with the static Web page data.
Another aspect, the embodiment of the present application provide a kind of web displaying control equipment, including at least one processor, with And at least one processor, wherein the memory is stored with computer program, when described program is executed by the processor When, so that the step of processor executes above-mentioned webpage display control method.
In another aspect, the embodiment of the present application provides a kind of computer-readable medium, being stored with can be by web displaying control The computer program that control equipment executes, when described program is run in web displaying control equipment, so that the web displaying Control the step of equipment executes above-mentioned webpage display control method.
In the embodiment of the present application, due to going out to take using straight when the network request of user terminal can be handled by directly going out server Business device handles network request, to improve the speed that user accesses webpage.User terminal can not be handled directly going out server Network request, when sending error information to Reverse Proxy, web-page requests are sent to static clothes by Reverse Proxy Business device, is handled web-page requests by static server, rather than received error information is directly fed back to user terminal, The wrong page is shown in user terminal, so that user terminal can still show the webpage of request when web-page requests increase, thus Promote user experience.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is the application scenario diagram that the embodiment of the present application is applicable in;
Fig. 2 is a kind of display interface figure of browser provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of webpage display control method provided by the embodiments of the present application;
Fig. 4 is a kind of surface chart for showing error code provided by the embodiments of the present application;
Fig. 5 is a kind of flow diagram of the method for converting web page request provided by the embodiments of the present application;
Fig. 6 is a kind of flow diagram of webpage display control method provided by the embodiments of the present application;
Fig. 7 is a kind of flow diagram of webpage display control method provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of Reverse Proxy provided by the embodiments of the present application;
Fig. 9 is a kind of structural schematic diagram of web displaying control system provided by the embodiments of the present application;
Figure 10 is the structural schematic diagram that a kind of web displaying provided by the embodiments of the present application controls equipment.
Specific embodiment
In order to which the purpose of the present invention, technical solution and beneficial effect is more clearly understood, below in conjunction with attached drawing and implementation Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used to explain this hair It is bright, it is not intended to limit the present invention.
In order to facilitate understanding, noun involved in the embodiment of the present invention is explained below.
Webpage: it is a text-only file comprising html tag, there is many contents, including text, picture, video above Deng, put on the internet, for other people access.
Static Web page: being a kind of common webpage, the content to be shown all is finished writing on webpage in advance on webpage, the page Content and display effect will not change substantially.
Dynamic web page: being a kind of special webpage, and there are some scripts in webpage, when user opens the page, browsing Requested database is removed by script in device end, and obtaining needs content-data to be shown, and these data are shown on the page.Dynamically The content that the page is shown is can to change with the result of time, environment or database manipulation.
Directly go out server: when user opens the page, straight server out first goes to obtain the content-data shown, then will Displays content data and static data are back to browser end together, therefore browser end does not need to remove server again by script Request displays content data.
Reverse proxy: proxy server receives the connection request on network, then forwards a request on internal network Server, and the result obtained from server is returned to the client that connection is requested on network.
Nginx: the Web server/Reverse Proxy and email proxy server of a lightweight, feature It is to occupy that memory is few, and concurrent capability is strong.
During concrete practice, it was found by the inventors of the present invention that when the user terminal for sending web-page requests increases, than If number of site releases advertising campaign, directly goes out server and tend not in time handle all web-page requests, for not having Have the web-page requests of processing, the wrong page will be returned to browser end, prevent user in peak period from normally accessing webpage, from And bad experience is brought to user.
It is slightly arrived in this regard, present inventor examines, the webpage that user terminal is sent is received using Reverse Proxy and is asked It asks, and web-page requests is sent to and directly go out server.When Reverse Proxy receives the letter that reports an error of straight server feedback out When breath, illustrate that web-page requests can not be handled by directly going out server, web-page requests are forwarded to static state by Reverse Proxy Server.Static Web page data are pre-saved in static server, the content of static Web page data is fixed, and does not have change substantially Change.After static server receives web-page requests, static Web page data are directly returned.Reverse Proxy is by static network number of pages According to being sent to the user terminal.After user terminal receives static Web page data, web content data is obtained from content data base, And webpage is generated according to web content data and static Web page data and is shown.Since user's end can not be handled in straight server out The network request at end, when sending error information to Reverse Proxy, Reverse Proxy is not by the received letter that reports an error Breath directly feeds back to user terminal, shows the wrong page in user terminal, but web-page requests are sent to static server, so The static Web page data forwarding that static server is sent afterwards is to user terminal, so that user terminal is obtained from content data base Web content data generates webpage then in conjunction with web content data and static Web page data and shows, therefore in web-page requests When increasing, user terminal can still show the webpage of request, to promote user experience.
Webpage display control method in the embodiment of the present application is suitable for the display of dynamic web page, is applied particularly to such as Fig. 1 Shown in application scenarios, in the application scenarios include user terminal 101, Reverse Proxy 102, directly go out server 103 And static server 104.
User terminal 101 is the electronic equipment for having network communications capability, which can be smart phone, plate Computer or portable personal computer etc..The application programs such as browser are installed on user terminal 101.User terminal 101 is logical Wireless network is crossed to connect with Reverse Proxy 102.Reverse Proxy 102 is respectively at directly going out server 103 and quiet State server 104 connects.It is straight go out server 103 can be a server or several servers compositions server cluster or Cloud computing center.
User clicks browser icon in user terminal 101, specific as shown in Figure 2 into browser interface.Then it uses It is submitted after inputting the content for thinking access in browser interface at family.User terminal 101 sends web-page requests to reverse proxy service Device 102, web-page requests are sent to by Reverse Proxy 102 directly goes out server 103.Directly go out server 103 to web-page requests It is handled, treatment process specifically: determine corresponding static Web page data according to web-page requests, obtained from content data base Then static Web page data and web content data are sent to Reverse Proxy 102 by web content data.
When the process for directly going out the processing web-page requests of server 103 breaks down, Reverse Proxy 102, which receives, directly to be gone out Then web-page requests are sent to static server 104 by the error information that server 103 is fed back.Static server 104 receives After web-page requests, the corresponding static Web page data of web-page requests are sent to Reverse Proxy 102, are then taken by reverse proxy Static Web page data are sent to the user terminal 101 by business device 102.After user terminal 101 receives static Web page data, from content Web content data is pulled in database, and webpage is then generated according to static Web page data and web content data and is shown.
When the process for directly going out the processing web-page requests of server 103 is normal, Reverse Proxy 102, which receives, directly to be gone out to service Web content data and static Web page data, are then sent to by the web content data and static Web page data that device 103 is sent User terminal 101.After user terminal 101 receives static Web page data and web content data, according to static Web page data and Web content data generates webpage and shows.
Based on application scenario diagram shown in FIG. 1, the embodiment of the present application provides a kind of process of webpage display control method, The process of this method can be executed by Reverse Proxy, as shown in Figure 3, comprising the following steps:
Step S301, Reverse Proxy receives the web-page requests that user terminal is sent, and web-page requests are sent to Directly go out server.
Optionally, the standby server of Reverse Proxy can be configured in advance, and by Reverse Proxy and standby Different regions is individually positioned in server, for example Reverse Proxy is placed on Beijing, standby server is placed on Sea.When Reverse Proxy breaks down, such as due to when large-area power-cuts causes Reverse Proxy to stop working, Standby server is started to work, and the web-page requests that user terminal is sent are received, to guarantee that user can normally access webpage, is improved Stability.In specific implementation, Reverse Proxy can be Nginx.
Network request includes OPTIONS (return to server and be directed to the HTTP request method that specific resources are supported), GET (issue and request to specific resource), POST (Xiang Zhiding resource submits data to carry out processing request) etc..
Step S302 sends out web-page requests when Reverse Proxy receives the straight error information of server feedback out It send to static server.
Directly go out server situations such as the response time being greater than preset threshold, directly going out server delay machine, directly go out server power-off Under can to Reverse Proxy feed back error information.
Illustratively, advertising campaign of prescribing a time limit is released in summer vacation in online education website, during promoting in limited time, a large amount of user The online education website is accessed, so that directly going out server receives a large amount of web-page requests.Directly going out server cannot be default In time when response web-page requests, error information is fed back to Reverse Proxy.
Step S303, the static Web page data forwarding that Reverse Proxy sends static server to user terminal, So that user terminal obtains web content data from content data base, and raw according to web content data and static Web page data At webpage and show.
Static Web page data are pre-saved in static server, static Web page data refer to webpage base during display Originally the data that will not change, such as the frame data of webpage.
User terminal pulls the necessary script of web displaying, such as CSS script and JS after obtaining static Web page data Script.Then web content data is pulled from content data base, web content data is the particular content shown on webpage, Different time, environment may change.Finally according to static Web page data, web content data, CSS script and JS Script generates webpage and shows.
When can not handle the network request of user terminal due to directly going out server, the letter that reports an error is sent to Reverse Proxy Breath.Web-page requests are sent to static server by Reverse Proxy, the static network number of pages for then sending static server According to user terminal is forwarded to, so that user terminal obtains web content data from content data base, and web page contents number is combined Accordingly and static Web page data generate webpage and show.Directly received error information is fed back to compared to reverse proxy service User terminal shows for the wrong page that web-page requests are sent to static server by Reverse Proxy in user terminal, User terminal can be made to show the webpage of request when web-page requests increase, to promote user experience.
Optionally, in above-mentioned steps S302, error information can be text prompt information, be also possible to error code.It is wrong Error code includes but is not limited to 400,401,404,499,500,501,502,503,504.
Wherein, the grammer that 400 expression false request, i.e. server do not understand request.
401 indicate unauthorized, i.e. request requires authentication.For the webpage that needs log in, server may return to this Response.
404 indicate that the webpage of request is not present.
499 expression clients are actively disconnected connection.
500 indicate server internal error, i.e. server encounters mistake, is unable to complete request.
501 indicate not yet to implement, i.e., server does not have the function of completing request.For example, server can not identify request This code may be returned when method.
502 indicate that wrong gateway, i.e. server receive null response from upstream server as gateway or agency.
503 indicate that service is unavailable, i.e., server is not available at present (due to overload or maintenance shut-downs).
504 indicate gateway time-out, i.e., server is as gateway or agency, but does not receive and ask from upstream server in time It asks.
505 expression HTTP versions are not supported, and server does not support http protocol version used in request.
Illustratively, when error code 404 is back to user terminal by Reverse Proxy, user terminal will be shown as schemed Interface shown in 4, rather than the web interface of user's request, to bring bad experience to user.
For this purpose, when Reverse Proxy receives error code, web-page requests are sent to static state in the embodiment of the present application Server specifically includes following steps, as shown in Figure 5:
Step S501, Reverse Proxy receive the error code of straight server feedback out.
Received error code is compared by step S502, Reverse Proxy with the error code list of configuration.
Step S503, Reverse Proxy ask webpage when determining received error code and error code list match It asks and is sent to static server.
Illustratively, it is pre-configured with error code list, as shown in table 1:
Table 1.
Error code The meaning of error code
401 Indicate unauthorized, i.e. request requires authentication.
404 Indicate that the webpage of request is not present.
500 Indicate server internal error, i.e. server encounters mistake, is unable to complete request.
503 Indicate that service is unavailable, i.e., server is not available at present (due to overload or maintenance shut-downs).
Reverse Proxy receive it is straight go out server feedback error code 404, by error code 404 and the table 1 of configuration into Row compares, and determines in table 1 comprising error code 404, then web-page requests is sent to static server.Due to being pre-configured with error code List, all error codes comprising needing to forward network request, therefore when receiving the error code that server returns straight out, it can lead to Inquiry error code list is crossed, determine type of error and web-page requests are sent to static server, to improve network request Treatment effeciency.
Optionally, in step S301, it is multiple for directly going out server.Web-page requests are sent to directly by Reverse Proxy Out when server, directly it can go out in server to determine that directly goes out a clothes from each first according to the load condition of each straight server out Then web-page requests are sent to the straight server out determined by business device.
In specific implementation, it can directly go out the minimum straight server out of selection load in servers from multiple, then by network Request is sent to the minimum straight server out of load.
Optionally, when Reverse Proxy receives the straight error information of server feedback out, it can also first judge it He directly goes out the load condition of server, can be first by net if other, which directly go out in server, directly goes out server in the presence of load is lower Network request is forwarded to the lower server of load, if other load conditions for directly going out server are higher, by web-page requests It is sent to static server.Due to directly going out server when receiving web-page requests, web page contents are obtained from content data base Then static Web page data and web content data are sent to Reverse Proxy by data, therefore user terminal can be straight Connect to be generated according to the web content data and static Web page data of Reverse Proxy forwarding and webpage and show, without It goes to pull web content data again after receiving static Web page data, therefore user terminal can be effectively reduced using server is directly gone out Web-page requests are first forwarded to other loads when one, which directly goes out server, to handle web-page requests by the time of requested webpage It is lower directly to go out server, the treatment effeciency of web-page requests can be effectively improved, the time of web displaying is reduced, promotes user's body It tests.
Optionally, it in step S301, after web-page requests are sent to directly server out by Reverse Proxy, receives To it is straight go out the web content data that sends of server and when static Web page data, webpage can normally be handled and ask by illustrating directly to go out server It asks, then web content data and static Web page data are sent to the user terminal by Reverse Proxy, so that user terminal root Webpage is generated according to web content data and static Web page data and is shown.
Due to being asked using server process network is directly gone out when the network request of user terminal can be handled by directly going out server It asks, to improve the speed that user accesses webpage.The network request of user terminal, Xiang Fanxiang can not be handled directly going out server When proxy server sends error information, web-page requests are sent to static server by Reverse Proxy, by services Device handles web-page requests, rather than received error information is directly fed back to user terminal, shows in user terminal The mistake page, so that user terminal can still show the webpage of request, to promote user experience when web-page requests increase.
In order to preferably explain the embodiment of the present application, the embodiment of the present application is described below with reference to specific implement scene and is provided A kind of webpage display control method, this method by user terminal, Reverse Proxy, directly go out server and services Device interaction executes.Webpage is set as online education webpage, which releases advertising campaign in festivals or holidays, and each user is in browser It is submitted after the network address of middle Input Online education webpage, Reverse Proxy receives the web-page requests that each user terminal is sent, so Web-page requests are sent to afterwards and directly go out server.In a kind of possible embodiment, asked when straight server out can handle webpage When asking, the flow diagram of webpage display control method is as shown in fig. 6, include with step:
Step S601, user terminal send web-page requests to Reverse Proxy.
Step S602, Reverse Proxy receives the web-page requests that user terminal is sent, and web-page requests are sent to Directly go out server.
Step S603 directly goes out server and pulls the corresponding web content data of web-page requests from content data base.
Step S604 directly goes out server for static Web page data and web content data and is sent to Reverse Proxy.
Static Web page data and web content data are sent to the user terminal by step S605, Reverse Proxy.
Step S606, user terminal pull CSS script and JS script.
Step S607, user terminal are generated according to static Web page data, web content data, CSS script and JS script Webpage is simultaneously shown.
In alternatively possible embodiment, when web-page requests can not be handled by directly going out server, web displaying control The flow diagram of method is as shown in fig. 7, comprises with step:
Step S701, user terminal send web-page requests to Reverse Proxy.
Step S702, Reverse Proxy receives the web-page requests that user terminal is sent, and web-page requests are sent to Directly go out server.
Step S703, the straight error information that server is fed back to Reverse Proxy out.
Step S704, Reverse Proxy receive the error information of straight server feedback out, web-page requests are sent to Static server.
The corresponding static Web page data of web-page requests are sent to Reverse Proxy by step S705, static server.
Step S706, Reverse Proxy is by static Web page data forwarding to user terminal.
Step S707, family terminal obtain web content data from content data base.
Step S708, user terminal pull CSS script and JS script.
Step S709, user terminal are generated according to static Web page data, web content data, CSS script and JS script Webpage is simultaneously shown.
Due to being asked using server process network is directly gone out when the network request of user terminal can be handled by directly going out server It asks, to improve the speed that user accesses webpage.The network request of user terminal, Xiang Fanxiang can not be handled directly going out server When proxy server sends error information, web-page requests are sent to static server by Reverse Proxy, by services Device handles web-page requests, rather than received error information is directly fed back to user terminal, shows in user terminal The mistake page, so that user terminal can still show the webpage of request, to promote user experience when web-page requests increase.
Based on the same technical idea, the embodiment of the present application provides a kind of Reverse Proxy, as shown in figure 8, should Device 800 includes:
Receiving module 801 is sent to directly to go out for receiving the web-page requests of user terminal transmission, and by the web-page requests Server;
Distribution module 802 sends out the web-page requests when for receiving the straight error information of server feedback out It send to static server;
Sending module 803, static Web page data forwarding for sending the static server to the user terminal, So that the user terminal obtains web content data from content data base, and according to the web content data and described quiet State web data generates webpage and shows.
The distribution module 802 is specifically used for:
Receive the error code of the straight server feedback out;
Received error code is compared with the error code list of configuration;
When determining received error code and the error code list match, the web-page requests are sent to services Device.
It is optionally, described that directly server is multiple out;
The receiving module 801 is specifically used for:
According to the load condition of each straight server out, directly go out in server to determine that directly goes out a server from each;
The web-page requests are sent to the straight server out determined.
The distribution module 802 is also used to:
The web-page requests are sent to after directly going out server, are received in the webpage that server is sent straight out When holding data and the static Web page data, the web content data and the static Web page data are sent to the user Terminal, so that the user terminal generates webpage according to the web content data and the static Web page data and shows.
Based on the same technical idea, the embodiment of the present application provides a kind of web displaying control system, as shown in figure 9, The device 900 includes: Reverse Proxy 901, directly goes out server 902 and static server 903.
The Reverse Proxy 901, for receiving the web-page requests of user terminal transmission, and by the web-page requests It is sent to and directly goes out server;
It is described directly to go out server 902, for when that can not handle the web-page requests, Xiang Suoshu Reverse Proxy to be anti- The error information of feedback;
The Reverse Proxy 901, when being also used to receive the straight error information of server feedback out, by institute It states web-page requests and is sent to static server;
The static server 903, for the corresponding static Web page data of the web-page requests to be sent to reverse proxy Server;
The Reverse Proxy 901, the static Web page data forwarding for being also used to send the static server is extremely The user terminal, so that the user terminal obtains web content data from content data base, and according in the webpage Hold data and the static Web page data generate webpage and show.
Optionally, further includes:
It is described directly to go out server 902, it is also used to obtain from the content data base when the web-page requests can be handled Web content data, and the web content data and the static Web page data are sent to the Reverse Proxy;
The Reverse Proxy 901 is also used to the web content data and the static Web page data forwarding To the user terminal, so that the user terminal generates webpage according to the web content data and the static Web page data And it shows.
Based on the same technical idea, the embodiment of the present application provides a kind of web displaying control equipment, as shown in Figure 10, Including at least one processor 1001, and the memory 1002 being connect at least one processor, in the embodiment of the present application not The specific connection medium between processor 1001 and memory 1002 is limited, in Figure 10 between processor 1001 and memory 1002 For being connected by bus.Bus can be divided into address bus, data/address bus, control bus etc..
In the embodiment of the present application, memory 1002 is stored with the instruction that can be executed by least one processor 1001, until The instruction that a few processor 1001 is stored by executing memory 1002, can execute institute in aforementioned webpage display control method Include the steps that.
Wherein, processor 1001 is the control centre of web displaying control equipment, can use various interfaces and route connects The various pieces for connecing web displaying control equipment, are deposited by running or executing the instruction being stored in memory 1002 and calling The data in memory 1002 are stored up, to control web displaying.Optionally, processor 1001 may include one or more processing Unit, processor 1001 can integrate application processor and modem processor, wherein the main processing operation system of application processor System, user interface and application program etc., modem processor mainly handles wireless communication.It is understood that above-mentioned modulation Demodulation processor can not also be integrated into processor 1001.In some embodiments, processor 1001 and memory 1002 can To realize on the same chip, in some embodiments, they can also be realized respectively on independent chip.
Processor 1001 can be general processor, such as central processing unit (CPU), digital signal processor, dedicated collection At circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array or other Perhaps transistor logic, discrete hardware components may be implemented or execute the application reality for programmable logic device, discrete gate Apply each method, step disclosed in example and logic diagram.General processor can be microprocessor or any conventional processing Device etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware processor and execute completion, or With in processor hardware and software module combination execute completion.
Memory 1002 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module.Memory 1002 may include the storage medium of at least one type, It such as may include flash memory, hard disk, multimedia card, card-type memory, random access storage device (Random Access Memory, RAM), static random-access memory (Static Random Access Memory, SRAM), may be programmed read-only deposit Reservoir (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), band Electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic storage, disk, CD etc..Memory 1002 can be used for carrying or storing have instruction or data The desired program code of structure type and can by any other medium of computer access, but not limited to this.The application is real Applying the memory 1002 in example can also be circuit or other devices that arbitrarily can be realized store function, for storing program Instruction and/or data.
Based on the same inventive concept, the embodiment of the present application provides a kind of computer-readable medium, and being stored with can be by net The computer program that page display control apparatus executes, when described program is run in web displaying control equipment, so that described Web displaying controls the step of equipment executes webpage display control method.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (14)

1. a kind of webpage display control method characterized by comprising
The web-page requests that user terminal is sent are received, and the web-page requests are sent to and directly go out server;
When receiving the straight error information of server feedback out, the web-page requests are sent to static server;
The static Web page data forwarding that the static server is sent is to the user terminal, so that the user terminal is from interior Hold and obtain web content data in database, and webpage is generated simultaneously according to the web content data and the static Web page data Display.
2. the method as described in claim 1, which is characterized in that the error information for receiving the straight server feedback out When, the web-page requests are sent to static server, comprising:
Receive the error code of the straight server feedback out;
Received error code is compared with the error code list of configuration;
When determining received error code and the error code list match, the web-page requests are sent to static server.
3. the method as described in claim 1, which is characterized in that described directly server is multiple out;
The web-page requests are sent to and directly go out server, comprising:
According to the load condition of each straight server out, directly go out in server to determine that directly goes out a server from each;
The web-page requests are sent to the straight server out determined.
4. the method as described in claims 1 to 3 is any, which is characterized in that described that the web-page requests are sent to straight clothes out It is engaged in after device, further includes:
It, will be in the webpage when receiving the web content data that server is sent straight out and the static Web page data Hold data and the static Web page data are sent to the user terminal, so that the user terminal is according to the web page contents number It webpage and is shown according to being generated with the static Web page data.
5. a kind of webpage display control method characterized by comprising
Reverse Proxy receives the web-page requests that user terminal is sent, and the web-page requests are sent to straight service out Device;
It is described directly to go out server when handle the web-page requests, the error information of Xiang Suoshu Reverse Proxy feedback;
When the Reverse Proxy receives the straight error information of server feedback out, the web-page requests are sent To static server;
The corresponding static Web page data of the web-page requests are sent to Reverse Proxy by the static server;
The static Web page data forwarding that the Reverse Proxy sends the static server to the user terminal, with The user terminal is set to obtain web content data from content data base, and according to the web content data and the static state Web data generates webpage and shows.
6. method as claimed in claim 5, which is characterized in that further include:
It is described directly to go out server when handle the web-page requests, web content data is obtained from the content data base, and The web content data and the static Web page data are sent to the Reverse Proxy;
The Reverse Proxy by the web content data and the static Web page data forwarding to the user terminal, So that the user terminal generates webpage according to the web content data and the static Web page data and shows.
7. a kind of Reverse Proxy characterized by comprising
Receiving module for receiving the web-page requests of user terminal transmission, and the web-page requests is sent to and directly go out server;
The web-page requests are sent to quiet by distribution module when for receiving the straight error information of server feedback out State server;
Sending module, the static Web page data forwarding for sending the static server is to the user terminal, so that institute It states user terminal and obtains web content data from content data base, and according to the web content data and the static Web page Data generate webpage and show.
8. Reverse Proxy as claimed in claim 7, which is characterized in that the distribution module is specifically used for:
Receive the error code of the straight server feedback out;
Received error code is compared with the error code list of configuration;
When determining received error code and the error code list match, the web-page requests are sent to static server.
9. Reverse Proxy as claimed in claim 7, which is characterized in that described directly server is multiple out;
The receiving module is specifically used for:
According to the load condition of each straight server out, directly go out in server to determine that directly goes out a server from each;
The web-page requests are sent to the straight server out determined.
10. the Reverse Proxy as described in claim 7 to 9 is any, which is characterized in that the distribution module is also used to:
The web-page requests are sent to after directly going out server, receive the straight web page contents number that server is sent out When according to the static Web page data, it is whole that the web content data and the static Web page data are sent to the user End, so that the user terminal generates webpage according to the web content data and the static Web page data and shows.
11. a kind of web displaying control system characterized by comprising
Reverse Proxy directly goes out server and static server;
The Reverse Proxy for receiving the web-page requests of user terminal transmission, and the web-page requests is sent to Directly go out server;
It is described directly to go out server, for the report that when that can not handle the web-page requests, Xiang Suoshu Reverse Proxy is fed back Wrong information;
The Reverse Proxy, when being also used to receive the straight error information of server feedback out, by the webpage Request is sent to static server;
The static server, for the corresponding static Web page data of the web-page requests to be sent to Reverse Proxy;
The Reverse Proxy, the static Web page data forwarding for being also used to send the static server to the user Terminal so that the user terminal obtains web content data from content data base, and according to the web content data and The static Web page data generate webpage and show.
12. system as claimed in claim 11, which is characterized in that further include:
It is described directly to go out server, it is also used to when the web-page requests can be handled, is obtained in webpage from the content data base Hold data, and the web content data and the static Web page data are sent to the Reverse Proxy;
The Reverse Proxy is also used to the web content data and the static Web page data forwarding to the use Family terminal, so that the user terminal generates webpage according to the web content data and the static Web page data and shows.
13. a kind of web displaying controls equipment, which is characterized in that including at least one processor and at least one processor, Wherein, the memory is stored with computer program, when described program is executed by the processor, so that the processor is held The step of row Claims 1 to 4 or 5~6 any claim the method.
14. a kind of computer-readable medium, which is characterized in that it, which is stored with, to control the computer that equipment executes by web displaying Program, when described program is run in web displaying control equipment, so that web displaying control equipment perform claim is wanted The step of asking 1~4 or 5~6 any the method.
CN201811288783.2A 2018-10-31 2018-10-31 Webpage display control method and system and reverse proxy server Active CN109495553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811288783.2A CN109495553B (en) 2018-10-31 2018-10-31 Webpage display control method and system and reverse proxy server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811288783.2A CN109495553B (en) 2018-10-31 2018-10-31 Webpage display control method and system and reverse proxy server

Publications (2)

Publication Number Publication Date
CN109495553A true CN109495553A (en) 2019-03-19
CN109495553B CN109495553B (en) 2020-12-22

Family

ID=65691777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811288783.2A Active CN109495553B (en) 2018-10-31 2018-10-31 Webpage display control method and system and reverse proxy server

Country Status (1)

Country Link
CN (1) CN109495553B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196957A (en) * 2019-06-03 2019-09-03 广州凡科互联网科技股份有限公司 A kind of continous way static resource update method
CN110266802A (en) * 2019-06-24 2019-09-20 深圳市网心科技有限公司 Reverse proxy method of servicing, server, system and medium based on ID identification
CN111125602A (en) * 2019-12-25 2020-05-08 腾讯音乐娱乐科技(深圳)有限公司 Page construction method, device, equipment and storage medium
CN111752559A (en) * 2019-11-07 2020-10-09 北京沃东天骏信息技术有限公司 Front-end and back-end separation system, method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631905A (en) * 2013-11-22 2014-03-12 北京奇虎科技有限公司 Webpage loading method and browser
CN104754073A (en) * 2015-03-25 2015-07-01 百度在线网络技术(北京)有限公司 Resource access method and device
CN106021617A (en) * 2016-07-12 2016-10-12 腾讯科技(深圳)有限公司 Page generation method and device
WO2017005080A1 (en) * 2015-07-09 2017-01-12 腾讯科技(深圳)有限公司 Webpage display method, terminal device and storage medium
CN106933817A (en) * 2015-12-29 2017-07-07 华为技术有限公司 A kind of content search method and apparatus, system based on B/S structures
US20180121320A1 (en) * 2016-10-31 2018-05-03 International Business Machines Corporation Analysis to check web api code usage and specification
CN108717435A (en) * 2018-05-16 2018-10-30 腾讯科技(深圳)有限公司 Webpage loading method, information processing method, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631905A (en) * 2013-11-22 2014-03-12 北京奇虎科技有限公司 Webpage loading method and browser
CN104754073A (en) * 2015-03-25 2015-07-01 百度在线网络技术(北京)有限公司 Resource access method and device
WO2017005080A1 (en) * 2015-07-09 2017-01-12 腾讯科技(深圳)有限公司 Webpage display method, terminal device and storage medium
CN106933817A (en) * 2015-12-29 2017-07-07 华为技术有限公司 A kind of content search method and apparatus, system based on B/S structures
CN106021617A (en) * 2016-07-12 2016-10-12 腾讯科技(深圳)有限公司 Page generation method and device
US20180121320A1 (en) * 2016-10-31 2018-05-03 International Business Machines Corporation Analysis to check web api code usage and specification
CN108717435A (en) * 2018-05-16 2018-10-30 腾讯科技(深圳)有限公司 Webpage loading method, information processing method, computer equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196957A (en) * 2019-06-03 2019-09-03 广州凡科互联网科技股份有限公司 A kind of continous way static resource update method
CN110266802A (en) * 2019-06-24 2019-09-20 深圳市网心科技有限公司 Reverse proxy method of servicing, server, system and medium based on ID identification
CN111752559A (en) * 2019-11-07 2020-10-09 北京沃东天骏信息技术有限公司 Front-end and back-end separation system, method, device and storage medium
CN111752559B (en) * 2019-11-07 2024-02-06 北京沃东天骏信息技术有限公司 Front-end and back-end separation system, method, device and storage medium
CN111125602A (en) * 2019-12-25 2020-05-08 腾讯音乐娱乐科技(深圳)有限公司 Page construction method, device, equipment and storage medium
CN111125602B (en) * 2019-12-25 2023-11-14 腾讯音乐娱乐科技(深圳)有限公司 Page construction method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109495553B (en) 2020-12-22

Similar Documents

Publication Publication Date Title
US10356156B2 (en) Method and device for loading webpage
US10666758B2 (en) Browser resource pre-pulling method, terminal and storage medium
CN106933871B (en) Short link processing method and device and short link server
CN109495553A (en) A kind of webpage display control method, system and Reverse Proxy
CN109542427B (en) System customization method and device, electronic equipment and storage medium
CN110557284B (en) Data aggregation method and device based on client gateway
CN107463563B (en) Information service processing method and device of browser
CN109992406B (en) Picture request method, picture request response method and client
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
CN108023867A (en) Method, gateway server and the filtering server of mobile terminal web advertisement filtering
CN104618388B (en) Fast registration login method and corresponding resetting server, information server
CN110191186A (en) CDN server dispatching method, equipment and computer readable storage medium
US9892202B2 (en) Web page load time reduction by optimized authentication
CN112965916B (en) Page testing method, page testing device, electronic equipment and readable storage medium
CN112672187B (en) Page generation method and device, computer equipment and readable storage medium
CN111444448B (en) Data processing method, server and system
CN113132400A (en) Business processing method, device, computer system and storage medium
CN111258902A (en) Performance test method and performance test system based on SockJS server
CN112688980B (en) Resource distribution method and device, and computer equipment
CN115643054A (en) Identity information verification method, device, server, medium and product
CN113495498B (en) Simulation method, simulator, device and medium for hardware device
CN112434233B (en) Method and device for accelerating first screen rendering of secondary page
CN110992131B (en) Form processing method, form processing device and storage medium
CN108897875A (en) A kind of market figure update method, device and equipment
CN113704648A (en) Page data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant