If the index file is not specified in the Nginx settings, then when accessing the root directory, the server will return error 403 Forbidden. To fix this problem, you need to add the index directive to the server configuration and specify the desired file (usually this index.html or index.php ).
The 403 Forbidden error in Linux means that the user who accesses the server does not have access rights to the requested resource. This may be caused by incorrect file or directory access rights, server security settings, or Nginx configuration.
To fix this error, you need to make sure that the access rights to files and directories are set correctly and check the server configuration
Example:
In this example, we indicated that when accessing the root directory, the server will search for the file index.html and display its contents. If such a file is missing, the 404 Not Found error will be returned.
After making changes to the server configuration, Nginx must be restarted to apply the settings:
If you request a URL like /vstats/, but the index file is not specified in the Nginx settings, you will fail and you will get 404. You can add the index directive to your location:
Or immediately in the server, in Nginx all locations inherit the directives set in the server
Apply the discount by inserting the promo code in the special field at checkout: