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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like