Ticket #8525 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

[Patch] Environment Variables not available

Reported by: H3llGhost Assigned to: pacopablo
Priority: normal Component: ModWsgiAcctmgrScript
Severity: normal Keywords:
Cc: Trac Release: 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)

Attachments

acctmgr_auth.wsgi.diff (1.3 kB) - added by H3llGhost on 02/22/11 19:06:48.

Change History

02/22/11 17:32:12 changed by H3llGhost

  • status changed from new to closed.
  • resolution set to worksforme.

I found a solution. It is attached as patch.

02/22/11 18:57:30 changed by rjollos

  • summary changed from Environment Variables not avaible to [Patch] Environment Variables not available.

02/22/11 18:58:11 changed by rjollos

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.

02/22/11 19:06:48 changed by H3llGhost

  • attachment acctmgr_auth.wsgi.diff added.

Add/Change #8525 ([Patch] Environment Variables not available)




Change Properties
Action