Apache Service Set up virtual directory and multi-site, the same port with different IP domain name and the same IP with the different port number settings.

Source: Internet
Author: User
Tags server port

Tag: Address Web server port Create DDE Environment Multi-site pre profile

pache是一款Web服务器软件,有多种产品,可以支持SSL技术,支持多个虚拟主机。它快速、可靠并且可通过简单的API扩充,将Perl/Python等解释器编译到服务器中。实验环境一台linux6.5,ip为192.168.10.20.,DNS服务器ip地址为192.168.10.20;一、创建虚拟目录配置1、进入主配置文件设置


2、写入网页内容



3、去访问网页

4、创建虚拟目录


5、使用http://192.168.10.20/test/进行访问

二、搭建虚拟主机同端口同Ip不同域名1、创建文件写入内容

2、创建网站目录写入内容

3、安装DNS并设置主配置文件

4、区域数据文件设置

5、进入区域数据配置相关目录



6、重启服务

7、指出DNS服务器地址

8、登陆网页进行验证


三、搭建同ip同域名不同端口1、复制模板,修改端口号

2、修改Apache主配置文件


3、重启服务

4、验证

Apache Service Set up virtual directory and multi-site, the same port with different IP domain name and the same IP with the different port number settings.

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.