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>



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM