深入apache host的配置详解

yipeiwu_com5年前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实现html标签闭合检测与修复方法

本文实例讲述了php实现html标签闭合检测与修复方法。分享给大家供大家参考。具体如下: html标签闭合检测与修复,说的有点大 , 并没有考虑的很完整,没有使用正则表达式, 适用于ht...

深入PHP获取随机数字和字母的方法详解

第一种方法复制代码 代码如下:<?php  $FileID=date("Ymd-His") . '-' . rand(100,999);  //$FileID为 &nbs...

php接口技术实例详解

本文实例讲述了php接口技术。分享给大家供大家参考,具体如下: 1.接口是一种特殊的抽象类,为什么这么说呢?如果一个抽象类中所有的方法都是抽象方法,那么我们就换一种称呼,称为“接口”。...

php图片加水印原理(超简单的实例代码)

文字水印: 复制代码 代码如下: $w = 80; $h = 20; $im = imagecreatetruecolor($w,$h); $textcolor = imagecolor...

PHP调用Linux的命令行执行文件压缩命令

前几天工作中,需要将3个txt文件,打包成*.zip down到本地…… 一开始,我和普通青年一样,想到用PHP内置的 ZipArchive,代码看起来应该是这样的: 复制代码 代码如下...