全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1892|回复: 9
打印 上一主题 下一主题

[经验] 发个 LiteSpeed的网站配置文件,包括awstats可用

[复制链接]
跳转到指定楼层
1#
发表于 2010-9-18 16:54:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <virtualHostConfig>
  3.   <docRoot>$VH_ROOT/www/imcat</docRoot>
  4.   <adminEmails></adminEmails>
  5.   <enableGzip>1</enableGzip>
  6.   <logging>
  7.     <log>
  8.       <useServer>0</useServer>
  9.       <fileName>$VH_ROOT/logs/imcat.error.log</fileName>
  10.       <logLevel>DEBUG</logLevel>
  11.       <rollingSize>10M</rollingSize>
  12.     </log>
  13.     <accessLog>
  14.       <useServer>0</useServer>
  15.       <fileName>$VH_ROOT/logs/imcat.access.log</fileName>
  16.       <pipedLogger></pipedLogger>
  17.       <logHeaders></logHeaders>
  18.       <rollingSize>100M</rollingSize>
  19.       <keepDays>7</keepDays>
  20.       <bytesLog></bytesLog>
  21.       <compressArchive>0</compressArchive>
  22.     </accessLog>
  23.   </logging>
  24.   <index>
  25.     <useServer>0</useServer>
  26.     <indexFiles>index.php,index.htm,index.html</indexFiles>
  27.     <autoIndex>0</autoIndex>
  28.     <autoIndexURI>/_autoindex/default.php</autoIndexURI>
  29.   </index>
  30.   <customErrorPages>
  31.     <errorPage>
  32.       <errCode>404</errCode>
  33.       <url>/error404.html</url>
  34.     </errorPage>
  35.   </customErrorPages>
  36.   <htAccess>
  37.     <allowOverride>31</allowOverride>
  38.     <accessFileName>.htaccess</accessFileName>
  39.   </htAccess>
  40.   <expires>
  41.     <enableExpires>1</enableExpires>
  42.     <expiresDefault></expiresDefault>
  43.   </expires>
  44.   <security>
  45.     <hotlinkCtrl>
  46.       <enableHotlinkCtrl>0</enableHotlinkCtrl>
  47.       <suffixes>gif,  jpeg,  jpg</suffixes>
  48.       <redirectUri></redirectUri>
  49.       <allowDirectAccess>1</allowDirectAccess>
  50.       <onlySelf>1</onlySelf>
  51.       <allowedHosts></allowedHosts>
  52.     </hotlinkCtrl>
  53.     <accessControl>
  54.       <allow>*</allow>
  55.       <deny></deny>
  56.     </accessControl>
  57.     <realmList>
  58.       <realm>
  59.         <type>file</type>
  60.         <name>SampleProtectedArea</name>
  61.         <userDB>
  62.           <location>$VH_ROOT/conf/htpasswd</location>
  63.           <maxCacheSize>200</maxCacheSize>
  64.           <cacheTimeout>60</cacheTimeout>
  65.         </userDB>
  66.         <groupDB>
  67.           <location>$VH_ROOT/conf/htgroup</location>
  68.           <maxCacheSize>200</maxCacheSize>
  69.           <cacheTimeout>60</cacheTimeout>
  70.         </groupDB>
  71.       </realm>
  72.     </realmList>
  73.   </security>
  74.   <rewrite>
  75.     <enable>0</enable>
  76.     <logLevel>0</logLevel>
  77.     <rules>RewriteCond %{HTTP_USER_AGENT}  ^NameOfBadRobot
  78. RewriteRule ^/nospider/         -   [F]</rules>
  79.   </rewrite>
  80.   <frontPage>
  81.     <enable>0</enable>
  82.     <disableAdmin>0</disableAdmin>
  83.     <domainNames></domainNames>
  84.   </frontPage>
  85.   <awstats>
  86.     <updateMode>2</updateMode>
  87.     <workingDir>$VH_ROOT/awstats</workingDir>
  88.     <awstatsURI>/awstats/</awstatsURI>
  89.     <siteDomain>imcat.in</siteDomain>
  90.     <siteAliases>127.0.0.1</siteAliases>
  91.     <updateInterval>86400</updateInterval>
  92.     <updateOffset>0</updateOffset>
  93.     <securedConn>0</securedConn>
  94.     <realm>SampleProtectedArea</realm>
  95.   </awstats>
  96. </virtualHostConfig>
复制代码
$VH_ROOT 等于Virtual Host Root的路径

评分

参与人数 5威望 +45 收起 理由
老包子 + 5 精品文章
live + 5 原创内容
tumour + 20 感谢分享
wske + 10 精品文章
iamtime + 5 精品文章

查看全部评分

2#
发表于 2010-9-18 17:17:38 | 只看该作者
还是写教程吧,配置文件更不会用。
3#
发表于 2010-9-18 17:21:49 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
4#
发表于 2010-9-18 17:57:42 | 只看该作者
极度支持
5#
发表于 2010-9-18 18:28:57 | 只看该作者
支持一下
6#
发表于 2010-9-19 09:02:15 | 只看该作者
又看到大脸早饭差点都吐出来了.
7#
 楼主| 发表于 2010-9-19 09:34:51 | 只看该作者

回复 6# 的帖子

哈哈哈..我是自动屏蔽他的头像的
8#
发表于 2010-9-19 09:35:16 | 只看该作者
支持一下
9#
发表于 2010-9-19 09:38:14 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
10#
发表于 2010-9-19 09:41:21 | 只看该作者
支持
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-12-16 15:29 , Processed in 0.152630 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表