Apache 虚拟主机配置案例
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Apache 虚拟主机配置案例相关的知识,希望对你有一定的参考价值。
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot
"/usr/local/apache/htdocs"
ServerName www.
free
.com
ErrorLog
"logs/www.free.com.error.log"
CustomLog
"logs/www.free.com.access.log"
combined
<Directory
"/usr/local/apache/docs"
>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<
/Directory
>
<
/VirtualHost
>
<VirtualHost *:80>
DocumentRoot
"/data/html/wordpress"
ServerName blog.
free
.com
#ServerAlias blog1.free.com
ErrorLog
"logs/blog.free.com.error.log"
CustomLog
"logs/blog.free.com.access.log"
combined
<Directory
"/data/html/wordpress"
>
Options Indexes FollowSymLinks
DirectoryIndex index.html index.php index.htm
AllowOverride None
Order allow,deny
Allow from all
<
/Directory
>
<
/VirtualHost
>
本文出自 “眼眸刻着你的微笑” 博客,请务必保留此出处http://dengaosky.blog.51cto.com/9215128/1855311
以上是关于Apache 虚拟主机配置案例的主要内容,如果未能解决你的问题,请参考以下文章
Express实战 - 应用案例- realworld-API - 路由设计 - mongoose - 数据验证 - 密码加密 - 登录接口 - 身份认证 - token - 增删改查API(代码片段