Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8859407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:03:17+00:00 2026-06-14T15:03:17+00:00

Is there a way to pass extra arguments to WSGIScriptAlias? For example: WSGIScriptAlias /

  • 0

Is there a way to pass extra arguments to WSGIScriptAlias? For example:

WSGIScriptAlias / /foo/bar/wsgi.py but what I want is:

WSGIScriptAlias / /foor/bar/wsgi.py baz

Edit for clarification:

I have a Django project with multiple configurations based on the environment in which it is running (cloud-based deployment). Currently, I’m loading configuration based on hostname (which I’m not overly happy with because it doesn’t lend itself well to testing multiple configs on one machine without changing the system’s hostname). So, another solution would be to pass in command line arguments to the application and load the config in the WSGI entry point, which is relatively trivial when running the dev server, but I’m not aware of any way to do it via Apache/WSGI.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:03:19+00:00Added an answer on June 14, 2026 at 3:03 pm

    First up, ensure you are using daemon mode, it is preferred anyway.

    • http://blog.dscpl.com.au/2012/10/why-are-you-using-embedded-mode-of.html

    Then inside of your WSGI script file you can do:

    import mod_wsgi
    
    process_group = mod_wsgi.process_group
    

    You can then use the name of the process group as a way of distinguishing which configuration.

    In other words, use the name of the daemon process group you choose to use in the Apache configuration file as the distinguishing factor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to pass extra authenticated attributes for a PKCS#7 signed message
How to pass a tuple argument the best way ? Example: def foo(...): (Int,
Is there a way to pass an extra parameter at the level of the
Is there a way to pass some extra parameter to the function that is
Is there a way to pass a piece of extra data along with a
Is there a way to pass results generated within a PHP page (called into
Is there any way to pass HTTP AUTH username and password along with an
Is there any way to pass command line parameters to a Flash projector in
Is there any way to pass a callback to java code, from C. And
Is there a way to pass foo_ around outside of main? I saw something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.