Jump to content
hsvandrew

Apache (httpd) on Linux (Centos7): Cannot access Env Variables

Recommended Posts

Hi everyone,

Just wondering if anyone has any experience with Delphi 10.2.3/10.3 Apache Modules on Linux

request.GetFieldByName('Accept-Language') returns a valid value

request.GetFieldByName('HTTPS') is blank, whilst running on a HTTPS connection

 

We aren’t running any load balances and apache IS serving HTTPS content with SNI correctly

 

I’ve even adding to the virtual hosts SetEnv HTTPS on
https://serverfault.com/questions/446294/https-variable-in-server-using-nginx-as-reverse-proxy

 

Any ideas? Delphi Rio 10.3

 

Apache Config

<VirtualHost *:443>
SetEnv HTTPS on
ServerName the.domain.com
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile /……(correct file)
SSLCertificateKeyFile /…….(correct file)
SSLCertificateChainFile /…..(correct file)
</VirtualHost>  
 

Share this post


Link to post

Andrew,

 

Have you figured out how to read "Environment Variables" (which are really not) in this case? I'm just trying to get access to Apache REMOTE_USER variable now, but will also need access to Client SSL Certificate values later on...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×