mobilefish

Untitled

Jun 9th, 2020
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name myserver;
  4. root /var/www/html;
  5.  
  6. # Load configuration files for the default server block.
  7. include /etc/nginx/default.d/*.conf;
  8.  
  9.  
  10. location / {
  11. try_files $uri $uri/ /index.html;
  12. }
  13. location /backend/api{
  14. proxy_pass http://localhost:9090/token/getMyToken;
  15. }
  16. }
  17.  
  18. server {
  19. listen 90;
  20. server_name myserver;
  21. root /var/www/htmldev;
  22.  
  23. # Load configuration files for the default server block.
  24. include /etc/nginx/default.d/*.conf;
  25.  
  26.  
  27. location / {
  28. try_files $uri $uri/ /index.html;
  29. }
  30. location /backend/api{
  31. proxy_pass http://localhost:9090/token/getMyToken;
  32. }
  33. }
Add Comment
Please, Sign In to add comment