Home > Backend Development > PHP Tutorial > windows 域名+虚拟目录 (php)

windows 域名+虚拟目录 (php)

WBOY
Release: 2016-06-23 14:29:00
Original
986 people have browsed it


1.修改windows 域名
C:\WINDOWS\system32\drivers\etc\hosts
127.0.0.1       localhost

192.168.0.100   abc
127.0.0.2    a

2.修改apache的虚拟目录
C:\xampp\apache\conf\extra\httpd-vhosts.conf

 ServerName tradesns
 DocumentRoot D:/tradesns
 
  Options FollowSymLinks IncludesNOEXEC Indexes
  DirectoryIndex index.html index.htm default.htm index.php default.php
  AllowOverride all
  Order Deny,Allow
  Allow from all
 

 


 ServerName a
 DocumentRoot D:/tradesns2
    
     Options FollowSymLinks IncludesNOEXEC Indexes
     DirectoryIndex index.html index.htm default.htm index.php default.php
     AllowOverride all
     Order Deny,Allow
     Allow from all
    

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