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 8418597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:22:43+00:00 2026-06-10T02:22:43+00:00

In my Pylons config file, I have: [server:main1] port = 9090 …config here… [server:main2]

  • 0

In my Pylons config file, I have:

[server:main1]
port = 9090
...config here...

[server:main2]
port = 9091
...config here...

Which are ran using:

paster serve --server-name=main1 ...(more stuff)...
paster serve --server-name=main2 ...(more stuff)...

Now, using Haproxy and Stunnel, I have all http requests going to main1 and all https requests going to main2. I would like some of my controllers to react a little differently based on if they are being requested under http or https but pylons.request.scheme always thinks that it is under http even when it is not.

Seeing as I always know that main2 is always the one handling all https requests, is there a way for the controller to determine what sever name it was ran under or what id it is?

  • 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-10T02:22:44+00:00Added an answer on June 10, 2026 at 2:22 am

    I got around this by just changing the workflow to not have to react differently based on what protocol it’s under. It doesn’t look like there’s a way to pass a unique arbitrary identifier to each separate process that it can read.

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

Sidebar

Related Questions

I have deployed my pylons app on the server~ I use nginx end flup,
I have a Pylons app that I'm using SqlAlchemy declarative models for. In order
I'm developing a Pylons app which is based on exisitng database, so I'm using
I have troubles setting up the support for openID authentication, using authkit and pylons.
I have a Pylons application using SQLAlchemy with SQLite as backend. I would like
I'm using the SQLAlchemy Python ORM in a Pylons project. I have a class
I'm using pylons with sqlalchemy. I have several models, and found myself wrote such
I'm using pylons, and using this command to start the server: paster serve --reload
I have a Pylons app that I'm trying to set up using Apache and
I'm running pylons and I did this: paster server development.ini It's running on :5000

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.