Nginx Server Block for Ip Address

I know editing /etc/nginx/nginx.conf isn't the proper way to configure nginx on ubuntu.

Usually one uses something like /etc/nginx/sites-available

What would the folder structure be if I'm in a stage of development where I don't yet have a domain name? (e.g. just using an IP address)

1 Answer

I'm realizing that the name is actually arbitrary.

One can name it anything and it should work as specifics are specified in the config file itself.

Also there is by default a file called /etc/nginx/sites-enabled/default, which is a great to use when you only have an IP address setup.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest