apache 多站点配置(httpd.conf简单示例)
下面建立一个Apache里的httpd.conf中建立了一个站点,其接受localhost:8080地址访问,并添加了两个虚拟目录/bbs,/phpmyadmin。
<VirtualHost *:8080>
ServerName localhost
DocumentRoot "D:/KDSOLUTION/KDNLTP/webapp"
Alias /bbs "E:/php_proj/Discuz_X2_SC_GBK/upload"
Alias /phpmyadmin "E:/php_proj/phpMyAdmin-3.5.3-all-languages/phpMyAdmin-3.5.3-all-languages"
<Directory "D:/KDSOLUTION/KDNLTP">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.shtml index.aspx default.aspx
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
<Directory "E:/php_proj/phpMyAdmin-3.5.3-all-languages/phpMyAdmin-3.5.3-all-languages">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.shtml index.aspx default.aspx
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
<Directory "E:/php_proj/Discuz_X2_SC_GBK/upload">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.shtml index.aspx default.aspx
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>

浙公网安备 33010602011771号