• Copied from here: https://www.keycdn.com/support/wordpress-cache-enabler-plugin#apache

    I’m not sure if its a version issue (we’re on Apache 2.4.46) but the environment variables don’t seem to be concatenating correctly. From my research, it doesn’t even appear possible to set environment variables like it shows either.

    After debugging it seems that the variables are taken literally, not parsed as their values.

    So CE_CACHE_FILE is literally %{ENV:CE_CACHE_FILE_DIR}/%{ENV:CE_CACHE_FILE_NAME}, not what you’d expect it to be like wp-content/cache/cache-enabler/host.tld/page/http-index.html.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 16850768

    (@anonymized-16850768)

    Hmm, how about trying to set those environment variables like this instead: https://pastebin.com/pesWAwWV

    • This reply was modified 3 years, 3 months ago by Anonymous User 16850768. Reason: correct Pastbin example
    Thread Starter Corey Worrell

    (@coreyw)

    @coreyk that causes a 500 server error. I don’t think it’s possible to set variables like that either. As far as I know rewrites can only reference capture groups, not other variables.

    Anonymous User 16850768

    (@anonymized-16850768)

    Can you please share the configuration that resulted in a 500 error for you?

    Thread Starter Corey Worrell

    (@coreyw)

    @coreyk I used the exact snippet you pasted above.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Advanced Configuration Apache not working’ is closed to new replies.