Solutions for multiple domain names corresponding to one IP address

Source: Internet
Author: User
One IP address corresponds to multiple domain names & lt; VirtualHost & nbsp; www. domain name 1: 80 & gt; & nbsp; ServerAdmin & nbsp; [email & #160; protected] & nbsp; & nbsp; DocumentRoot & nbsp; optlampphtdocs domain name 1 Directory & nbsp one IP address corresponds to multiple domain names
 
  
ServerAdmin [email protected]
DocumentRoot/opt/lampp/htdocs/domain name 1 Directory
ServerName www. domain name 1
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order deny, allow
# Alow From all




ServerAdmin [email protected]
DocumentRoot/opt/lampp/htdocs/domain name 2 Directory
ServerName www. domain name 2
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order deny, allow
# Alow From all




ServerAdmin [email protected]
DocumentRoot/opt/lampp/htdocs/domain name 3 directory
ServerName www. domain name 3
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order deny, allow
# Alow From all


The problem is that the first two Enis jump to the content of the first domain name when accessing 3rd domain names... ..


------ Solution ----------------------
For Internet configuration, check domain name resolution
For internal network configuration, check The etc hosts file under win.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.