M
M
Mikhail Vasiltsev2019-02-07 11:13:39
Nginx
Mikhail Vasiltsev, 2019-02-07 11:13:39

How to run Nuxtjs app on real domain without entering port?

Ready site on Nuxtjs uploaded to the server. When launched from the npm run start console, the application starts on the port specified in the Nuxt config (port 3000 by default). But I need the site to open just when visiting the domain name, without colons.
Accordingly, to do this, you need to somehow "intercept" port 80 from nginx so that it starts acting as a proxy, because without this, when I enter a domain name, I just get a listing of folders and files in the project. All this requires some changes in the nginx configuration file, the question is which ones?
Of course, I do not understand the server setup, that's why I'm asking.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2019-02-07
@FFxSquall

Documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question