M
M
Mikhail Vasiltsev2019-02-14 18:29:35
Nginx
Mikhail Vasiltsev, 2019-02-14 18:29:35

Nuxtjs project runs on at least 4 addresses. How to remove launch on IP?

The question-situation concerns everything a little bit, nginx, nodejs, nuxtjs and seo shmeo are involved here.
Suppose I have a domain "domain.ru" located at the ip address "ip-address" . There are no other domains on ip. I made a nuxtjs application and uploaded it to the site via git/github. Next, I configured nginx as a proxy and launched the application. By default, nuxt runs it on port 3000, but thanks to proxying, access is also available on standard ports 80. As a result, it works on four addresses:

  1. domain.ru
  2. domain.ru:3000
  3. ip-address
  4. ip-address:3000

And this is the minimum. And if there are other domains on the ip-address, on each of them, when specifying port 3000, the application also opens. In total, from 4 to the nth number of addresses where the application is available. But that's okay, let's say I have allocated a separate ip for the domain. All the same there are 4 addresses.
But I'm going to do a real project, what will it be like for the same seo? In a good way, I would leave 2 addresses - domain.ru and domain.ru:3000 . In short, I need to make sure that the ip-address has some kind of stub thread, but when you enter the domain, all the application's performance is preserved.
If anything, I don’t know anything about servers, let the phrase “configured nginx as a proxy” not be misleading, because I set it up purely by poke and googling.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question