apache如何设置alias

demo如下【在httpd.conf设置】:

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
#
# uncomment out the below to deal with user agents that deliberately
# violate open standards by misusing DNT (DNT *must* be a specific
# end-user choice)
#
#<IfModule setenvif_module>
#BrowserMatch "MSIE 10.0;" bad_DNT
#</IfModule>
#<IfModule headers_module>
#RequestHeader unset DNT env=bad_DNT
#</IfModule>
LoadModule php5_module "D:/phptools/php5.6/php5apache2_4.dll"
AddType application/x-httpd-php .php .html .htm
PHPIniDir "D:\phptools\php5.6"
#Alias /WebFront "D:\Apache24\htdocs\WebFront"
#<Directory "D:\Apache24\htdocs\WebFront">
# Options Indexes FollowSymLinks
# AllowOverride None
# Order allow,deny
# Allow from all
#</Directory>

Alias /WebFront "E:\KingLive\phpProjects\WebFront"
<Directory "E:\KingLive\phpProjects\WebFront">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Alias /EShopSite "E:\PhpDevelop\EShopSite"
<Directory "E:\PhpDevelop\EShopSite">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

你可能感兴趣的:(apache如何设置alias)