I am trying to make a CS:GO site. Well when i try to goto the website i get the dreaded 404 error. I cannot figure this out. I am fairly new to digital ocean. This is a paste of my Nginx errors. https://pastebin.com/9ftgR002 please let me know how to fix this.
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!
The directory index error you’re seeing is most likely the result of a missing index ...; directive in your server block or the nginx.conf file. The index directive needs to match the language that you’re serving.
For example, if I were serving a WordPress site, I’d want to have something such as:
server {
listen 80;
server_name domain.com www.domain.com;
root /path/to/public_html;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
...
...
...
}
}
While the above is not a complete example, it shows where the index directive may be placed to help prevent that error. You can also modify the index directive in /etc/nginx/nginx.conf under the http block and add it there.
Under http it’s global, thus affects all server blocks and will help redundancies.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.