We have put Apache behind a Netscaler load balancer. We have the VIP set up with ssl and it is terminating SSL at the netscaler. The backend webserver is not SSL. When we go to the https vanity url, we get a 404 error. But when I go to
webserver directly on using host:port, it works just fine. Im getting this in the access logs when I use the netscaler URL so I know the netscaler is getting to the webserver: XX.XX.XX.XX- - [08/Jun/2021:08:58:09 -0400] "GET /sample HTTP/1.1" 404 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" 802 250 So http://hostname:8080/sample works But netscaler url https://my.domain.com/sample gets 404 with the above error in access logs. I have tried commenting out the rewrite engine stuff with same results.
Here is the virtual hosts from the httpd-vhosts.conf file. Some information changed for security reasons.
<VirtualHost *:8080> DocumentRoot "/path/to/httpd/htdocs" ServerName hostname:8080 ServerAlias my.domain.com Options None Header add Set-Cookie "ROUTEID=.%{BALANCER_WORKER_ROUTE}e; path=/" env=BALANCER_ROUTE_CHANGED <Proxy "balancer://loadbalancer"> BalancerMember ajp://tomcat-hostname:8009 route=sbx-bts01 connectiontimeout=300 timeout=600 ProxySet stickysession=ROUTEID Order deny,allow Allow from all </Proxy> ProxyRequests Off ProxyPass / balancer://loadbalancer/ ProxyPassReverse / balancer://loadbalancer/ RewriteEngine On RewriteCond %{THE_REQUEST} !HTTP/1\.1$ RewriteRule .* - [F] RewriteOptions Inherit ErrorLog "/path/to/httpd/error_log" CustomLog "/path/to/httpd/access_log" combinedio </VirtualHost>
|