A
A
adreanov2014-08-26 00:01:11
Google
adreanov, 2014-08-26 00:01:11

How to change the site url in host + load the real one?

Absolutely not for selfish purposes.
It is necessary to change the site address so that when entering test.ru, the content is from test2.ru
But more than that, there is a problem: you need to make sure that when you enter test.ru, the main page has a real page with test2.r and only a couple of pages (false) from another ip.
What are the solutions, methods, and it is desirable that the url in the browser line does not change ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Kubintsev, 2014-08-26
@akubintsev

See nginx and location + proxy_pass directives

S
s1dney, 2014-08-26
@s1dney

Any http proxy with the ability to edit content on the fly.
Squid, for example.
Or nginx, then it's more difficult. Google it.

A
asergrisa, 2015-01-31
@asergrisa

You can use this: habrahabr.ru/post/184210
But you need node.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question