Opened 7 years ago

Closed 7 years ago

# [Patch] Environment Variables not available

Reported by: Owned by: H3llGhost John Hampton normal ModWsgiAcctmgrScript normal 0.12

### Description

In the virtualhost.conf of my apache I define some environment variables, but I have no access.

RewriteCond \${lowercase:%{REQUEST_URI}} ^/([^/]+)
RewriteRule . - [E=trac.env_path:/var/trac/envs/%1]


But in the wsgi I haven't any access on it with following code:

env = open_environment(environ['trac.env_path'], use_cache=True)


### comment:1 Changed 7 years ago by H3llGhost

Resolution: → worksforme new → closed

I found a solution. It is attached as patch.

### comment:2 Changed 7 years ago by Ryan J Ollos

Summary: Environment Variables not avaible → [Patch] Environment Variables not available

### comment:3 Changed 7 years ago by Ryan J Ollos

I'm not familiar with this plugin, but it may be helpful to make a note on the project's wiki page about what you found, and point users to the patch in this ticket.