Install Advanced Logging in IIS and configure X-Forwarded-,

Source: Internet
Author: User

Install Advanced Logging in IIS and configure X-Forwarded-,

: Https://www.microsoft.com/en-gb/download/details.aspx? Id = 7211

1. Start the IIS manager and click the server name on the left. (Note: Do not click the site or virtual directory under the website. Otherwise, the following content cannot be found"Enable Advanced Logging");

2. on the homepage, double-click"Advanced Logging";

3. Click"Enable Advanced Logging"(Enable advanced logging );

4. Click"Edit Logging Fields"(Edit log fields );

5. In"Edit Logging Fields"In the window, click "Add Field" and enter the following information;

Field ID input "ClientSourceIP ";

Select "Default" for Category ";

Select "Request Header" for Source type ";

Source name input "X-Forwarded-";

6. Click "Add Log Definition" (Add Log Definition) in the action pane on the right );

7. Enter "Client Source IP" in the "Base file name" field, click "Select Fields", Select "ClientSourceIP", and click "application" to return to the home page;

8. Restart IIS (iisrest command ).

Note: Click View Log Files to View the Log Path ".

 

Thank you for your criticism.

Address: http://www.cnblogs.com/zhangtingzu/p/7300457.html

References: https://www.loadbalancer.org/blog/iis-and-x-forwarded-for-header/

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.