CN106027295A - Hosting method and hosting system for static website - Google Patents
Hosting method and hosting system for static website Download PDFInfo
- Publication number
- CN106027295A CN106027295A CN201610323100.7A CN201610323100A CN106027295A CN 106027295 A CN106027295 A CN 106027295A CN 201610323100 A CN201610323100 A CN 201610323100A CN 106027295 A CN106027295 A CN 106027295A
- Authority
- CN
- China
- Prior art keywords
- memory space
- cloud storage
- website
- trustship
- storage end
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
- H04L41/0253—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
- H04L41/0273—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a hosting method for a static website. The hosting method comprises the following steps: acquiring a storage space identifier and a first object name from a request of a client, finding a corresponding storage space and a corresponding first object, setting the storage space as a hosting website, wherein the access ULR and a page index directory of the hosting website are determined according to the storage space identifier, and setting the first object as the home page of the hosting website. By adopting the hosting method, the home page of the hosting website can be configured without being limited by the index file name (must be index.html).
Description
Technical field
It relates to cloud storage field, it is specifically related to trustship method and the mandatory system of static website.
Background technology
Object is stored in the spring tide of the Internet and receives wide concern, and has obtained rapid development.
Object storage is different from file storage, and object is not organized with the structure of directory hierarchy.Each right
As being all located at being referred to as the same level in the flat space of storage pool, each element of every one-level exists
Having unique mark in storage system, user accesses container or object by this mark.
Flat data organizational structure is used to abandon the file of nesting, it is to avoid to safeguard huge directory tree.
Big data and Internet era, the file/object of storage exceedes up to a million, in the unit interval
Access times and concurrent visit capacity have also reached unprecedented magnitude, in this case, catalogue
Tree brings the biggest expense and problems can to storage system, becomes the bottleneck of system.Other one
The individual factor allowing object storage shine vitality is, object storage does not reoffer the compatible interface of POSIX
(such as open, close, read, write etc.), but HTTP can be passed through easily
Restful api interface and object interact: carry out uploading download by PUT and GET, pass through
DELETE deletes.
When carrying out object storage, user is firstly the need of for one memory space of object application
(bucket), then object is uploaded in a memory space (bucket), under follow-up
Carry and use.After static website trustship refers to that user creates a bucket in object stores,
The ACL of this bucket is arranged to public-read (the most readable), and uploads follow-up
Each object (being generally the static Web pages such as html) is arranged to public-read, allows user's energy
Enough static web contents having access to very easily be deployed in cloud storage, here it is described is quiet
State trustship website.
In this website, in order to allow user more easily have access to content of pages, it is common that user
Orientation bucket name+domain name, i.e. may have access to its homepage, such as user and creates an entitled web
Bucket be used for storing static page, and all objects in bucket and bucket itself are set
For public-read state, the homepage of the most publicly-owned cloud storage is s3.cloud.com, then Yong Hufang
When asking web.s3.cloud.com, then return 302 to user so that this request is jumped to a name
For on the page of web.s3.cloud.com/index.html, this index.html i.e. this static state is held in the palm
The homepage at pipe network station.
But such scheme has a problem, it is simply that corresponding right of User Defined homepage can not allowed
As name, i.e. user must comply with this constraint of index.html, and this is not the most square
Just.
Summary of the invention
In view of this, the disclosure provides trustship method and the mandatory system of a kind of static website, so that
Solve one of the problems referred to above less.
According to the first aspect of the disclosure, the disclosure provides a kind of trustship method of static website, bag
Include:
Set up from client to the communication connection of cloud storage end;
Receiving the request of described client, described request includes memory space identifier and first right
The title of elephant;
Judge described first object in the memory space that described memory space identifier is corresponding whether
Exist;
If described first object exists, then at the memory space that described memory space identifier is corresponding
The WEB service program utilizing described cloud storage end arranges trustship website;
Wherein, the access URL of described trustship website and page index catalogue are according to described memory space
Identifier determines, described first object is set to the homepage of described trustship website.
Preferably, also include: the static page in described static trustship website is stored described cloud
Storage end.
Preferably, the entitled character arbitrarily meeting html page Naming conventions of described first object
String.
Preferably, also include: according to the request of described client, by the homepage of described trustship website
It is revised as the second object.
Preferably, also include: according to the request of described client, the incorrect navigation page is set.
According to the second aspect of the disclosure, the disclosure provides the management system of a kind of static website, bag
Include multiple client and cloud storage end,
Described client includes:
Communication connection is set up with described cloud storage end;
Sending request to described cloud storage end, described request includes memory space identifier and first
The title of object;And
Accept the return result of described cloud storage end;
Described cloud storage end includes:
Communication connection is set up with described client;
Receiving the request of described client, described request includes memory space identifier and first right
The title of elephant;
Judge described first object in the memory space that described memory space identifier is corresponding whether
Exist;
If described first object exists, then at the memory space that described memory space identifier is corresponding
The WEB service program utilizing described cloud storage end arranges trustship website;
Wherein, the access URL of described trustship website and page index catalogue are according to described memory space
Identifier determines, described first object is set to the homepage of described trustship website.
Preferably, described cloud storage end also includes: receive the request of client, by described static torr
Static page in pipe network station stores described cloud storage end.
Preferably, the entitled character arbitrarily meeting html page Naming conventions of described first object
String.
Preferably, described cloud storage end also includes: receive the request of client, by described trustship net
The homepage stood is revised as the second object.
Preferably, described cloud storage end also includes: receives the request of client, arranges incorrect navigation
The page.
The trustship method of the static website that the disclosure provides, obtains storage sky from the request of client
Between identifier and the title of the first object, find correspondence memory space and the first object, should
Memory space is set to trustship website, wherein, the access URL of trustship website and page index catalogue root
Determine according to memory space identifier, the homepage of trustship website is set according to the first object.By this torr
Pipe method, makes the homepage of trustship website to configure, and (is not necessary for by index file name
Index.html) limit.
Accompanying drawing explanation
By referring to the following drawings description to disclosure embodiment, the disclosure above-mentioned and other
Objects, features and advantages will be apparent from, in the accompanying drawings:
Fig. 1 is the schematic diagram of the mandatory system of the static website according to disclosure embodiment;
Fig. 2 is the flow chart of the trustship method of the static website according to disclosure embodiment;
Fig. 3 is the signal that the client according to disclosure embodiment and cloud storage end set up communication connection
Figure.
Detailed description of the invention
Below based on embodiment, the disclosure is described, but the disclosure is not restricted to these
Embodiment.During details the most of this disclosure describes, detailed describe some specific detail portion
Point.The description not having these detail sections for a person skilled in the art can also understand this completely
Open.In order to avoid obscuring the essence of the disclosure, known method, process, flow process are the most in detail
Narration.Additionally accompanying drawing is not necessarily drawn to scale.
In the description of the disclosure, it is to be understood that term " first ", " second " etc. are only
For descriptive purposes, and it is not intended that instruction or hint relative importance.
Fig. 1 is the schematic diagram of the mandatory system of the static trustship website according to disclosure embodiment.Institute
State management system and include client 100 and cloud storage end 101.Here, client can be one
Mobile phone A PP, or video system, the front end of electricity quotient system system or rear end program.Cloud storage end is the most permissible
Cloud service system including software and hardware combining.
Here it is possible to the memory area of cloud storage end 101 is regarded as a network SAN (Storage
Area Network), i.e. the high-speed storage network of a centralized management, is stored by multi-provider
System, storage management software, apps server and network hardware composition.Cloud storage end uses
Memory space (bucket) and objects on data store.Bucket can be interpreted as container,
Each object is deposited in a vessel, and as shown in Fig. 1 102, cloud storage end is by memory block
Territory is divided into several bucket, and in each bucket, storage has multiple object.Bucket uses storage
Spatial identifier is as unique mark.
In existing cloud storage technology, cloud storage end a memory space can be set to static network
Stand entrusted management model, and by this static website of memory space domain name access.
With reference to shown in Fig. 1, the static page of static trustship website in the bucket1 of 102.Static
The page does not has interactive function, is served only for display information.In order to client is able to access that in bucket1
Static page, need to be set to website custody form, i.e. arrange access URL, index path,
Access homepage and incorrect navigation file etc..As, cloud storage end is provided with index pages and is
Index.html, the mistake page is error.html, and website URL is similar to and is:
http://bucket1.xxx.xxx.com。
It is implemented as: in client is asked, comprise memory space identifier and the name of the first object
Claim.After cloud storage termination receives this request, it is judged that memory space corresponding to memory space identifier and
Whether the first object exists, if it does, utilize WEB service program to arrange website custody, configures WEB
Service, determines access URL and the page index catalogue of trustship website according to memory space identifier, will
First object is set to the homepage of trustship website.Alternatively, set by Apache and Tomcat cooperation
Put above-mentioned WEB service.
Fig. 2 is the flow chart of the object storage method according to disclosure embodiment.Described object stores
Method includes step 202-205.
In step 202., set up from client to the communication connection of cloud storage end.
Fig. 3 shows that mobile phone A PP and cloud storage end set up the process that secure communication connects.Mark
Note 30 is client, and labelling 31 is right management server, is managed by client access authority
Server.When needs carry out high in the clouds storage, client passes through step 301 to rights management service
Device sends a high in the clouds authorization requests, after right management server receives, forwards to cloud storage end,
After cloud storage end verifies, return temporary Authorization ID or access token (Access token),
Right management server receives this mandate ID or access token, returns to client.Client will
This mandate ID or access token are buffered in this locality, and are deposited by this mandate ID or access token and cloud
Chu Duan is communicatively coupled.In order to ensure to authorize ID or access token are not abused or steal, such
Authorizing ID or access token to be generally provided with time restriction, having spent the scheduled time ceases to be in force automatically.
In step 203, the request of client is received.
In step 204, it is judged that whether the first object exists in corresponding memory space.If
First object exists in corresponding memory space, performs step 205.
In step 205, the WEB service program utilizing cloud storage end arranges trustship website.Wherein,
Access URL and the page index catalogue of trustship website is determined according to memory space identifier, right by first
As arranging the homepage of trustship website.
In the disclosed embodiments, the title of the first object is sent to asking of cloud storage end from client
Asking middle acquisition, if needing to change the homepage of trustship website, client can submit amendment request to,
Homepage is revised another object (this object also must store in corresponding memory space).Separately
Outward, the title of the first object is not limited to index.html, can be arbitrarily to meet HTML name rule
The character string of model.As, Mybucket1.html before amendment, and be MyWebSite.html after revising.
These amendments can be realized by the configuration file amendment of WEB service program.Thus, client pair
The request of trustship website is directly navigated to homepage.Alternatively, it is also possible to according to the request of user, for
Trustship website arranges any incorrect navigation page (corresponding error.html).
The trustship method of the static website that the disclosure provides, obtains storage sky from the request of client
Between identifier and the title of the first object, find correspondence memory space and the first object, should
Memory space is set to trustship website, wherein, the access URL of trustship website and page index catalogue root
Determining according to memory space identifier, the homepage of trustship website determines according to the first object.By this torr
Pipe method, makes the homepage of trustship website to configure, and (is not necessary for by index file name
Index.html) limit.
Flow chart in accompanying drawing, block diagram illustrate the system of disclosure embodiment, method, device
Possible System Framework, function and operation, the square frame on flow chart and block diagram can represent one,
Program segment or only one section of code, described, program segment and code are all used to realize regulation logic
The executable instruction of function.It should also be noted that the described executable instruction realizing regulation logic function
Can reconfigure, thus generate new and program segment.Therefore the square frame of accompanying drawing and square frame order
It is used only to preferably illustrate process and the step of embodiment, and should be in this, as to invention itself
Restriction.
Each or unit of system can pass through hardware, firmware or software and realize.Software such as includes
Use the encoding procedure that the various programming languages such as JAVA, C/C++/C#, SQL are formed.Although in method
And provide the step of disclosure embodiment and the order of step in method legend, but described step
The executable instruction of the rapid logic function realizing regulation can reconfigure, thus generates new step.
The step that the order of described step also should not be restricted solely in described method and method legend is suitable
Sequence, can according to function need be adjusted at any time.Such as by parallel for some step therein or
Perform according to reverse order.
System and method according to the disclosure can be deployed on single or multiple server.Such as,
Private server can be formed by different deployment respectively on a different server.Or, can
The functional unit identical with distributed deployment on multiple servers or system, to alleviate load pressure
Power.Described server is included but not limited at same LAN and is connected by Internet
Multiple PCs, PC server, rolling reamer machine, supercomputer etc..
The foregoing is only preferred embodiment of the present disclosure, be not limited to the disclosure, for this
For skilled person, the disclosure can have various change and change.All spirit in the disclosure
Any modification, equivalent substitution and improvement etc. with being made within principle, should be included in the disclosure
Within protection domain.
Claims (10)
1. a trustship method for static website, including:
Set up from client to the communication connection of cloud storage end;
Receiving the request of described client, described request includes memory space identifier and first right
The title of elephant;
Judge described first object in the memory space that described memory space identifier is corresponding whether
Exist;
If described first object exists, then at the memory space that described memory space identifier is corresponding
The WEB service program utilizing described cloud storage end arranges trustship website;
Wherein, the access URL of described trustship website and page index catalogue are according to described memory space
Identifier determines, described first object is set to the homepage of described trustship website.
Trustship method the most according to claim 1, also includes: by described static trustship website
In static page store described cloud storage end.
Trustship method the most according to claim 1 and 2, wherein, the name of described first object
It is referred to as the character string arbitrarily meeting html page Naming conventions.
Trustship method the most according to claim 1, also includes: asking according to described client
Ask, the homepage of described trustship website is revised as the second object.
Trustship method the most according to claim 1, also includes: asking according to described client
Ask, the incorrect navigation page is set.
6. a management system for static website, including multiple clients and cloud storage end,
Described client includes:
Communication connection is set up with described cloud storage end;
Sending request to described cloud storage end, described request includes memory space identifier and first
The title of object;And
Accept the return result of described cloud storage end;
Described cloud storage end includes:
Communication connection is set up with described client;
Receiving the request of described client, described request includes memory space identifier and first right
The title of elephant;
Judge described first object in the memory space that described memory space identifier is corresponding whether
Exist;
If described first object exists, then at the memory space that described memory space identifier is corresponding
The WEB service program utilizing described cloud storage end arranges trustship website;
Wherein, the access URL of described trustship website and page index catalogue are according to described memory space
Identifier determines, described first object is set to the homepage of described trustship website.
Mandatory system the most according to claim 6, described cloud storage end also includes: receive visitor
The request of family end, stores described cloud storage end by the static page in described static trustship website.
8. according to the mandatory system described in claim 6 or 7, wherein, the name of described first object
It is referred to as the character string arbitrarily meeting html page Naming conventions.
Trustship method the most according to claim 6, described cloud storage end also includes: receive visitor
The request of family end, is revised as the second object by the homepage of described trustship website.
Mandatory system the most according to claim 6, described cloud storage end also includes: receive
The request of client, arranges the incorrect navigation page.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610323100.7A CN106027295A (en) | 2016-05-16 | 2016-05-16 | Hosting method and hosting system for static website |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610323100.7A CN106027295A (en) | 2016-05-16 | 2016-05-16 | Hosting method and hosting system for static website |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106027295A true CN106027295A (en) | 2016-10-12 |
Family
ID=57097425
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610323100.7A Pending CN106027295A (en) | 2016-05-16 | 2016-05-16 | Hosting method and hosting system for static website |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106027295A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110401719A (en) * | 2019-07-30 | 2019-11-01 | 成都摹客科技有限公司 | Method, apparatus, system and the storage medium of web terminal upload data |
CN112468614A (en) * | 2020-12-14 | 2021-03-09 | 深圳市瑞云科技有限公司 | Method for automatically identifying access style supported by object storage |
CN112995357A (en) * | 2021-04-21 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Domain name management method, device, medium and electronic equipment based on cloud hosting service |
CN114553826A (en) * | 2022-01-11 | 2022-05-27 | 阿里巴巴(中国)有限公司 | Domain name management method, domain name management device, electronic apparatus, domain name management medium, and program product |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102577237A (en) * | 2010-12-20 | 2012-07-11 | 华为技术有限公司 | Method for scheduling web hosting service, method for processing application access, apparatus and system thereof |
CN103201734A (en) * | 2010-11-09 | 2013-07-10 | 瑞典爱立信有限公司 | Context-aware content delivery |
-
2016
- 2016-05-16 CN CN201610323100.7A patent/CN106027295A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103201734A (en) * | 2010-11-09 | 2013-07-10 | 瑞典爱立信有限公司 | Context-aware content delivery |
CN102577237A (en) * | 2010-12-20 | 2012-07-11 | 华为技术有限公司 | Method for scheduling web hosting service, method for processing application access, apparatus and system thereof |
Non-Patent Citations (2)
Title |
---|
XXS673076773: "如何修改TOMCAT的默认主页为你自己项目的主页", 《ITEYE 博客》 * |
百度: "如何修改Tomcat的默认主页为你自己项目的主页", 《百度经验》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110401719A (en) * | 2019-07-30 | 2019-11-01 | 成都摹客科技有限公司 | Method, apparatus, system and the storage medium of web terminal upload data |
CN112468614A (en) * | 2020-12-14 | 2021-03-09 | 深圳市瑞云科技有限公司 | Method for automatically identifying access style supported by object storage |
CN112468614B (en) * | 2020-12-14 | 2022-09-30 | 深圳市瑞云科技有限公司 | Method for automatically identifying access style supported by object storage |
CN112995357A (en) * | 2021-04-21 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Domain name management method, device, medium and electronic equipment based on cloud hosting service |
CN112995357B (en) * | 2021-04-21 | 2021-07-23 | 腾讯科技(深圳)有限公司 | Domain name management method, device, medium and electronic equipment based on cloud hosting service |
CN114553826A (en) * | 2022-01-11 | 2022-05-27 | 阿里巴巴(中国)有限公司 | Domain name management method, domain name management device, electronic apparatus, domain name management medium, and program product |
CN114553826B (en) * | 2022-01-11 | 2023-10-17 | 阿里巴巴(中国)有限公司 | Domain name management method, device, electronic equipment, medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11290337B2 (en) | Hybrid cloud identity mapping infrastructure | |
KR101583356B1 (en) | Method of using cloud storages through home gateway and home gateway used therein | |
US9880838B2 (en) | Generating and managing applications using any number of different platforms | |
CN107111605B (en) | Method and system for managing file access | |
RU2012155862A (en) | ONLINE SURVEILLANCE CONTROLS USING EXTENDED SIGNS OF THE CATALOG | |
CN106027295A (en) | Hosting method and hosting system for static website | |
US20140123142A1 (en) | System and method for providing data analysis service in cloud environment | |
CN105959416A (en) | Private cloud storage system based on container technology | |
CN106027615A (en) | Object storage method and system | |
Shao et al. | Geoprocessing on the Amazon cloud computing platform—AWS | |
CN106294870A (en) | Object-based distributed cloud storage method | |
Selonen et al. | Mixed reality web service platform | |
CN106201351A (en) | A kind of storage method based on object storage and server | |
CN105978944A (en) | Object storage method and device | |
Munke et al. | Data system and data management in a federation of HPC/Cloud centers | |
Chen et al. | Grid computing enhances standards-compatible geospatial catalogue service | |
CN106095341A (en) | Method for managing object and Object Management System | |
CN106202370A (en) | A kind of method and system carrying out water conservancy diversion in cloud object stores | |
CN106021607A (en) | Management method for static hosting web site and management system | |
CN105915524A (en) | Object management method and object management system | |
Wrzeszcz et al. | Effective and scalable data access control in onedata large scale distributed virtual file system | |
CN105930506A (en) | Object retrieval method and object storage system | |
Yu et al. | An architecture for cloud-based consumer support software-as-a-service | |
KR20100103954A (en) | Webhard community system and method based on personal storage device | |
CN106210039A (en) | Method for managing object, client and cloud server terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161012 |