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>
    

      

  • 相关阅读:
    20170519
    20170515
    20170511
    20170509
    20170505
    使用 FirewallD 构建动态防火墙
    Elasticsearch 5.2.1Cluster 搭建
    elk,centos7,filebeat,elasticsearch-head详细安装步骤
    elk,centos7,filebeat,elasticsearch-head集成搭建
    memcached
  • 原文地址:https://www.cnblogs.com/zst062102/p/7478928.html
Copyright © 2011-2022 走看看