zoukankan      html  css  js  c++  java
  • apache多站点vhost.conf配置

    #第1个站点的配置
    <VirtualHost *:80>
        DocumentRoot "D:/phpStudy/WWW"
        ServerName localhost
    	<Directory "D:/phpStudy/WWW">
    		    Options +Indexes +FollowSymLinks +ExecCGI
    		    Order Allow,Deny
    		    Allow from all
    
    		    DirectoryIndex index.php index.html
    		  
    #		    当前目录,允许“分布式”权限布置
    		    AllowOverride all
    	</Directory>
    </VirtualHost>
    
    #第2个站点的配置
    <VirtualHost *:80>
    	ServerName	www.xuexi.com
    #   设定该站点的域名,即通过以下域名访问
    	ServerAlias map.xuexi.com  tv.xuexi.com
    	DocumentRoot	"D:/phpStudy/WWW/xuexi/day1"
    	<Directory "D:/phpStudy/WWW/xuexi/day1">
    	    Options +Indexes +FollowSymLinks +ExecCGI
    	    Order Allow,Deny
    	    Allow from all
    
    	    DirectoryIndex index.html index.php
    	  
    	    #当前目录,允许“分布式”权限布置
    	    AllowOverride all
    	</Directory>
    
    	#设置目录别名(虚拟目录)
    	Alias  /zst  "D:/phpStudy/WWW/tp3.2.3"
    	<Directory "D:/phpStudy/WWW/tp3.2.3">
    	    Options +Indexes +FollowSymLinks +ExecCGI
    	    Order Allow,Deny
    	    Allow from all
    
    	    DirectoryIndex index.html index.php
    	  
    	    #当前目录,允许“分布式”权限布置
    	    AllowOverride all
    	</Directory>
    	
    </VirtualHost>
    
    #第3个站点的配置
    <VirtualHost *:80>
        DocumentRoot "D:/phpStudy/WWW/tp3.2.3"
        ServerName www.zstphp.com
    	<Directory "D:/phpStudy/WWW/3.2.3">
    		    Options +Indexes +FollowSymLinks +ExecCGI
    		    Order Allow,Deny
    		    Allow from all
    
    		    DirectoryIndex index.php index.html
    		  
    #		    当前目录,允许“分布式”权限布置
    		    AllowOverride all
    	</Directory>
    </VirtualHost>
    

      

  • 相关阅读:
    使用mail架包发送邮件javax.mail.AuthenticationFailedException: failed to connect at javax.mail.Service.connec
    java容器 Map Set List
    COJ 1686:记忆化搜索
    POJ 3694:桥
    COJ 1685:贪心+set
    COJ 1687:Set
    COJ 1684:线段树
    POJ 3693:RMQ+后缀数组
    URAL 1297:后缀数组求最长回文串
    POJ 1743:后缀数组
  • 原文地址:https://www.cnblogs.com/zst062102/p/7478928.html
Copyright © 2011-2022 走看看