New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Apache environment variables #1179

Open
jeffkaufman opened this Issue Nov 10, 2015 · 5 comments

Comments

Projects
None yet
5 participants
@jeffkaufman
Copy link
Contributor

jeffkaufman commented Nov 10, 2015

@morlovich

This comment has been minimized.

Copy link
Contributor

morlovich commented Nov 10, 2015

When do the nginx ones evaluate?

@jeffkaufman

This comment has been minimized.

Copy link
Contributor

jeffkaufman commented Nov 10, 2015

Nginx ones are parsed and "compiled" when we load the configuration, and then evaluated at request time.

@sirshurf

This comment has been minimized.

Copy link

sirshurf commented Nov 15, 2015

Subscribing myself as this is something I really need (I was the poster of #1175).

@rexmac

This comment has been minimized.

Copy link

rexmac commented Sep 13, 2016

My team has recently implemented experiments via ModPagespeedRunExperiment, but we're struggling to come up with a way of specifying different GA web property IDs for different environments. We think that support for env variables would be very helpful in this regard so that we could do something akin to:

<If env('SERVER_ENV') == 'production'>
    ModPagespeedAnalyticsID UA-XXXXXXX-Y
</If>
<Else>
    ModPagespeedAnalyticsID UA-XXXXXXX-Z
</Else>
@phuib

This comment has been minimized.

Copy link

phuib commented Dec 16, 2016

This would be great for setting up many different websites without having to hard code everything into the apache configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment