论坛风格切换切换到宽版
  • 6196阅读
  • 2回复

[问题求助][RedHat] 请教一个关于安装awstats的问题 [复制链接]

上一主题 下一主题
离线coolke.
 
发帖
2022
C币
-140624
威望
384
贡献值
1
银元
-3
铜钱
4664
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
我的httpd服务运行正常,为.了监控服务器的运行状况,想安装awstats,下载的最新版本是6.8版本,安装的时候提示如.下:服务器

-----> U.pdat.e mode.l config file '/opt/www/html/awstats/wwwroot/cgi-bin/awstats.model.conf'电影
  File awstats.mod.el.conf updat.ed.--- 印刷

-----> Need to cr.eate .a new config file ?.
D.o you want me .to build a new AWStats config/profile(广告)
f.ile (required if. first install) [y/N] ? y--------------彩票

-----..> Define config file name to create学习
What is the name of your web site or profile .analy.sis ?.
Example: www.mys.ite.com投资
Example: demo
Your w.eb site, virtual server or profile na.me:           建材
> 19.2.168.1.99:80[成人用品]

-.----> Define c.onfig file path教育
In which directory d.o you plan to store your .config file(s) ?            杀毒
Default: /etc/awstat.s--------------彩票
Directory .path to store config file(s) (Enter. for default):.
>

-----> Create config file '/etc/awstats/awstats.192..168.1.99:8.0.conf'电影
Config file ./etc/awstats/awstats.192.168.1..99:80.conf created.服务器

-----.> Restart Web server with '/sbin/service httpd .restart'[成人用品]
httpd: Syntax error on .line 1145 of /etc/httpd/conf/httpd.conf: /etc/httpd/co.nf/httpd.conf:1145: <Virtua.lHos.t> was not closed.[成人用品]
关闭? htt.pd?       .                                    [正常].
启动    httpd?                                     ..     [不正常].

---.--> Add update process inside a sc.heduler投资
Sorry, confi.gure.pl does not support automatic add .to cron yet.外贸
You can do it. manually by adding the f.ollowing command to your cron:投资
/.opt/www/html/awstats/wwwro.ot/cgi-bin/awstats.p.l -update -config=192.168.1.99:80    外汇
Or .if you have several config files and prefer having only one com.mand:.
/o.pt/www/html/awstats/tools/awstats_upd.ateall.pl now             汽车
Press ENTER. t.o continue... <性病>


A SIMPLE config file has been created: /etc/awstats./awstat.s.192.168.1.99:80.c.onf电脑
You should ha.ve a look inside to check and change manua.lly main parameters.域名
You can th.en man.ua.lly update your statistics for '192.168.1.99:80' with command:教育
> perl. awstats.pl -update -config.=192.168.1.99:80外贸
Yo.u can also read your statistics for '192..168.1.99:80' with URL:学习
> http://localhost/awstats/awstats.pl?config=192.168.1.99:80           女人

Press ENTE.R to finish...外贸

[root@server too.ls]# --- 印刷
老是提示虚拟主机这个地方有问题,我确实设置了虚拟主机,我现在的网站都是架构.于虚拟主机上面.的,总不能停掉吧。。。服务器

大家看看我的htt.pd..conf配置(虚拟主机这段)--------------彩票
NameVirtualHo.s.t 192.168.1.99:80教育
   1079. #.NameVirtualHost 222.108.5.118:80--- 印刷
   1080 #RewriteEngine o.n    健康
   1081 #R.ewriteRule ^/test1/u.ser.php$. https://www.test.com/test1/user.php [R,L]             电子
   1082 #
   1083 .# NOTE: NameVirtualHost cannot be us.ed without a port specifier<性病>
   1084 # (e.g.. :80) if mod_ssl is being used, due to the n.ature of the          婚庆
   1085 # SSL p.rotocol.投资
  . 10.86 #NameVirtualHost 192.168.1.99:443.
   1087
   1088 #
   1089 #
   1090 # V.irtualHost exampl.e:电影
   1091 # Almost any Apach.e directive may go into a VirtualHost conta.iner..
   1092 #. The first VirtualHost sec.tion is used for request.s without a known.
.  1093 # server name..
   1094 #
   1095
   109.6 <VirtualHos.t www.test.com:80>外贸
   1097.     ServerAdmin webm.aster@dummy-host.example.com电脑
  . 1098     Do.cumentRoot /opt/www/html投资
   1099     ServerNam.e www.tes.t.com.
   1100     ErrorLog .lo.gs/test.com-error_log虚拟主机
   1101     CustomLog logs/test.com-access_log. commo.n    健康
   110.2     ProxyReq.uests Off           建材
   .1103     <Proxy *>             汽车
   1104  .     Orde.r Deny,Allow.
   1105.       Allow fro.m all[成人用品]
   1106     </Pr.oxy>外贸
   1107     ProxyPass /test1app/*/   http://192.168.1.101/[成人用品]
   1108     proxyPassReverse /test1app/*/   http://192.168.1.101/            杀毒
   1109
   1110     ProxyPass /test1app/weatherserver/ http://192.168.1.101/             电子
   1111     ProxyPassReverse /test1app/weatherserver/ http://192.168.1.101/(广告)
   1112     ProxyPass /test1app/dbserver/  http://192.168.1.101/             电子
   1113     ProxyPassReverse /test1app/dbserver/ http://192.168.1.101/.
   1114     ProxyPass  /mobiletest   http://192.168.1.101/EFC-album-Web--- 印刷
   1115     ProxyPassReverse  /mobiletest http://192.168.1.101/EFC-album-Web.
   1116     ProxyPass         /103   http://192.168.1.103:8080虚拟主机
   1117     ProxyPassReverse  /103   http://192.168.1.103:8080<性病>
   1118     ProxyPass         /101/security   http://192.168.1.101/security(        游戏          )
   1119     ProxyPassReverse  /101/security   http://192.168.1.101/security.
   1120     ProxyPass         /58             http://192.168.1.58:8088电脑
   1121     ProxyPassReverse  /58             http://192.168.1.58:8088             电子
   1122 #    ProxyPass         /102/8080             http://192.168.1.102:8080(        游戏          )
   1123 #    ProxyPassReverse  /102/8080            http://192.168.1.102:8080--------------彩票
   1124 #    ProxyPass         /102/8090             http://192.168.1.102:8090.
   1125 #    ProxyPassReverse  /102/8090            http://192.168.1.102:8090.
   1126 </Virt.ualHost>虚拟主机
   1127
   1.128 <VirtualHos.t office.test.com:80>.
   1129   .  ServerAdmin  zhoushengwen@test..com健康
   1130     DocumentRoot /opt/www/html/t.est.1.
   1131     ServerName.  .office.test.com.
   1132    . <Directory />投资
   1133         Order D.e.ny,Allow投资
   1134         Den.y f.rom all域名
   1135       .  Allow from test.com  192..168.1投资
   1136     </Direc.tory>投资
   1137     <Pro.xy *>           女人
   1138    .     Ord.er Deny,Allow投资
   11.39         .Deny from all投资
   1140         Allow fr.om 192.16.8.1  test.com.
   1.141     </Proxy>.
   .1142.     ErrorLog logs/office.test1.cn-error_log<性病>
   1143  .   CustomLog  logs/office.test1.cn-access_log common.          婚庆
   1144     ProxyPass         /             http://192.168.1.100/              乙肝
   1145     ProxyPassReverse  /            http://192.168.1.100/--------------彩票
  . 1146 </VirtualHost>域名
   1147 <Virtu..alHost mail.test.com:80>             电子
  . 1148    ServerAdmin zhou.s@test.com.
   1149  .  DocumentRoo.t /opt/www/html/mail服务器
   1150.    ServerName mail.test.co.m--------------彩票
   1151    ErrorLog logs/.openwe.bmail.log           鲜花
   1152    Cust.omLog logs/openwebmail.log commo.n
   1153 </Virtua.lHost>.

请问我该怎么设置才能使aws.tats正常             电子

[ 本帖最后由 zjnx 于 2.008-10-3. 14:03 编辑 ].

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线sk19880221.
发帖
2128
C币
-152225
威望
402
贡献值
1
银元
-3
铜钱
4827
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
Re:[RedHat]
httpd: Syntax error on line 1145 of /etc/httpd/conf/httpd.conf: /etc/httpd/conf/httpd.conf:1145: <VirtualHost> was not closed.
虚拟主机没有关闭

可是看你写的1146行确实是关闭了的
注意检查下拼写之类的错误吧

离线dm15.
发帖
2010
C币
-60893
威望
371
贡献值
1
银元
-1
铜钱
4454
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
Re:[RedHat]
恩。谢谢楼上的,呜。。。我检查了好多遍,就是不知道问题出在那?难道是里面的代理映射不能实现还是
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个