101 reputation
bio website
location
age
visits member for 2 years, 6 months
seen Oct 21 '13 at 19:00

May
13
comment Access htaccess variable
When I change the variable to allow from ENV=DEV now it password protects but it does this for production to.
May
13
comment Access htaccess variable
in httpd.conf I added this SetEnv ENV dev
May
13
comment Access htaccess variable
I dont understand I cant just use the variable I set in httpd.conf?
May
13
comment Access htaccess variable
that did not work for me. If I create another variable based on the url it works though but is there no way to just use the variable I already have?
May
13
comment Access htaccess variable
they are different servers. Thats why I wanted to use the variables.
May
13
comment Access htaccess variable
What I posted there is my entire htaccess. What I am trying to achieve is to make my dev site protected so that no one can access it. The fastest way I can think of without writing a php auth system was to use the htaccess. however if I just have this code in there then my production site requires a password to.
May
13
comment Access htaccess variable
I have an environmental variable that I set in httpd.conf called DEV. I want to only require authentication when that variable is set to DEV. Does that make sense?
May
13
asked Access htaccess variable