The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to edit virtualhost, setEnv

Discussion in 'General Discussion' started by phenetic, Aug 9, 2010.

  1. phenetic

    phenetic Registered

    Joined:
    Aug 9, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello, I have a simple task, add one line to my virtualhost directive for each domain.

    SetEnv APPLICATION_ENV development

    In the labyrinth of WHM, hOW DO i DO THIS???????

    I tried to add it to /var/cpanel/userdata/$username/$domainname , then /scripts/rebuildhttpdconf , but the line does not appear in httpd.conf !!!
     
  2. phenetic

    phenetic Registered

    Joined:
    Aug 9, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    virtualhost editing nightmare

    oh yes, and each virtual host that I need to edit needs a different environment variable (setEnv), so editing the overall template won't work in this case.

    this is so easy to do in regular apache config. what is the secret in WHM??? :confused:
     
Loading...

Share This Page