G
G
German Zvonchuk2015-09-29 09:28:33
Nginx
German Zvonchuk, 2015-09-29 09:28:33

How to send requests to domain.com - the first server, domain.com/other/ the second server?

Good morning.
SEO specialists set me a very interesting task.
Now here's how things are:
First server:
CMS site on the domain.com
Second server:
other.domain.com domain on the second server.
Now SEOs are asking me to take out a sub-domain and do this domain.com/other The
question is: how can I send requests from domain.com/other to the second domain?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
German Zvonchuk, 2015-09-29
@inside22

Alexey Romanenko , the only way, right? there are no other options?

server {
  server_name domain.com
  location /other/ {
    proxy_pass  http://other.domain.com/;
  }
}

A
Alexey Romanenko, 2015-09-29
@slimus

proxy_pass?

M
miwang, 2015-09-29
@mivang

If I understood everything correctly, then the task is the same as mine. But I haven't found a good solution yet.
Nginx, rewrite or proxy_pass. How to translate from site.ru/page/ to page.site.ru?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question