解决了30分
apache 记录的是内部网关的ip地址,不是访问人的公网ip地址,要怎么改呢
路由器
|
交换机
|
服务器#more httpd.conf
<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-Forwarded-For}i\"" combined
#LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%h %l %u %t \"%r\" %>s %b" \"%{X-Forwarded-For}i\"" common <IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{X-Forwarded-For}i\" %I %O"" combinedio
</IfModule> #
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# containerhttp://www.fongyuen.com, they will be logged here.Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog "logs/access_log" combined CustomLog "|/usr/local/sbin/cronolog /usr/local/httpd/logs/access_%Y%m%d.log" combined
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog "logs/access_log" combined
</IfModule>
路由器什么情况路由器是飞塔http://www.msharing.com的,我看不太懂路由器设置有问题吧,怎么把源ip给改了原帖由 marsteel 于 2009-7-24 22:25 发表 http://bbs3.chinaunix.net/images/common/back.gif
路由器设置有问题吧,怎么把源ip给改了 有的路由器或者路由器软件在端口映射的时候是会修改源IP的谢谢大家,搞定了,路由器的问题,把进来的地址也给转换为网关地址了,现在可以了:lol:楼主很不厚盗啊,说的30分只给了2分,
体验新版博客