CN103338233B - Load-balancing device, Web server and solicited message processing method and system - Google Patents

Load-balancing device, Web server and solicited message processing method and system Download PDF

Info

Publication number
CN103338233B
CN103338233B CN201310222399.3A CN201310222399A CN103338233B CN 103338233 B CN103338233 B CN 103338233B CN 201310222399 A CN201310222399 A CN 201310222399A CN 103338233 B CN103338233 B CN 103338233B
Authority
CN
China
Prior art keywords
php
solicited message
information
configuration
configuration information
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.)
Active
Application number
CN201310222399.3A
Other languages
Chinese (zh)
Other versions
CN103338233A (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.)
Sina Technology China Co Ltd
Original Assignee
Sina Technology China 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 Sina Technology China Co Ltd filed Critical Sina Technology China Co Ltd
Priority to CN201310222399.3A priority Critical patent/CN103338233B/en
Publication of CN103338233A publication Critical patent/CN103338233A/en
Application granted granted Critical
Publication of CN103338233B publication Critical patent/CN103338233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of load-balancing device, Web server and solicited message processing method and system, described system comprises: load-balancing device, configuration information database and network Web server; Wherein, load-balancing device is determined behind the website of this solicited message request access according to the address information of carrying in the solicited message receiving, and obtains to be carried at the backward Web server of this solicited message after the PHP configuration information of this website and to forward from configuration information database; Web server carries out dynamic-configuration according to the PHP configuration information carrying in solicited message to PHP running environment; PHP running environment after dynamic-configuration is moved corresponding PHP shell script according to this solicited message, and generating web page returns to client. So, in the time carrying out website maintenance, only need in configuration information database, unify to safeguard the PHP configuration information of each website, thereby greatly reduce maintenance workload, reduce maintenance cost.

Description

Load-balancing device, Web server and solicited message processing method and system
Technical field
The present invention relates to network technology, relate in particular to the load-balancing device, the Web service that are applied to websiteDevice and solicited message processing method and system.
Background technology
The technical development of network is rapid, and Web2.0 the most outstanding feature of epoch is the mutual of user and website;Mutual webpage needs the support of dynamic technique, such as server end adopts PHP(HypertextPreprocessor, supertext pretreatment language) shell script realizes dynamic technique.
At present, portal service provider extensively adopts LAMP(Linux, Apache, MySQL, PHP,Being (SuSE) Linux OS, Apache's server software, database software, PHP script) framework is companyA lot of web-site exploitation dynamic web pages provide the support of hardware and software platform: the Apache software on Web server connectsReceive after the solicited message that user sends (may comprise the data that user submits to), by what loadedPHP interpreter, the data of submitting in conjunction with user, the web page program explain, processing embedding having PHP script,The browser that afterwards web data dynamically generating is returned to user presents.
Portal service provider utilizes fictitious host computer technology conventionally a Web(website) move on serverMultiple websites, the respectively corresponding fictitious host computer in each website; Web server software on Web server(for example, Apache software) can be according to different address informations (such as according to domain name, IP address or endSlogan) configure different fictitious host computers. The stream of a website on Accessor Access's Web server of websiteJourney, as shown in Figure 1a, comprises the steps:
S101: user sends request information by Web client.
Particularly, user inputs the address information of the website of wish access etc. in the browser of Web client,Send the solicited message of webpage.
S102:Web server receives after the solicited message being forwarded by load-balancing device, parsesThe address information of carrying in this solicited message, sends to corresponding net according to address information by this solicited messageThe fictitious host computer of standing is processed.
Particularly, in the framework of solicited message treatment system as shown in Figure 1 b, the request letter that user sendsBreath, after load-balancing device allotment, sends to certain Web server; Web server receives by loadAfter the solicited message that balancing equipment forwards, the Apache(Apache in Web server) software parsingGo out the address information of carrying in this solicited message, according to address information, this solicited message is sent to this WebIn server, the fictitious host computer of corresponding website is processed.
S103: fictitious host computer, according to the PHP program identification of carrying in solicited message, is carried out corresponding PHPProgram obtains execution result, returns to user according to execution result generating web page.
Particularly, the each fictitious host computer on Web server is equipped with a PHP interpreter (or title PHPRunning environment); At present, widely used is the PHPruntime software of increasing income. Start at fictitious host computerAfter startup, first according to the PHP configuration file of this fictitious host computer, the PHP running environment of this fictitious host computer is carried outConfiguration, the mode that can specify with the PHP running environment making after configuration is moved the corresponding net of this fictitious host computerEach PHP shell script of standing. Typically, each website feature is different, require different, therefore,Configuration information in the PHP configuration file of each fictitious host computer of corresponding each website is also different, thereby according to notThe PHP running environment configuring with configuration information is not identical yet.
PHP running environment after being configured by PHP configuration file in fictitious host computer, according to solicited messageIn the PHP program identification of carrying, in PHP code directory, find corresponding PHP script program operation,Generate HTML(HypertextMarkupLanguage, HTML according to operation result) netPage rear line returns.
But the present inventor finds, framework based on prior art carries out solicited message processingMethod, along with the increase of Web server quantity, and the increase of fictitious host computer quantity on Web server,Can make fictitious host computer maintenance cost very large. For example, be distributed in Web server 1, Web clothes everywhereBusiness device 2 ... in Web server n, all move the fictitious host computer of multiple websites, having comprised: website A, netThe stand fictitious host computer of B, website C, website D; So, attendant need to safeguard in each Web serverThe PHP configuration file of the corresponding fictitious host computer in each website, and ensure in different Web servers, phaseWith the uniformity of the PHP configuration file of the corresponding fictitious host computer in website; Therefore, this puies forward website serviceConfession business is large to the maintenance workload of website, maintenance cost is high.
Summary of the invention
Embodiments of the invention provide a kind of load-balancing device, Web server and solicited message processingMethod and system, in order to reduce website maintenance workload and maintenance cost.
According to an aspect of the present invention, provide a kind of solicited message treatment system, having comprised:
Configuration information database, for storing the supertext pretreatment language PHP configuration information of each website;
Load-balancing device, for receiving after the solicited message of client transmission, according to this request letterThe address information of carrying in breath is determined the website of this solicited message request access; According to the website of determining,From described configuration information database, obtain the PHP configuration information of this website; And by the PHP configuration of obtainingInformation is carried in this solicited message, and this solicited message is forwarded;
Web server, the solicited message forwarding for receiving described load-balancing device, and according to receptionSolicited message in the PHP configuration information that carries local PHP running environment module is dynamically joinedPut; Afterwards, the PHP running environment module after dynamic-configuration is corresponding according to this solicited message operationPHP shell script, and return to described client according to operation result generating web page.
Preferably, described PHP configuration information comprises: PHP code directory information, the operation of PHP programMode information; And
Described PHP running environment module specifically comprises:
Program is searched unit, for according to the PHP code directory information of dynamic-configuration, determines currentPHP code directory; And according to the PHP program identification of carrying in this solicited message, at described current PHPIn code directory, find corresponding PHP shell script;
Program running unit, for according to the PHP program run mode information of dynamic-configuration, described in operationProgram is searched the PHP shell script that unit finds, and asks as described according to operation result generating web pageAsk the return information of information.
According to another aspect of the present invention, also provide a kind of solicited message processing method, having comprised:
Load-balancing device is receiving after the solicited message of client transmission, according to taking in this solicited messageThe address information of band is determined the website of this solicited message request access; According to the website of determining, from joiningPut the supertext pretreatment language PHP configuration information that obtains this website in information database; And will obtainPHP configuration information be carried in this solicited message, this solicited message is forwarded to Web server;
Described Web server receives after this solicited message, according to the PHP configuration information pair wherein carryingLocal PHP running environment is carried out dynamic-configuration; Afterwards, the PHP running environment after dynamic-configurationMove corresponding PHP shell script according to this solicited message, and according to operation result generating web page to describedClient is returned.
Preferably, described the PHP configuration information obtaining is carried in this solicited message, specifically comprises:
The HTTP that the PHP configuration information obtaining is carried at this solicited message by described load-balancing device asksAsk in head.
Preferably, described PHP configuration information comprises: PHP code directory information, the operation of PHP programMode information; And
Described according to the PHP configuration information that carries in the solicited message receiving to local PHP running environmentCarry out dynamic-configuration; Afterwards, the PHP running environment after dynamic-configuration is according to this solicited message operationCorresponding PHP shell script, specifically comprises:
Described Web server according to the PHP code directory information in described PHP configuration information to this localityThe PHP code directory information of PHP running environment be configured, according in described PHP configuration informationPHP program run mode information the PHP program run mode of local PHP running environment is carried outConfiguration;
PHP running environment after dynamic-configuration, according to the PHP code directory information of dynamic-configuration,Determine current PHP code directory; And according to the PHP program identification of carrying in this solicited message,In described current PHP code directory, find after corresponding PHP shell script, according to dynamic-configurationPHP program run mode, the PHP shell script that operation finds.
According to another aspect of the present invention, also provide a kind of load-balancing device, having comprised:
Solicited message parsing module, for the solicited message receiving is resolved, according to asking from describedAsk the address information parsing in information to determine the website of this solicited message request access;
Configuration information acquisition module, for the website of determining according to described request information analysis module, fromIn described configuration information database, obtain the supertext pretreatment language PHP configuration information of this website;
Solicited message forwarding module, for the PHP configuration information that described configuration information acquisition module is obtainedBe carried in this solicited message, this solicited message is forwarded to Web server.
According to another aspect of the present invention, also provide a kind of Web server, having comprised:
Solicited message parsing module, for the solicited message receiving is resolved, therefrom parses instituteState the PHP configuration information that solicited message is carried;
Dynamic-configuration module and PHP running environment module, described dynamic-configuration module is for asking according to describedAsk the configuration information that information analysis module parses goes out to carry out dynamic-configuration to described PHP running environment module;
Described PHP running environment module is after dynamic-configuration, corresponding according to the operation of described request informationPHP shell script, and according to operation result generating web page the return information as described request information.
Preferably, described PHP configuration information comprises: PHP code directory information, the operation of PHP programMode information; And
Described PHP running environment module specifically comprises:
Program is searched unit, for according to the PHP code directory information of dynamic-configuration, determines currentPHP code directory; And according to the PHP program identification of carrying in this solicited message, at described current PHPIn code directory, find corresponding PHP shell script;
Program running unit, for according to the PHP program run mode information of dynamic-configuration, described in operationProgram is searched the PHP shell script that unit finds, and asks as described according to operation result generating web pageAsk the return information of information.
In the technical scheme of the embodiment of the present invention, because load-balancing device obtains from configuration information databaseGet the PHP configuration information of corresponding website, and this PHP configuration information is carried on and is forwarded to Web serviceIn the solicited message of device; Thereby Web server can be according to the PHP configuration information in solicited message to thisThe PHP running environment on ground is carried out dynamic-configuration, to allow the PHP shell script of corresponding website. Like this,In the time carrying out website maintenance, just needn't want each net in maintaining webs server for each Web serverThe PHP configuration file of standing, but the unified PHP configuration of safeguarding each website is believed in configuration information databaseBreath; The maintenance workload that has greatly reduced website, has reduced maintenance cost.
Brief description of the drawings
Fig. 1 a is the flow chart of the Website access method of prior art;
Fig. 1 b is the Organization Chart of the solicited message treatment system of prior art;
Fig. 2 is the Organization Chart of the solicited message treatment system of the embodiment of the present invention;
Fig. 3 is the solicited message process flow figure of the embodiment of the present invention;
Fig. 4 is the internal structure block diagram of the load-balancing device of the embodiment of the present invention;
Fig. 5 is the internal structure block diagram of the Web server of the embodiment of the present invention.
Detailed description of the invention
For making object of the present invention, technical scheme and advantage clearer, develop simultaneously referring to accompanying drawingGo out preferred embodiment, the present invention is described in more detail. But, it should be noted that, in descriptionMany details of listing be only used to make reader to one or more aspects of the present invention have one thoroughUnderstand, even if do not have these specific details also can realize these aspects of the present invention.
The terms such as " module " used in this application, " system " are intended to comprise the entity relevant to computer,Such as but not limited to hardware, firmware, combination thereof, software or executory software. For example, mouldPiece can be, but be not limited in: the process, processor, the object that on processor, move, can carry out journeyThread, program and/or the computer of order, execution. For instance, the application program of moving on computing equipmentWith this computing equipment can be module. One or more modules can be positioned at an executory process and/Or in thread, a module also can be positioned on a computer and/or be distributed in two or more calculatingBetween machine.
In technical scheme of the present invention, Web server is tieed up no longer respectively for operation multiple websites whereinProtect different fictitious host computers; In other words, no longer configure different PHP operation rings for different websitesBorder; But all adopt a PHP running environment for multiple websites; In the mistake of each solicited message processingCheng Zhong, distinguishes behind the corresponding website of this solicited message, and PHP running environment is carried out to dynamic-configuration;PHP running environment after dynamic-configuration can be moved corresponding PHP script journey according to this solicited messageOrder.
Wherein, for the PHP configuration information unified configuration information that is stored in advance of each website of dynamic-configurationIn database; Load-balancing device is before Web server Forward-reques information, from configuration information numberAfter obtaining corresponding configuration information in storehouse, be carried on after the solicited message forwarding, then by this requestInformation sends to Web server; Thereby Web server can be according to the PHP carrying in solicited messageConfiguration information carries out after dynamic-configuration PHP running environment, moves corresponding PHP pin according to solicited messageThis program. Based on Web server solicited message processing method of the present invention, just needn't be for numerous WebPHP configuration file is safeguarded respectively in each website of moving in server; Only need maintain configuration information databaseIn the PHP configuration information of each website, and the request that each Web server all can forward from load-balancing deviceIn information, obtain PHP configuration information PHP running environment is carried out to dynamic-configuration, thereby greatly reducedIn the workload in the process of safeguarding of website, reduce maintenance cost.
Describe the technical scheme of the embodiment of the present invention in detail below in conjunction with accompanying drawing. According to above-mentioned thinking, thisThe Web server solicited message treatment system that bright embodiment provides, as shown in Figure 2, comprising: load is equalWeighing apparatus (LB, LoadBalance) equipment 201, configuration information database 202, Web server 203.The flow process of the Web server solicited message processing method that the embodiment of the present invention provides, as shown in Figure 3, bagDraw together following steps:
S301: user sends request information by client.
Particularly, user sends request information by the browser of client, carries use in solicited messageThe address information of the website of family wish access etc.
S302: load-balancing device 201 receives after the solicited message of user's transmission, according to this request letterThe address information of carrying in breath is determined the website of this solicited message request access.
In this step, load-balancing device 201 receives after the solicited message of user's transmission, to what receiveSolicited message is resolved, and can determine this solicited message request according to the address information therefrom parsingThe website of access.
S303: load-balancing device 201 is according to the website of determining, from configuration information database 202Obtain the PHP configuration information of this website.
Particularly, in configuration information database 202, stored respectively the PHP of each website for each websiteConfiguration information, comprising: PHP code directory information, PHP program run mode information, and use moneyThe quota information in source etc.
S304: load-balancing device 201 is carried at the PHP configuration information obtaining in this solicited message,This solicited message is forwarded to Web server 203.
In this step, the PHP configuration information obtaining is carried at solicited message by load-balancing device 201HTTP(HyperTextTransportProtocol, HTTP) in request header; Afterwards,After load balancing, the solicited message that carries configuration information is forwarded to Web server 203.
S305:Web server 203 receives after solicited message, according to the PHP configuration letter wherein carryingBreath carries out dynamic-configuration to local PHP running environment (or claiming PHP running environment module).
In this step, Web server 203 receives after solicited message, therefrom parses configuration information,And according to the configuration information parsing, local PHP running environment (PHP running environment module) is carried outDynamic-configuration. For example, Web server 203 is according to the PHP code directory in the configuration information parsingInformation is carried out the PHP code directory information of local PHP running environment (PHP running environment module)Configuration; According to the PHP program run mode information in the configuration information parsing, local PHP is movedThe PHP program run mode of environment (PHP running environment module) is configured. Web server 203According to the quota information of the use resource in the configuration information parsing, to PHP running environment (PHP fortuneRow environment module) related resource that uses is configured, the number of threads, the Netowrk tape that for example useWide grade is configured.
In fact, Web server 203 provided by the invention no longer divides for operation multiple websites whereinDo not safeguard different fictitious host computers; In other words, no longer configure different PHP fortune for different websitesRow environment; Web server 203 all adopts an initial PHP running environment for multiple websites, shouldUnified, default configuration that initial PHP running environment has; In the process of each solicited message processing,Web server 203 carries out dynamic-configuration to PHP running environment, according to the configuration information parsing to thisCorrelated variables in the PHP running environment on ground carries out assignment.
PHP running environment in S306:Web server 203 after dynamic-configuration is according to Web serviceThe solicited message that device 203 receives is moved corresponding PHP shell script, and according to operation result generating web pageReturn to described client.
In this step, the PHP running environment after dynamic-configuration, according to the PHP code of dynamic-configurationDirectory information, determines the indicated PHP code directory of PHP code directory information of configuration, as working asFront PHP code directory; In fact, different websites adopts different PHP code directory, according toIn PHP running environment, the PHP code directory information of dynamic-configuration, can determine current this solicited messageThe PHP code directory of the website of institute's request access.
PHP running environment after dynamic-configuration is according to the PHP program identification of carrying in solicited message,In the current PHP code directory of determining, find after corresponding PHP shell script, according to dynamicallyThe PHP program run mode of configuration, the PHP shell script that operation finds.
The inside concrete structure block diagram of above-mentioned load-balancing device 201, as shown in Figure 4, comprising: requestInformation analysis module 401, configuration information acquisition module 402, solicited message forwarding module 403.
Solicited message parsing module 401 is for receiving asking of client transmission at load-balancing device 201Ask after information, the solicited message receiving is resolved, according to what parse from described request informationAddress information is determined the website of this solicited message request access;
The website of configuration information acquisition module 402 for determining according to solicited message parsing module 401,From described configuration information database, obtain the supertext pretreatment language PHP configuration information of this website;
The PHP configuration letter of solicited message forwarding module 403 for configuration information acquisition module 402 is obtainedBreath is carried in this solicited message, and this solicited message is forwarded to Web server.
The inside concrete structure block diagram of above-mentioned Web server 203, as shown in Figure 5, comprising: request letterBreath parsing module 501, dynamic-configuration module 502 and PHP running environment module 503.
The solicited message of solicited message parsing module 501 for receiving load-balancing device 201 and forwardingAfter, the solicited message receiving is resolved, therefrom parse the PHP that described request information carries and joinPut information; Wherein, the configuration information that solicited message parsing module parses can comprise: PHP code orderRecord information, PHP program run mode information, quota information etc.;
The configuration information pair of dynamic-configuration module 502 for parsing according to solicited message parsing module 501PHP running environment module 503 is carried out dynamic-configuration;
PHP running environment module 503 is after dynamic-configuration, corresponding according to the operation of described request informationPHP shell script, and according to operation result generating web page the return information as described request information.
PHP running environment module 503 specifically can comprise: program is searched unit 511, program running unit512。
Program is searched unit 511 for according to the PHP code directory information of dynamic-configuration, determines currentPHP code directory; And according to the PHP program identification of carrying in this solicited message, at current PHPIn code directory, find corresponding PHP shell script;
Program running unit 512, according to the PHP program run mode information of dynamic-configuration, is moved described journeyOrder is searched the PHP shell script that unit finds, and according to operation result generating web page as described requestThe return information of information.
In the technical scheme of the embodiment of the present invention, because load-balancing device obtains from configuration information databaseGet the PHP configuration information of corresponding website, and this PHP configuration information is carried on and is forwarded to Web serviceIn the solicited message of device; Thereby Web server can be according to the PHP configuration information in solicited message to thisThe PHP running environment on ground is carried out dynamic-configuration, to allow the PHP shell script of corresponding website. Like this,In the time carrying out website maintenance, just needn't want each net in maintaining webs server for each Web serverThe PHP configuration file of standing, but the unified PHP configuration of safeguarding each website is believed in configuration information databaseBreath; The maintenance workload that has greatly reduced website, has reduced maintenance cost.
And, in prior art scheme, due to the PHP running environment difference of each website in Web serverTo be configured by loading static configuration file in the time starting, thereby after the amendment of PHP configuration information,Need to restart Web server, to restart PHP running environment according in amended configuration filePHP configuration information is configured; And in technical scheme of the present invention, because Web server can basisPHP configuration information in solicited message carries out dynamic-configuration to local PHP running environment; Therefore,After the PHP configuration information of website is modified, adopt amended PHP configuration information to move PHPWhen environment carries out dynamic-configuration, need not restart server, increase the flexibility of system.
And, in prior art scheme, because the PHP running environment of each website in Web server needsAllocate some resources in advance, such as bandwidth resources, CPU use resource, process to take resource etc.; ForCan meet the requirement that process request website, need to expire by the pre-assigned resource of PHP configuration fileThe resource that foot website largest request capacity consumes; And in most cases, the request quantity of website also reaches notTo heap(ed) capacity, even sometimes very little; The remaining resource in this website can not be made by other website again simultaneouslyWith; Therefore, cause the wasting of resources.
And in technical scheme of the present invention, because each website in Web server shares a PHP operation ringBorder, Web server needn't be that the PHP running environment of each website is allocated out respectively heap(ed) capacity in advance againResource, but be the shared PHP running environment unified distribution resource in each website; And unified distributionResource can dynamically be used by the request of each website; Because of its dynamic adjustable property, make unified pointThe resource of joining can be less than the resource sum of the heap(ed) capacity that in prior art, each website is distributed, thereby savesThe resource of Web server.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment methodBe can carry out the hardware that instruction is relevant by program to complete, this program can be stored in a computer-readableGet in storage medium, as: ROM/RAM, magnetic disc, CD etc.
The above is only the preferred embodiment of the present invention, it should be pointed out that general for the artLogical technical staff, under the premise without departing from the principles of the invention, can also make some improvement and profitDecorations, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. a solicited message treatment system, is characterized in that, comprising:
Configuration information database, for storing the supertext pretreatment language PHP configuration information of each website;
Load-balancing device, for receiving after the solicited message of client transmission, according to this request letterThe address information of carrying in breath is determined the website of this solicited message request access; According to the website of determining,From described configuration information database, obtain the PHP configuration information of this website; And by the PHP configuration of obtainingInformation is carried in this solicited message, and this solicited message is forwarded;
Web server, the solicited message forwarding for receiving described load-balancing device, and according to receptionSolicited message in the PHP configuration information that carries local PHP running environment module is dynamically joinedPut; Afterwards, the PHP running environment module after dynamic-configuration is corresponding according to this solicited message operationPHP shell script, and return to described client according to operation result generating web page.
2. the system as claimed in claim 1, is characterized in that, described PHP configuration information comprises:PHP code directory information, PHP program run mode information; And
Described PHP running environment module specifically comprises:
Program is searched unit, for according to the PHP code directory information of dynamic-configuration, determines currentPHP code directory; And according to the PHP program identification of carrying in this solicited message, at described current PHPIn code directory, find corresponding PHP shell script;
Program running unit, for according to the PHP program run mode information of dynamic-configuration, described in operationProgram is searched the PHP shell script that unit finds, and asks as described according to operation result generating web pageAsk the return information of information.
3. a solicited message processing method, is characterized in that, comprising:
Load-balancing device is receiving after the solicited message of client transmission, according to taking in this solicited messageThe address information of band is determined the website of this solicited message request access; According to the website of determining, from joiningPut the supertext pretreatment language PHP configuration information that obtains this website in information database; And will obtainPHP configuration information be carried in this solicited message, this solicited message is forwarded to Web server;
Described Web server receives after this solicited message, according to the PHP configuration information pair wherein carryingLocal PHP running environment is carried out dynamic-configuration; Afterwards, the PHP running environment after dynamic-configurationMove corresponding PHP shell script according to this solicited message, and according to operation result generating web page to describedClient is returned.
4. method as claimed in claim 3, is characterized in that, described by the PHP configuration information obtainingBe carried in this solicited message, specifically comprise:
The HTTP that the PHP configuration information obtaining is carried at this solicited message by described load-balancing device asksAsk in head.
5. the method as described in claim 3 or 4, is characterized in that, in described PHP configuration information, wrapsDraw together: PHP code directory information, PHP program run mode information.
6. method as claimed in claim 5, is characterized in that, described according in the solicited message receivingThe PHP configuration information carrying carries out dynamic-configuration to local PHP running environment; Afterwards, through dynamicPHP running environment after configuration is moved corresponding PHP shell script according to this solicited message, specifically comprises:
Described Web server according to the PHP code directory information in described PHP configuration information to this localityThe PHP code directory information of PHP running environment be configured, according in described PHP configuration informationPHP program run mode information the PHP program run mode of local PHP running environment is carried outConfiguration;
PHP running environment after dynamic-configuration, according to the PHP code directory information of dynamic-configuration,Determine current PHP code directory; And according to the PHP program identification of carrying in this solicited message,In described current PHP code directory, find after corresponding PHP shell script, according to dynamic-configurationPHP program run mode, the PHP shell script that operation finds.
7. method as claimed in claim 6, is characterized in that, described PHP configuration information also comprises:Use the quota information of resource; And
Described according to the PHP configuration information that carries in the solicited message receiving to local PHP running environmentCarrying out dynamic-configuration also comprises:
Described Web server according to the quota information of described use resource to local PHP running environment instituteThe related resource using is configured.
8. a load-balancing device, is characterized in that, comprising:
Solicited message parsing module, for the solicited message receiving is resolved, according to asking from describedAsk the address information parsing in information to determine the website of this solicited message request access;
Configuration information acquisition module, for the website of determining according to described request information analysis module, fromIn described configuration information database, obtain the supertext pretreatment language PHP configuration information of this website;
Solicited message forwarding module, for the PHP configuration information that described configuration information acquisition module is obtainedBe carried in this solicited message, this solicited message is forwarded to Web server.
9. a Web server, is characterized in that, comprising:
Solicited message parsing module, for the solicited message receiving is resolved, therefrom parses instituteState the PHP configuration information that solicited message is carried;
Dynamic-configuration module and PHP running environment module, described dynamic-configuration module is for asking according to describedAsk the configuration information that information analysis module parses goes out to carry out dynamic-configuration to described PHP running environment module;
Described PHP running environment module, for after dynamic-configuration, is moved according to described request informationCorresponding PHP shell script, and according to operation result generating web page the letter that returns as described request informationBreath.
10. Web server as claimed in claim 9, is characterized in that, described PHP configuration informationComprise: PHP code directory information, PHP program run mode information; And
Described PHP running environment module specifically comprises:
Program is searched unit, for according to the PHP code directory information of dynamic-configuration, determines currentPHP code directory; And according to the PHP program identification of carrying in this solicited message, at described current PHPIn code directory, find corresponding PHP shell script;
Program running unit, for according to the PHP program run mode information of dynamic-configuration, described in operationProgram is searched the PHP shell script that unit finds, and asks as described according to operation result generating web pageAsk the return information of information.
CN201310222399.3A 2013-06-05 2013-06-05 Load-balancing device, Web server and solicited message processing method and system Active CN103338233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310222399.3A CN103338233B (en) 2013-06-05 2013-06-05 Load-balancing device, Web server and solicited message processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310222399.3A CN103338233B (en) 2013-06-05 2013-06-05 Load-balancing device, Web server and solicited message processing method and system

Publications (2)

Publication Number Publication Date
CN103338233A CN103338233A (en) 2013-10-02
CN103338233B true CN103338233B (en) 2016-05-11

Family

ID=49246327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310222399.3A Active CN103338233B (en) 2013-06-05 2013-06-05 Load-balancing device, Web server and solicited message processing method and system

Country Status (1)

Country Link
CN (1) CN103338233B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183629B (en) * 2014-05-29 2018-06-22 北京基调网络系统有限公司 The diagnostic system and its method and performance management platforms of analysis PHP application software performances
CN104539724A (en) * 2015-01-14 2015-04-22 浪潮(北京)电子信息产业有限公司 Information processing method and system
CN107168726B (en) * 2017-03-30 2021-04-27 武汉斗鱼网络科技有限公司 Method and device for dynamically configuring application program
CN107688990A (en) * 2017-09-29 2018-02-13 深圳市前海景耀健旅科技有限公司 A kind of corporate client customization group builds travelling platform operation management system
CN108989390B (en) * 2018-06-19 2020-11-10 北京智明星通科技股份有限公司 User request forwarding method and device, reverse proxy server and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905701A (en) * 2006-08-08 2007-01-31 钟杨 Method and system for issuing network message to mobile terminal apparatus
CN102426594A (en) * 2011-10-31 2012-04-25 沈文策 Method and system for operating database
CN102915360A (en) * 2012-10-17 2013-02-06 北京奇虎科技有限公司 System for presenting related information of websites
CN202771479U (en) * 2012-09-12 2013-03-06 天津市府易科技有限公司 LAMP framework based intelligent campus electronic commerce platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905701A (en) * 2006-08-08 2007-01-31 钟杨 Method and system for issuing network message to mobile terminal apparatus
CN102426594A (en) * 2011-10-31 2012-04-25 沈文策 Method and system for operating database
CN202771479U (en) * 2012-09-12 2013-03-06 天津市府易科技有限公司 LAMP framework based intelligent campus electronic commerce platform
CN102915360A (en) * 2012-10-17 2013-02-06 北京奇虎科技有限公司 System for presenting related information of websites

Also Published As

Publication number Publication date
CN103338233A (en) 2013-10-02

Similar Documents

Publication Publication Date Title
US9942307B2 (en) Web application script migration
CN103338233B (en) Load-balancing device, Web server and solicited message processing method and system
US8543713B2 (en) Computing environment arranged to support predetermined URL patterns
US8826276B1 (en) Multi-threaded virtual machine processing on a web page
CN108984170B (en) H5 page multi-language rendering method and device
US9590859B2 (en) Discovering resources of a distributed computing environment
KR20170038793A (en) Fast rendering of websites containing dynamic content and stale content
CN107948314B (en) Business processing method and device based on rule file and server
US9088462B2 (en) Common web accessible data store for client side page processing
CN110968824A (en) Page data processing method and device
CN110442815A (en) Page generation method, system, device and computer readable storage medium
CN109936605B (en) Method and device for loading interface data
CN109683998B (en) Internationalization realization method, device and system
CN109254804A (en) A kind of static resource loading method, device, equipment and readable storage medium storing program for executing
CN109428872B (en) Data transmission method, equipment, server, starting method and system
US10528625B2 (en) Client cloud synchronizer
CN103440281A (en) Method, device and equipment for acquiring download file
US10554770B2 (en) Dynamic cognitive optimization of web applications
CN107391528B (en) Front-end component dependent information searching method and equipment
CN109710604A (en) Data processing method, device, system, computer readable storage medium
US10341454B2 (en) Video and media content delivery network storage in elastic clouds
CN107341263B (en) Static page data processing method and device
Fang et al. Cloud computing: virtual web hosting on infrastructure as a service (IAAS)
CN110765392A (en) Data loading method and device, storage medium and terminal
US10599740B1 (en) Program code streaming

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant