Apache 虚拟主机配置案例

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Apache 虚拟主机配置案例相关的知识,希望对你有一定的参考价值。

NameVirtualHost *:80
<VirtualHost *:80>
    ServerAdmin [email protected]free.com
    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
        DirectoryIndex index.html index.php index.htm
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin [email protected]free.com
    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 虚拟主机配置案例的主要内容,如果未能解决你的问题,请参考以下文章

linux下配置apache多站点访问-小案例

Apache虚拟主机案例演示

如何配置 Apache 的虚拟主机

Express实战 - 应用案例- realworld-API - 路由设计 - mongoose - 数据验证 - 密码加密 - 登录接口 - 身份认证 - token - 增删改查API(代码片段

如何在Macbook上配置Apache虚拟主机

配置apache虚拟主机