Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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.
To solve your problem, you can try the following example of an Nginx configuration:
- server {
- listen 80;
- server_name www.example.com;
-
- root /var/www/site;
- index index.html;
-
- location / {
- try_files $uri $uri/ =404;
- }
-
- location ~ ^/(country1|country2|country3)$ {
- try_files /$1/index.html$1/ =404;
- }
-
- location ~ ^/(country1|country2|country3)/assets {
- try_files /$1/$uri =404;
- }
- }
In the example above, the server block listens to requests targeting the www.example.com domain on port 80. The root directive is set to the /var/www/site directory, and the index directive is set to `index.html.
Hope that this helps!