1 | wget https://github.com/ttkzw/mod_remoteip-httpd22/raw/master/mod_remoteip.c |
加入:Include conf/extra/httpd-remoteip.conf
在/etc/httpd/conf
下创建extra
文件夹
创建httpd-remoteip.conf
文件,
内容如下:
1 | LoadModule remoteip_module modules/mod_remoteip.so |
然后service httpd restart