R
R
RovoreZ2021-08-25 15:59:39
Nginx
RovoreZ, 2021-08-25 15:59:39

How to set up nginx for domain substitution?

Configure nginx so that when yourdomain/google or yourdomain/vk is entered , the corresponding sites open, without changing the Url and to work with any option: yourdomain/****** .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lynn "Coffee Man", 2021-08-25
@Lynn

No way.

V
Viktor Taran, 2021-08-26
@shambler81

do it in php
php proxy is very easy. and it will be easy to do.
https://github.com/zounar/php-proxy
place it in PHP 404 on your site.
All you need to do is add a line of code with the logic for transferring a domain to a proxy, but this is just 1-2 lines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question