多语言展示
当前在线:1947今日阅读:152今日分享:13

apache配置虚拟主机

apache配置虚拟主机
工具/原料

apache

方法/步骤
1

Apache配置虚拟主机方法在windows和linux有些差异,这里给大家讲解如何在windows上配置Apache虚拟主机,此方法主要适用于独立的Apache环境。首先,在httpd.conf下开启虚拟主机功能找到配置项# Virtual hosts                                                                                                         #Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf  修改为# Virtual hosts                                                                                            Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf

2

开发时,httpd-vhosts.conf可以参考如下配置ServerAdmin fudesign2008@163.comDocumentRoot 'F:\workspace\vim\YNote\src'    ServerName editor.fuyg.cn    ServerAlias editor.fuyg.cn    ErrorLog 'logs/dummy-host.localhost-error.log'    CustomLog 'logs/dummy-host.localhost-access.log' combined            Options Indexes FollowSymLinks        AllowOverride All         Order allow,deny        Allow from all   

推荐信息