How To Setup Nginx Server Blocks In Ubuntu 18.04 LTS

setup Nginx server blocks in Ubuntu

4 Responses

  1. Ning Li says:

    Hi, thank you for the tutorial. It is very helpful. I was able to follow it through the end and got ostechnix1.lan up and running. But ostechnix2.lan doesn’t. I am very new to web development. It’d be great if you could suggest some basic trouble shooting tips.

  2. Pankaj Singh says:

    Hi, nice tutorial,
    I have a question. You mentioned that “I removed the default_server line from the second block to avoid conflict”. What if I have to add their block? What should I do with “default_server”? TYIA

  3. sk says:

    Don’t add “default_server” in the subsequent blocks. Add it in the first block only.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.