apache 多站点配置(httpd.conf简单示例)
2012-11-02 08:45
417 查看
下面建立一个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>
<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>
相关文章推荐
- Apache主配置文件httpd.conf简单解释
- Apache本机不同端口多站点配置:httpd-vhosts.conf
- Apache多个域名默认执行了配置文件httpd.conf下第一个站点
- Apache本机不同端口多站点配置:httpd-vhosts.conf(转载)
- Apache服务以及httpd.conf配置详解
- apache httpd.conf配置
- Apache配置文件httpd.conf细说
- 关于APACHE的配置文件httpd.conf[转](二)
- visualsvn server apache中的httpd.conf配置
- apache httpd.conf配置文件设置关联php文件
- Apache配置文件详解之httpd.conf
- apache检测httpd.conf 配置文件错误行语句
- Apache配置文件httpd.conf内容翻译
- apache开启虚拟主机功能与httpd-vhosts.conf 配置分享
- apache开启虚拟主机与httpd-vhosts.conf配置
- linux上安装apache以及httpd.conf基本配置
- linux上安装apache以及httpd.conf基本配置
- Apache中httpd.conf 配置详解
- Apache服务以及httpd.conf配置详解
- ApacheHttpServer修改httpd.conf配置文件