Home > Database > Mysql Tutorial > body text

mysql-apache怎样在局域网自定义多域名,访问多站点?

WBOY
Release: 2016-06-06 09:45:57
Original
1125 people have browsed it

mysqlphpwampapache

windows xp,apache2,mysql5,php5,在本地自定义了多域名.
local.web1.com;
local.web2.com;
local.web3.com;
httpd.conf定义过.hosts文件修改过了.
我在本机浏览器输入不同的站点.local.web1.com,local.web2.com,local.web3.com分别访问三个站点是没有问题的.

但是我在局域网的其他电脑上改过hosts文件,浏览器输入不同的站点.local.web1.com,local.web2.com,local.web3.com都只能访问local.web1.com.和用ip访问是一样的.请问如何也在其他电脑上也输入不同的站点时,正确访问不同的站点呢?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template