Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Application Load Balancer
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • L7 load balancer logs
  • FAQ about Application Load Balancer
  • Release notes

In this article:

  • How do I log client IP addresses on a web server?
  • Why do I get a no_routeerror when switching between domains?
  • Why is the route missing after I apply the ingress configuration?

FAQ about Application Load Balancer

Written by
Yandex Cloud
Updated at November 11, 2026
View in Markdown
  • How do I log client IP addresses on a web server?
  • Why do I get a no_routeerror when switching between domains?
  • Why is the route missing after I apply the ingress configuration?
  • How do I log client IP addresses on a web server?
  • Why do I get a no_route error when switching between domains?
  • Why is the route missing after I apply the ingress configuration?

How do I log client IP addresses on a web server?How do I log client IP addresses on a web server?

Application Load Balancer provides the source IP address of an HTTP request in the X-Forwarded-For header. To log this address on the backend web server, add this header to the log format.

Nginx
Apache HTTP Server

In the http section, define a log format using the $http_x_forwarded_for variable. Then, specify the format name in the access_log directive:

log_format alb '$remote_addr - $remote_user [$time_local] "$request" '
               '$status $body_bytes_sent "$http_referer" '
               '"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log alb;

If the access_log directive is already defined in the server or location section, set its format to alb as well.

In the LogFormat directive, the header is indicated as %{X-Forwarded-For}i. This format is used in CustomLog:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{X-Forwarded-For}i\"" alb
CustomLog "logs/access_log" alb

Log file paths depend on the web server configuration. After you apply the configuration and restart the web server, the header will be written to the request logs. If the request passes through intermediate proxies, the header may contain multiple IP addresses.

In Yandex Network Load Balancer, the source IP address is preserved by default. For a LoadBalancer Kubernetes service, set externalTrafficPolicy: Local to keep the client IP address unchanged on the backend. For more on creating a network load balancer, see this guide.

Why do I get a error when switching between domains?Why do I get a no_routeerror when switching between domains?

The no_route error means that the request does not match any route in the load balancer’s HTTP routers.

If multiple domains resolve to the same IP address and are covered by a single TLS certificate, the browser may reuse an existing connection when switching between domains. The SNI handler is not reselected, so the request may be routed to a different HTTP router. For information about configuring certificates and virtual hosts, see Listener.

Why is the route missing after I apply the ingress configuration?Why is the route missing after I apply the ingress configuration?

You can identify the cause by checking the Application Load Balancer ingress controller logs. For more on how to check the created load balancer and select the controller pod, see this guide on applying the configuration.

If your static public IP address quota has been exceeded, a load balancer with a public IP address may not be created. However, this is only one possible cause, as resource configuration issues can also lead to errors. Increase the quota only if the logs confirm that it has been exceeded.

Was the article helpful?

Previous
L7 load balancer logs
Next
Release notes
© 2026 Direct Cursus Technology L.L.C.