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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:12:29+00:00 2026-06-15T23:12:29+00:00

I have a working webapp based on Python, Flask. (configured to work on http://

  • 0

I have a working webapp based on Python, Flask. (configured to work on http:// host:port)

I need to get it to work with https. I was given an Apache proxy – which redirects all requests in such fashion:

(Apache) https:// host/myApp –> http:// host:port (my Flask based app). Where host:port is the standard configuration where my app was working fine.

I am able to reach the service and index page. However, there is an issue with accessing all static content, which was requested vi url_for method (like ico, images etc.).

Can you point me to any resources/info? Thanks in advance.

  • 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-15T23:12:30+00:00Added an answer on June 15, 2026 at 11:12 pm

    We add a line in httpd.conf that handles /static/ instead of proxying it to gunicorn:

    <VirtualHost oursite.com>
    
      # Tells apache where /static/ should go
      Alias /static/ /full/path/to/flask/app/static/
    
      # Proxy everything to gunicorn EXCEPT /static and favicon.ico
      ProxyPass /favicon.ico !
      ProxyPass /static !
      ProxyPass / http://gunicorn.oursite.com:4242/
      ProxyPassReverse / http://gunicorn.oursite.com:4242/
    
    </VirtualHost>
    

    This works because we have gunicorn and apache running on the same box, which may or may not work for you. You might have to copy the static files to the apache host as part of your site deployment.

    There’s probably a better way to do it, but it works for us.

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

Sidebar

Related Questions

I'm trying to get my Django based webapp into a working deployment configuration, and
I'm working on a class-based php web app. I have some places where objects
I am working toward a small webapp that I would like to have a
I'm trying to get a web app working based on the S#arp Architecture. At
I'm working on a webapp based on CakePHP 2.2. I created some plugins that
I have a Spring-based webapp and my problem is after a change in my
I'm working on a PHP-based webapp that has an existing MySQL database where all
I'm working on an iOS web app and I have the viewport set to
I am working on a store locator web app and I have a problem
I'm working on a mobile web app, and in my page I have a

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.