# ============================================================================= # Apache (httpd) Reverse Proxy Configuration for CreditFair Admin # Copy this file to: /etc/httpd/conf.d/creditfair-admin.conf # ============================================================================= ServerName admin.creditfair.in # ServerAlias www.admin.creditfair.in ProxyPreserveHost On ProxyRequests Off # Increase timeout for PDF generation and long-running reports Timeout 300 ProxyTimeout 300 # Pass ALB health check directly to Docker container ProxyPass http://127.0.0.1:8003/health ProxyPassReverse http://127.0.0.1:8003/health # Forward all traffic to Docker Nginx on 127.0.0.1:8003 ProxyPass / http://127.0.0.1:8003/ ProxyPassReverse / http://127.0.0.1:8003/ # Forward ALB Client IP and Protocol headers RequestHeader set X-Forwarded-Proto "https" "expr=%{HTTP:X-Forwarded-Proto} == 'https'" RequestHeader setifempty X-Forwarded-Proto "http" # Logging ErrorLog /var/log/httpd/creditfair-admin-error.log CustomLog /var/log/httpd/creditfair-admin-access.log combined