apache 多站点配置(httpd.conf简单示例)
下面建立一个Apache里的httpd.conf中建立了一个站点,其接受localhost:8080地址访问,并添加了两个虚拟目录/bbs,/phpmyadmin。
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"
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
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
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
页:
[1]