深入apache host的配置详解

yipeiwu_com6年前PHP代码库
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.127.0.0.1
    DocumentRoot "D:/dev/Apache2.2/docs/dummy-host.127.0.0.1"
    ServerName dummy-host.127.0.0.1
    ServerAlias www.dummy-host.127.0.0.1
    ErrorLog "logs/dummy-host.127.0.0.1-error.log"
    CustomLog "logs/dummy-host.127.0.0.1-access.log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.127.0.0.1
    DocumentRoot "D:/dev/Apache2.2/docs/dummy-host2.127.0.0.1"
    ServerName dummy-host2.127.0.0.1
    ErrorLog "logs/dummy-host2.127.0.0.1-error.log"
    CustomLog "logs/dummy-host2.127.0.0.1-access.log" common
</VirtualHost>

 

相关文章

PHP中file_exists使用中遇到的问题小结

PHP中file_exists使用中遇到的问题小结

介绍 我发现了一个问题,今天与大家分享。我把整个过程描述一下。 问题:公司有个框架是基于smarty写的,我负责php的升级,维护人员把新环境布上来之后,测试人员找我提出经常报错(错误:...

php中file_get_contents()函数用法实例

我们先来看一下php中的 file_get_contents()函数的语法 string file_get_contents(string $ filename,bool $ inc...

PHP读取CURL模拟登录时生成Cookie文件的方法

PHP读取CURL模拟登录时生成Cookie文件的方法

本文实例讲述了PHP读取CURL模拟登录时生成Cookie文件的方法。分享给大家供大家参考。具体实现方法如下: 在使用PHP中的CURL模拟登录时会保存一个Cookie文件,例如下面的代...

PHP+Ajax实时自动检测是否联网的方法

本文实例讲述了PHP+Ajax实时自动检测是否联网的方法。分享给大家供大家参考。具体实现方法如下: html部分代码: <!DOCTYPE html PUBLIC "-//W3...

9个比较实用的php代码片段

比较有用的php代码片段,分享给大家供大家参考,具体代码如下 一、从网页中提取关键词 $meta = get_meta_tags('http://www.emoticode.net...