zoukankan      html  css  js  c++  java
  • apache配置域名子目录,访问不同子项目

    <VirtualHost *:443>
        DocumentRoot "E:/phpstudy/WWW/nextplus"
        ServerName local-main.com
        ServerAlias 
        SSLEngine on
        SSLCertificateFile "E:/phpstudy/Extensions/Apache2.4.39/conf/ssl/local-nextplus.nextmedia.com.crt"
        SSLCertificateKeyFile "E:/phpstudy/Extensions/Apache2.4.39/conf/ssl/local-nextplus.nextmedia.com.key"
        FcgidInitialEnv PHPRC "E:/phpstudy/Extensions/php/php7.2.9nts"
        AddHandler fcgid-script .php
        FcgidWrapper "E:/phpstudy/Extensions/php/php7.2.9nts/php-cgi.exe" .php
    	<Directory "E:/phpstudy/WWW/nextplus">
    		Options FollowSymLinks ExecCGI
    		AllowOverride All
    		Order allow,deny
    		Allow from all
    		Require all granted
    		DirectoryIndex index.php index.html
    	</Directory>
    	
    	Alias /archive "E:/phpstudy/WWW/nextplus-archive/public"
      	Alias /archive-static "E:/phpstudy/WWW/nextplus-archive/public/archive-static"
    	<Directory "E:/phpstudy/WWW/nextplus-archive/public">
    		Options FollowSymLinks ExecCGI
    		AllowOverride All
    		Order allow,deny
    		Allow from all
    		Require all granted
    		DirectoryIndex index.php index.html
    	</Directory>
    	
    	
    	Alias /api "E:/phpstudy/WWW/nextplus-archive-api/public"
    	<Directory "E:/phpstudy/WWW/nextplus-archive-api/public">
    		Options FollowSymLinks ExecCGI
    		AllowOverride All
    		Order allow,deny
    		Allow from all
    		Require all granted
    		DirectoryIndex index.php index.html
    	</Directory>
    </VirtualHost>
    
    
    
  • 相关阅读:
    C#笔记(Hex转JPG)
    rpm 和 yum 软件管理
    名称空间和作用域
    网络技术管理和进程管理
    RAID磁盘阵列
    CentOS7系统启动流程:
    磁盘lvm管理
    面向对象 异常处理
    自定义函数和调用函数 return返回值
    Python常用模块
  • 原文地址:https://www.cnblogs.com/qq917937712/p/11765053.html
Copyright © 2011-2022 走看看