Discover how to host email domain, include the articles, news, trends, analysis and practical advice about how to host email domain on alibabacloud.com
The CP console in a virtual host does not support the ability to bind a two-level domain name to a subdirectory, and the user can bind a two-level domain name to a subdirectory through a program implementation.There are two ways to bind a two-level domain name to a subdirectory:1. Configure. htaccess, implemented by ps
My blog and geoserver Chinese community has been in the same virtual host, has been done a jump, www. your domain name. com access to the words jump to http://www. Your domain name, com/wordpress, opengeo.cn domain name to access the word jump to Http://opengeo.cn/dz
Yesterday found a solution to solve, do not jump, w
Article Title: three virtual host configuration methods: IP, port, and domain name. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Virtual Hosts With the same IP address and different ports
1) vi/etc/http/conf/httpd. conf
2) Change the Listen field
Listen 80
A192.168.44.12Hadoop10 in A192.168.44.13hadoop11 in A192.168.44.14HADOOP12 in A192.168.44.15hadoop13 in A192.168.44.16hadoop14 in A192.168.44.17HADOOP15 in A192.168.44.18hadoop16 in A192.168.44.19 vim/var/named/192.168.44.zone$TTL86400@ in SOA hadoop.com. root.hadoop.com. (1997022700 ; Serial28800 ; Refresh14400 ; Retry3600000 ; Expire86400 ) ; minimum@ in NS Hadoop.1In PTR master.2In PTR Secondarynamenode.3In PTR admin.4In PTR hadoop01.5In PTR hadoop02.6In PTR hadoop03.7In PTR hadoop04.8In PTR
1. Configure DNS and search domain
The file that specifically configures DNS is/etc/resolv. conf; you can also specify it in the configuration file of NIC configurations such as ifcfg-eth0.
Example:
[Root @ instructor Desktop] # cat/etc/resolv. confSearch example.comNameserver 192.168.0.254[Root @ instructor Desktop] #
Ii. Configure the Host Name
[Root @ instructor Desktop] # cat/etc/sysconfig/networ
In recent days to learn Ajax, want to test the Ajax sample, because before the server leased in Ali expired, and then want to let the local host server and do the client, just simple test, should be OK.So, download the xampp, download the URL http://www.apachefriends.org, only need to unzip the installation of a fool to be able to.Locate the directory where the software is installed, click Xampp-control.exe and then launch the Apache service, open the
Get domain name or host address
echo $_server[' Http_host ']. "";
Get web Address
echo $_server[' php_self ']. "";
Get URL parameters
echo $_server["Query_string"]. "";
Get user Agent
echo $_server[' Http_referer ']. "";
Get the full URL
Echo ' http://' $_server[' http_host '].$_server[' Request_uri '];
Echo ' http://'. $_server[' http_host '].$_se
First, setAnalog domainwww.wang.org, blog.wang.org, bbs.wang.orgSite Folder/var/html/www,/var/html/blog,/var/html/bbsSecond, the implementation of the steps:1. Create a Web site folderWatermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center ">2. Write the content to three index . Easy to test3.cd to extra under the conf folder in ApacheWatermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve
out that this is a phrase
Exultation! Do not know why, this paragraph in the document is not, and then look down, the default is the host mechanism, and any host access, screenshots
In this way, we can use the domain binding to run the Tornado application, and support the multiple domain name, because that is a
1. The naming format of the domain name is: WWW. Explanation of the parsing process:· The DNS client contracted to the DNS server to request the IP address of the www.baidu.com due to a CNAME record;· The DNS client accesses the www.a.shifen.com domain name server (the equivalent of a domain name server that accesses www.baidu.com);· Here www.a.shifen.com
again, the browser will first pop up the authentication dialog box, only the correct user name and password can be entered to access the page3, domain-based virtual hostUse a httpd server to build two virtual web hosts www.benet.com and www.accp.com with an IP address of 192.168.30.15(1) Provide domain name resolution for virtual hostIn reality, you need to register the
Today in the study of PHP, there is such a requirement: an IP (such as: 127.0.0.1) and multiple domain names (virtual host) binding, the following is my solution:
Solution One: differentiate the different virtual hosts through the ports
① the way to bind a site
1. First Develop your own website (d:/myblog (stored in the D-disk MyBlog directory))
2. Configure the httpd.conf file (stored in the Conf fol
1, support multiple domain namesFor example, let mail.jbxue.org, smtp.jbxue.org, and pop3.jbxue.org all point to the same virtual host, which can be written as:
Copy Code code as follows:
ServerName mail.jbxue.org
Serveralias smtp.jbxue.org pop3.jbxue.org
ServerName is used to specify preferred domain names, and other
To configure the/etc/hosts file, the 192.168.1.209 corresponding domain name is as follows:192.168.1.209 www.name1.comEdit the configuration file for each domain name: ServerName www.name1.com DocumentRoot /var/www/html Options Indexes FollowSymLinks AllowOverride None Require all granted CentOS 7----Apache
Experimental background:
Contoso is currently a company that provides virtual hosts. Xiaonuo and Dreamfire want to request a virtual host on Contoso to provide Web services to their companies. The domain name required for the application is www.xiaonuo.com and www.dreamfire.com respectively. To conserve IP addresses, decide to use host headers to differentiate b
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.