Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

[Patch] Environment Variables not available

Reported by: Owned by: H3llGhost pacopablo 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 6 years ago by H3llGhost

• Resolution set to worksforme
• Status changed from new to closed

I found a solution. It is attached as patch.

comment:2 Changed 6 years ago by rjollos

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

comment:3 Changed 6 years ago 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.

Modify Ticket

Action
as closed The owner will remain pacopablo.
The resolution will be deleted. Next status will be 'reopened'.
Author

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.