XAMPP Apache配置
来源:互联网 发布:手机淘宝店铺关注链接 编辑:程序博客网 时间:2024/05/22 08:02
一、E:\xampp\apache\conf下 httpd.conf 的配置如下
1、将 Include conf/extra/httpd-vhosts.conf 前边的注释去掉
2、设置根目录 DocumentRoot "E:/workspace"
<Directory "E:/workspace">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
二、E:\xampp\apache\conf\extra下 httpd-vhosts.conf 的配置如下
<VirtualHost *:80>
ServerAdmin www.statistics.com
DocumentRoot "E:/workspace/Sma_Statistics/MarketingManage"
ServerName statistics.com
ServerAlias www.statistics.com
ErrorLog "logs/web.log"
CustomLog "logs/web.log" common
</VirtualHost>
如果项目路径不是根目录,则需加上以下红色部分配置
<VirtualHost *:80>
ServerAdmin www.tp.com
DocumentRoot "E:/workspace1/TPStudy"
<Directory />
AllowOverride All
Order deny,allow
Allow from all
Require all granted
</Directory>
ServerName tp.com
ServerAlias www.tp.com
ErrorLog "logs/web.log"
CustomLog "logs/web.log" common
</VirtualHost>
三、C:\Windows\System32\drivers\etc下 hosts 的配置如下
127.0.0.1 www.tp.com
- xampp的Apache配置
- XAMPP Apache配置
- xampp/apache多站点配置
- mac xampp apache php 配置
- 集成xampp,apache站点配置
- php+apache+phpmyadmin配置-> 推荐工具:XAMPP
- 【反向代理】xampp apache配置反向代理
- Linux-CentOS XAMPP Apache配置多端口
- 在xampp中的Apache配置虚拟主机
- XAMPP下apache,多站点配置
- xampp apache 本机多虚拟机配置
- XAMPP, Apache
- XAMPP Apache 配置多端口和多域名方法
- XAMPP Apache 配置多端口和多域名方法
- XAMPP Apache 配置多端口和多域名方法
- xampp+apache+php:局域网中访问网站配置过程
- XAMPP Apache 配置多端口和多域名方法
- Apache(XAMPP)+mod_wsgi+Django的安装与环境配置
- Lync 2013边缘服务器部署7—分配证书
- Java————数组
- “C++的数组不支持多态”?
- Lync 2013边缘服务器部署6—导入证书
- 如何画功能稳定,美观的PCB?
- XAMPP Apache配置
- Lync 2013边缘服务器部署5—向CA申请证书
- POJ 2406Power Strings
- H5中使用JS实现简易日历
- Java编程思想学习笔记(五) 第6章 访问权限控制
- redis3.2.2单机集群搭建
- Lync 2013边缘服务器部署4—生成证书申请文件
- 近实时运算的利器---presto在公司实践
- Lync 2013边缘服务器部署3—安装LYNC边缘