Results 1 to 2 of 2

Thread: Environment Variables for Apache

Hybrid View

  1. #1

    Question Environment Variables for Apache

    Hey guys,

    Where do I setup these in OpenSUSE 13.2?

    I tried putting them in /etc/sysconfig/apache2 as:

    Code:
    export VAR_NAME=/path/to/folder
    But Apache doesn't get it, I also tried in /etc/init.d/apache2 and httpd.conf, but nothing.

    I tried enabling mod_env just to be in the safe side, but nothing.

    Any ideas?

    Thanks,

  2. #2
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,004

    Default Re: Environment Variables for Apache

    Try adding;

    SetEnv variable_name variable_content

    In your /etc/apache2/default-server.conf at the end or in your vhost file in the virtualhost section if you have multiple hosts and want to set things per host. Remember to have the env module loaded when you do so.
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •