PhpStudy2016: Summary of problems encountered during the configuration of multiple domain names, phpstudy2016 Summary
Step 1
Add
Step 2 find the httpd. conf file under Apache to open it, remove the first line #
Step 3 configure the following content in the configuration file vhosts. conf of apache:
Restart Apache .... The
1. Create two domain name sites in advance
Separate the web1s and web2s, and separate the main pages web1.html and web2.html;
2. Enable httpd-vhosts.conf In the httpd. conf file
Remove #, that is
# Virtual hosts (virtual host) include CONF/extra/httpd-vhosts.conf
3. Set the http-vhosts.conf file (Path: X:/apachex. X/CONF/extra/http-vhosts.conf)
Add the following content:
# Configure the virtual host *: 80>D
Background:
Http://jzywh.cnblogs.com/archive/2005/09/29/246650.html
Many of my online users see this article.Article, According to my method, but still did not get the desired effect, in fact, some problems need to be noted, in my previous article, I only proposed the core content of the solution to this problem, some friends may encounter some problems in practical use. In fact, they can solve the problems based on their own experience. Here I will help you list some points to help you so
Problems are done in the construction of the project, recently done a domain name address anti-theft chain, you need to test the local domain name, simply modify your local hosts file on the line.Share with the needs.1. Modify the native Hosts file.Path: C:\Windows\System32\drivers\etc2. Open Local IIS and create a new project with the path pointing to the project you are currently developing.
Modify the contents of the Server.xml engine under the Conf folder toThe original content is as follows:...Enginename= "Catalina"Defaulthost= "localhost"> RealmClassName= "Org.apache.catalina.realm.UserDatabaseRealm"resourcename= "Userdatabase"/> Hostname= "localhost"AppBase= "WebApps"Unpackwars= "true"xmlvalidation= "false"Xmlnamespaceaware= "false"> Host> Engine>...Assume(1) You have only one IP address: 125.125.125.125(2) then made three websites: Baidu, Google, admin backstage
The Conf folder under the Tomcat directory, server.xml1. Modify the default WebApps1 name= "localhost" appBase= "WebApps" unpackwars= " True " autodeploy=" true ">2 ... 3 Host >AppBase can be modified to your site location such as: D:/web2. Modify the default directory rootSpecifically, with the content tag between 1 path= "" docBase= "/myweb" debug= "0" reloadable = "true"/>Path is the name of the virtual directory, if you want to enter
Nginx virtual hosts use different root Paths Based on different domain names
I. Application Scenario DescriptionTo meet the needs of development colleagues, Nginx in the development environment can use different root Paths Based on different domain names.
For example, if the domain
One server installed Apache, how to bind multiple domain names or websites?The simplest and most efficient method is as follows:1. First open the Apache configuration file httpd.conf, in this file,Find this sentence: "#Include etc/extra/httpd-vhosts.conf"(The path above will vary slightly depending on the installation path)Put the front of the melody, that is, the use of virtual host to open the function;2.
information (http://www.google.com/contact/spamreport.html ):(1) hidden text or links;(2) vocabulary that is easy to misunderstand or accumulate;(3) webpages that do not match google search;(4) disguised web pages;(5) redirect a fraudulent website to another site;(6) a webpage specifically designed for search engines;(7) copy the website or webpage.In addition, google considers it as a junk information and includes other aspects, if a webpage is fill
Document directory
1 Overview
2 prerequisites
3. Procedure
Technorati tags: IP, domain name
Bind two domain names to the same IP address1 Overview
Assume that two domain names www.test1.com and www.test2.com have been applied
For Apache, you only need to modify the apache configuration file.
For Apache, you only need to modify the apache configuration file/etc/httpd/conf/httpd. conf.
There is an example file in it. you only need to configure it.
#
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot/www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#
You can add at the bottom of http
After the Tomcat server is built, it is recommended that you bind the domain name to the server. The binding method is as follows: Domain binding requires editing the Tomcat configuration file to complete. The Tomcat configuration file is the installation directory for Tomcat Tomcat_home/conf/server.xml,tomcat_home.The original configuration file is as follows:Modify the above content to:The modified meanin
apache2.2.x version1. Note The doucumentroot in the master configuration file/etc/httpd/conf/httpd.conf" /var/www/html "2. Remove the main configuration file namevirtualhost the previous comment, add the local host name192.168. 136.131:3. If the servername is commented, or the default is localahost:80 or 127.0.0.1:80, it will be an error, but does not affect the use of the virtual host" stopping httpd: [ OK
DescriptionSite A domain: www.weba.com site A path: D:\website\webaWebsite b domain: www.webb.com website B path: D:\website\webbPublic host ip:111.222.333.444Both site A and site B are on hosts with IP 11.222.333.444, and are now required to access site A through www.weba.com and visit site B through www.webb.com.Implementation method:1. Open iis--"Right click on the website"-"add site, set as shown, click
Similar to the Apache virtual Host configuration under Windows platform, the only difference here is that the apache2 (installed through Apt-get) in Debian is in/etc/apache2
This article a space to teach you to implement multiple IP based on 127.0.0.* (Common network IP) to control the local virtual host, B space to teach you to implement a virtual host based on multiple domain names
The advantage of a is n
One server installed Apache, how to bind multiple domain names or websites?The simplest and most efficient method is as follows:1. First open the Apache configuration file httpd.conf, in this file,Find this sentence:#Include etc/extra/httpd-vhosts.conf(The path above will vary slightly depending on the installation path)Remove the previous #, that is, the use of virtual host to open the function;2. Configur
For example, the Host IP address is 192.168.1.1.
There are three domain names on your host:
Www.a.comPut webpage files in E:/web/www/1
Www. B .comPut webpage files in E:/web/www/2
Www.c.comPut webpage files in E:/web/www/3
Add httpd. conf to Apache
# Set different domain
Tomcat deploys multiple war package projects and configuration domain names
1. First, package the war project. First, use DOS to enter the project's root directory cd E:/XXX project/
2. Package command jar cvf XXX project. war */. (You can package all the jar files under lib or put the Jar files under lib to tomcat)
3. Okay. Here is our deployment.
3.1 put the pr
Introduction: This is a detailed page for configuring multiple domain names under the same IP address. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 327027 'rolling = 'no'>
1. Open c: \ appserv \ apache2.2 \ conf \ httpd. conf, find include CONF/extra/httpd-vhosts.conf, and remo
* to "namevirtualhost your server IP Address"3. There is a VM format at the end of the file,# # Serveradmin [email] [email protected] [/Email]# DocumentRoot/www/httpd/html/minidx.com# Servername minidx.com# Errorlog logs/minidx.com-error_log# Customlog logs/minidx.com-access_log common# Add:DocumentRoot usr/local/www/(default website path)Servername: Your Server IP AddressDocumentRoot usr/local/www/minidx.com/(website path)Servername minidx.com (your
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.