Advertisement
letterheadno5683

React and Nginx

Nov 19th, 2023 (edited)
977
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.42 KB | None | 0 0
  1. server {
  2.  
  3.        server_name domainname;
  4.  
  5.        root /var/www/domainname;
  6.  
  7.        location / {
  8.                try_files $uri $uri/ =404;
  9.        }
  10.  
  11.         location /project1 {
  12.                 root /var/www/domainname/project1;
  13.                 try_files $uri /index.html;
  14.         }
  15.  
  16.         location /project2 {
  17.                 root /var/www/domainname/project2;
  18.                 try_files $uri /index.html;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement