Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com.
i need help to setup sub domain and create ftp user that able to upload.
i need this server for file hosting of my website that provide direct links for download. any suggestion?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
If your configuration looks like the one you posted:
Then it’s not valid.
You can test your configuration with
nginx -t
. After I tested your server block, I get the following error:This means that the line
188.27.10.28 dl.domain.com;
is not valid. You can remove it or comment it out.After this reload nginx with
nginx reload
and try it again.I keep my fingers crossed that it works for you!
Try changing your
listen
andserver_name
directives to:This tells nginx to make your
server
block the default and respond if no other block matches the Host header. Earlier it would respond only toHost: example.com
as defined in the tutorial.Resource link.