|
|
下面是我的http.conf中的代码,大家看看有什么问题??
<IfModule mod_proxy.c>
ProxyRequests On
< roxy *>
Order deny,allow
Deny from all
Allow from 192.168.0.0/24
</Proxy>
#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On
#
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
CacheRoot "/etc/httpd/proxy"
CacheSize 6
CacheGcInterval 4
CacheMaxExpire 24
CacheLastModifiedFactor 0.1
CacheDefaultExpire 1
NoCache a-domain.com another-domain.edu joes.garage-sale.com
</IfModule>
# End of proxy directives.
这下面是启动出错的信息:
httpd failed. The error was: Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 998 of /etc/httpd/conf/httpd.conf:
Invalid command 'CacheRoot', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]
他说的998行就是CacheRoot那一行,我的这个目录本来没有 ,我mkdir 后他还是这样说,难道是我没有加载什么模块?
还有刚开始我写的Allow from 192.168.0.0/254,他有错误,为什么Allow from 192.168.0.0/24就没有错误?192.168.0.0/24是什么意思,我的网络是从192.168.0.1到192.168.0.255的 |
|