V
V
Vadim2018-04-30 14:58:56
Nginx
Vadim, 2018-04-30 14:58:56

How to set up NGINX to fully proxy from your own to another domain?

Hello friends,
the task is next. There is a (sub)domain mail.mydomain.com and a VPS. You need to make it so that when you open the mail.mydomain.com address, the gmail.com page opens. In order for everything to work correctly, including JavaScript, mail was sent, etc. But at the same time, any URL began with mail.mydomain.com, without going to gmail.com. Do not offer options with web proxy or ssh channel.
thanks, Vadim

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Sundukov, 2018-04-30
@alekciy

Buy Gmail for your domain: https://gsuite.google.ru/intl/ru/products/gmail/
All other schemes are already semi-criminal.

A
akelsey, 2018-04-30
@akelsey

Create your own DNS, register gmail.com to your addresses there (well, or use the hosts of your OS). In NGINX, you create your own virtual resource that waits for gmail.com in header: host.
Profit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question