Django Invalid HTTP_HOST header on Apache - fix using Require?

后端 未结 2 1259
轮回少年
轮回少年 2021-01-12 22:59

A couple weeks ago, I had a wonderful time setting up an Apache and Django configuration to work while forcing SSL and operating behind an AWS load balancer.

Now th

2条回答
  •  情话喂你
    2021-01-12 23:22

    No need to use mod_setenvif as HTTP_HOST is already a variable and you can evaluate it directly.

    
        Require expr %{HTTP_HOST} == "example.com"
        Options
    
    

提交回复
热议问题