Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to get the configuration of real ip by Apache

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces Apache how to obtain the real ip configuration, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

The implementation method of obtaining the configuration of Real ip by Apache

Recently, due to the use of web application firewall products (Aliyun's), the real ip of users can not be obtained.

After various collection attempts, the scheme is as follows:

Apache2.4 provides its own remoteip module to obtain the real ip.

My environment is: ubunt16.04 Apache2.4.18

Cd / etc/apache2.mods-available

New profile

Vim remoteip.conf

Enter:

RemoteIPHeader X-Forwarded-ForRemoteIPProxiesHeader X-Forwarded-By

Save

Enable:

A2enmod remoteip

Restart apache to take effect.

Thank you for reading this article carefully. I hope the article "how to get the real ip configuration of Apache" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and follow the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report