Setting up reverse proxies for websites cloned to local machine Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionSetting up Apache 2 Local Development Environment & Permissionslisten to two IPs for hosting 2 websites with SSLProblems setting up web server in CentOSApache modssl returning random unwanted 200's rather than 404'sHTTP 403 forbidden error when setting up virtual host for the first time in El Capitan 10.11setting up permissions for Virtual Host on Centos 7OpenBSD relayd SSL reverse proxy for 3 web serversSimple reverse proxy for old printer with old SSLSetting up multiple websites on Apache Httpd renders one site only accessibleGetting HTTPS web interface for transmission with Lighttpd reverse proxy
Can I throw a sword that doesn't have the Thrown property at someone?
Stars Make Stars
Can smartphones with the same camera sensor have different image quality?
Why use gamma over alpha radiation?
Is there folklore associating late breastfeeding with low intelligence and/or gullibility?
Does the STL have a way to apply a function before calling less than?
How to add zeros to reach same number of decimal places in tables?
I'm thinking of a number
Make it rain characters
How to market an anarchic city as a tourism spot to people living in civilized areas?
Single author papers against my advisor's will?
What are the performance impacts of 'functional' Rust?
Is it possible to ask for a hotel room without minibar/extra services?
Communication vs. Technical skills ,which is more relevant for today's QA engineer positions?
Statistical model of ligand substitution
How did the aliens keep their waters separated?
What's the point in a preamp?
A constraint that implies convexity
Two different pronunciation of "понял"
What do you call a plan that's an alternative plan in case your initial plan fails?
Why does tar appear to skip file contents when output file is /dev/null?
How do I automatically answer y in bash script?
What to do with post with dry rot?
Estimated State payment too big --> money back; + 2018 Tax Reform
Setting up reverse proxies for websites cloned to local machine
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionSetting up Apache 2 Local Development Environment & Permissionslisten to two IPs for hosting 2 websites with SSLProblems setting up web server in CentOSApache modssl returning random unwanted 200's rather than 404'sHTTP 403 forbidden error when setting up virtual host for the first time in El Capitan 10.11setting up permissions for Virtual Host on Centos 7OpenBSD relayd SSL reverse proxy for 3 web serversSimple reverse proxy for old printer with old SSLSetting up multiple websites on Apache Httpd renders one site only accessibleGetting HTTPS web interface for transmission with Lighttpd reverse proxy
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've mirrored a website from http://ORIGINAL.com to my local computer running Apache on port 127.0.0.1. I can pull up the site at http://CLONED.com using vhosts:
<VirtualHost *:8080>
ServerName CLONED.com
DocumentRoot "/usr/local/var/www/mirrored_pages/ORIGINAL.com"
</VirtualHost>
CLONED.com web pages have javascript which injects CLONED.com into the loaded pages. I don't want this. I want ORIGINAL.com to be injected.
One way to solve this, which I have done, is to change my /etc/hosts file and point ORIGINAL.com to 127.0.0.1 and place ORIGINAL.com into my vhosts. The problem with this is I can no longer access ORIGINAL.com easily without changing the vhosts file.
So I'm looking for a better solution using a reverse proxy. I only have a vague understanding of it so I'm feeling around in the dark. I want to be able to type in CLONED.com to the browser and have apache make the request so it's looking like it's coming from ORIGINAL.com.
I've tried a few different things following examples on the web, but no luck. Latest iteration:
<VirtualHost *:8080>
ServerName CLONED.com
DocumentRoot 1/usr/local/var/www/mirrored_pages/ORIGINAL.com' #path to downloaded ORIGINAL.com files
# Set url to proxy
ProxyPreserveHost On
ProxyPass '/' 'http://222.222.222.222' # IP address of ORIGINAL.com
ProxyPassReverse '/' 'http://222.222.222.222'
</VirtualHost>
This just gives me an error: Fastly error: unknown domain:
apache-httpd apache-virtualhost reverse-proxy
add a comment |
I've mirrored a website from http://ORIGINAL.com to my local computer running Apache on port 127.0.0.1. I can pull up the site at http://CLONED.com using vhosts:
<VirtualHost *:8080>
ServerName CLONED.com
DocumentRoot "/usr/local/var/www/mirrored_pages/ORIGINAL.com"
</VirtualHost>
CLONED.com web pages have javascript which injects CLONED.com into the loaded pages. I don't want this. I want ORIGINAL.com to be injected.
One way to solve this, which I have done, is to change my /etc/hosts file and point ORIGINAL.com to 127.0.0.1 and place ORIGINAL.com into my vhosts. The problem with this is I can no longer access ORIGINAL.com easily without changing the vhosts file.
So I'm looking for a better solution using a reverse proxy. I only have a vague understanding of it so I'm feeling around in the dark. I want to be able to type in CLONED.com to the browser and have apache make the request so it's looking like it's coming from ORIGINAL.com.
I've tried a few different things following examples on the web, but no luck. Latest iteration:
<VirtualHost *:8080>
ServerName CLONED.com
DocumentRoot 1/usr/local/var/www/mirrored_pages/ORIGINAL.com' #path to downloaded ORIGINAL.com files
# Set url to proxy
ProxyPreserveHost On
ProxyPass '/' 'http://222.222.222.222' # IP address of ORIGINAL.com
ProxyPassReverse '/' 'http://222.222.222.222'
</VirtualHost>
This just gives me an error: Fastly error: unknown domain:
apache-httpd apache-virtualhost reverse-proxy
add a comment |
I've mirrored a website from http://ORIGINAL.com to my local computer running Apache on port 127.0.0.1. I can pull up the site at http://CLONED.com using vhosts:
<VirtualHost *:8080>
ServerName CLONED.com
DocumentRoot "/usr/local/var/www/mirrored_pages/ORIGINAL.com"
</VirtualHost>
CLONED.com web pages have javascript which injects CLONED.com into the loaded pages. I don't want this. I want ORIGINAL.com to be injected.
One way to solve this, which I have done, is to change my /etc/hosts file and point ORIGINAL.com to 127.0.0.1 and place ORIGINAL.com into my vhosts. The problem with this is I can no longer access ORIGINAL.com easily without changing the vhosts file.
So I'm looking for a better solution using a reverse proxy. I only have a vague understanding of it so I'm feeling around in the dark. I want to be able to type in CLONED.com to the browser and have apache make the request so it's looking like it's coming from ORIGINAL.com.
I've tried a few different things following examples on the web, but no luck. Latest iteration:
<VirtualHost *:8080>
ServerName CLONED.com
DocumentRoot 1/usr/local/var/www/mirrored_pages/ORIGINAL.com' #path to downloaded ORIGINAL.com files
# Set url to proxy
ProxyPreserveHost On
ProxyPass '/' 'http://222.222.222.222' # IP address of ORIGINAL.com
ProxyPassReverse '/' 'http://222.222.222.222'
</VirtualHost>
This just gives me an error: Fastly error: unknown domain:
apache-httpd apache-virtualhost reverse-proxy
I've mirrored a website from http://ORIGINAL.com to my local computer running Apache on port 127.0.0.1. I can pull up the site at http://CLONED.com using vhosts:
<VirtualHost *:8080>
ServerName CLONED.com
DocumentRoot "/usr/local/var/www/mirrored_pages/ORIGINAL.com"
</VirtualHost>
CLONED.com web pages have javascript which injects CLONED.com into the loaded pages. I don't want this. I want ORIGINAL.com to be injected.
One way to solve this, which I have done, is to change my /etc/hosts file and point ORIGINAL.com to 127.0.0.1 and place ORIGINAL.com into my vhosts. The problem with this is I can no longer access ORIGINAL.com easily without changing the vhosts file.
So I'm looking for a better solution using a reverse proxy. I only have a vague understanding of it so I'm feeling around in the dark. I want to be able to type in CLONED.com to the browser and have apache make the request so it's looking like it's coming from ORIGINAL.com.
I've tried a few different things following examples on the web, but no luck. Latest iteration:
<VirtualHost *:8080>
ServerName CLONED.com
DocumentRoot 1/usr/local/var/www/mirrored_pages/ORIGINAL.com' #path to downloaded ORIGINAL.com files
# Set url to proxy
ProxyPreserveHost On
ProxyPass '/' 'http://222.222.222.222' # IP address of ORIGINAL.com
ProxyPassReverse '/' 'http://222.222.222.222'
</VirtualHost>
This just gives me an error: Fastly error: unknown domain:
apache-httpd apache-virtualhost reverse-proxy
apache-httpd apache-virtualhost reverse-proxy
asked Apr 10 at 19:30
StevieDStevieD
1859
1859
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511743%2fsetting-up-reverse-proxies-for-websites-cloned-to-local-machine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f511743%2fsetting-up-reverse-proxies-for-websites-cloned-to-local-machine%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown