How to configure NGINX for full proxy of the other domain?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
8 views
Hello friends,

the challenge trail. There is a (sub)domain mail.mydomain.com and VPS, you Need to make when opening the address mail.mydomain.com the page that opens gmail.com. While all worked well, including JavaScript, sent mail, etc. But in this case, any URL started with mail.mydomain.com without going to gmail.com. Options web proxy or ssh channel does not offer.

thank you, Vadim
by | 8 views

2 Answers

0 like 0 dislike
Buy Gmail for your domain: https://gsuite.google.ru/intl/ru/products/gmail/
All other schemes already semi-criminal.
by
0 like 0 dislike
Create your DNS, they prescribe gmail.com on their address (or use your hosts OS). In NGINXе create your virtual resource which is waiting for gmail.com in header:host.
Profit.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,593 users