Domain name setting method and device

A domain name and intermediate domain name technology, applied in the computer field, can solve problems such as low security, inability to access, and network administrators' global access strategy cannot start, etc., to achieve rich functions, reduce consumption, improve operability and security Effect

Inactive Publication Date: 2016-12-07
LETV HLDG BEIJING CO LTD +1
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the commonly used way to set personalized domain names is the way of htaccess files. The disadvantage of using .htaccess is that when the system has hundreds of directories, and each directory has a corresponding .htaccess file, the network administrator will How to configure the global access policy can not st

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Domain name setting method and device
  • Domain name setting method and device
  • Domain name setting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] refer to figure 1 , a schematic flowchart of an embodiment of a domain name setting method, including the following steps,

[0028] Step S1, rewriting the pseudo domain name of the target user in the load balancing server as an intermediate domain name stored in the directory of the real domain name corresponding to the pseudo domain name, and redirecting the intermediate domain name to the spring mvc project;

[0029] Step S2, the spring mvc project finds the user ID of the target user in the database according to the preset corresponding rules and the intermediate domain name, rewrites the intermediate domain name into a real domain name according to the user ID, and redirects to The true domain name.

[0030] At the application level, the method of using a load balancing server such as nginx with spring mvc is rewritten in the load balancing server as an intermediate domain name saved in the directory corresponding to the real domain name corresponding to the pseudo...

Embodiment 2

[0032] An embodiment of a domain name setting method includes the following steps,

[0033] The false domain name of the target user is rewritten as the intermediate domain name under the directory of the real domain name corresponding to the false domain name in the load balancing server, and the intermediate domain name is redirected to the spring mvc project;

[0034] The spring mvc project finds the user ID of the target user in the database according to the preset corresponding rules and the intermediate domain name, rewrites the intermediate domain name into a real domain name according to the user ID, and redirects to the real domain name. domain name.

[0035] The intermediate domain name is configured in a new directory in the load balancing server and set in the new directory. Such as personalized domain name http: / / c.letv.com / jing In a load balancing server such as nginx, it will be rewritten to the http: / / c.letv.com / profile / directory and become http: / / c.letv....

Embodiment 3

[0067] refer to Figure 5 , a domain name setting device, including a configuration unit 10 and a redirection unit 11,

[0068] The configuration unit 10 rewrites the false domain name of the target user in the load balancing server as an intermediate domain name stored in the directory of the real domain name corresponding to the false domain name, and redirects the intermediate domain name to the spring mvc project;

[0069] The spring mvc project of the redirection unit 11 finds the user identification of the target user in the database according to the preset corresponding rules and the intermediate domain name, and rewrites the intermediate domain name into a real domain name according to the user identification , the spring mvc project redirects to the real domain name.

[0070] At the application level, the method of nginx and spring mvc is adopted, and the configuration unit 10 uses pseudo-static and redirection functions in nginx to rewrite the pseudo-domain name of ...

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

PUM

No PUM Login to view more

Abstract

The invention discloses a domain name setting method and device. The domain name setting method comprises the following steps: rewriting a pseudo domain name of a target user in a load balancing server to an intermediate domain name saved in a directory of a real domain name corresponding to the pseudo domain name, and redirecting the intermediate domain name to a spring mvc project; and searching the user identifier of the target user in a database by the spring mvc project according to a preset correspondence rule and the intermediate domain name, rewriting the intermediate domain name to the real domain name according to the user identifier, and redirecting to the real domain name. As the load balancing server can improve the stability of the server, enrich the server functionality, and reduce system resource consumption, and the spring mvc project can forcefully separate input, processing and output of an application program, domain names are not easy to cover; and through the combination of the load balancing server and the spring mvc project, the maneuverability and the security are improved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a domain name setting method and device. Background technique [0002] Personalized domain names are very popular now. For example, the personal homepage of a celebrity is http: / / chuang.letv.com / u / 6087402. This page is not easy to remember. This homepage can be viewed without user login. Play a better dissemination effect. So I want to use a domain name that everyone can remember, for example: someone's name is Jing, and she wants to set up this domain name http: / / c.letv.com / jing, which is easier to remember. [0003] At present, the commonly used way to set personalized domain names is the way of htaccess files. The disadvantage of using .htaccess is: when the system has hundreds or thousands of directories, and each directory has a corresponding . How to configure the global access policy is unclear. At the same time, because the .htaccess file is very easy to be overwritten, it is...

Claims

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

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/12H04L29/08G06F17/30
CPCH04L61/3025G06F16/955H04L67/1001
Inventor 谢晓静
Owner LETV HLDG BEIJING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products