S
S
sergeevpetro2016-02-23 22:47:20
Domain Name System
sergeevpetro, 2016-02-23 22:47:20

How to create an alias (mirror) of the site?

Let's say there is a site vk.com
How to set up your domain, for example site.ru, so that when you enter it, it was vk.com (without a redirect)? Naturally, site.ru should be in the browser line

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vlad Zhivotnev, 2016-02-24
@sergeevpetro

No, the browser will not send cookies.
You can use nginx + proxy_pass, but you won't be able to log in.

R
Rikcon, 2016-02-23
@Rikcon

And this web server needs to be configured.
I do this
domain1.com, his A record looks at 123.123.123
domain2.com, everything is the same as the first one.
Depending on which web server you have, google how to make alias for it, Apache has ServerAlias ​​domain2.com

A
AntonMZ, 2016-02-24
@AntonMZ

TS! If you do not consider vk.com, but site1.ru and site2.ru Both sites belong to you and are located on the same server? Or do you need exactly vk.com?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question