logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Redirect domain by proxy in HTTPS and only htaccess
Author
sweetromain



Joined: 05 May 2020
Posts: 1

PostPosted: Tue 05 May '20 16:21    Post subject: Redirect domain by proxy in HTTPS and only htaccess Reply with quote

Hello,
I don't if a solution is possible but my problem is the next:
I'm on OVH shared server (start10m) so only htaccess is possible. It's on Apache 2.4. List of enabled module https://hastebin.com/raw/uwedifihiy
My objective is when a visitor visit a.com, this htaccess on this domain get data from b.com which is on my server.
All in https.
Actually I can make https a.com get http b.com but when I try https b.com I've an error.
My current code is :
Code:
RewriteEngine On
RewriteRule ^(.*)$ http://b.com%{REQUEST_URI} [P]
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sun 17 May '20 17:47    Post subject: Reply with quote

What you need a is a reverse proxy.
Back to top


Reply to topic   Topic: Redirect domain by proxy in HTTPS and only htaccess View previous topic :: View next topic
Post new topic   Forum Index -> Apache