apache reverse proxy config for http to https

Posted on 2009-02-17
Last Modified: 2012-05-06
I have a apache proxy that contains multiple virtual hosts

In one of the hosts, I like to have users coming in on http but I want then to go to https instead.
https is working as I can go directly to that url but I want apache reverse proxy to redirect that url to https. I have not configured http redirect in reverse proxy before and examples would be appreciated.
Question by:sgaur
    LVL 23

    Accepted Solution

    Can't you do simple redirect in your http VirtualHost environment? (Redirect / https://your.vhost.tld/ within <VirtualHost..> directives).
    LVL 3

    Assisted Solution

    Try this:
    ProxyRequests Off

    <Proxy *>
    Order deny,allow
    Allow from all

    ProxyPass /foo
    ProxyPassReverse /foo

    Author Closing Comment

    thanks for your inputs.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now