Guest User

Untitled

a guest
Oct 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. server {
  2. listen 8080;
  3. server_name localhost;
  4. root /home/ajit/git/univisior;
  5.  
  6. location / {
  7. alias /home/ajit/git/univisior/FrontEnd/dist/;
  8. index index.html;
  9. try_files $uri $uri/ /index.html;
  10.  
  11. }
  12. location /admin{
  13. alias /home/ajit/git/univisior/admin/dist/;
  14. index index.html;
  15. try_files $uri $uri/ index.html;
  16.  
  17. }
  18.  
  19. location /splash {
  20. alias /home/ajit/git/univisior/Splash/dist/;
  21. index index.html;
  22. try_files $uri $uri/ /index.html;
  23.  
  24. }
  25.  
  26. location /api {
  27. proxy_pass http://localhost:3000/api;
  28.  
  29. }
  30.  
  31. }
  32.  
  33. server {
  34.  
  35. listen 9010;
  36. server_name localhost;
  37. root /home/ajit/git/univisior/admin/dist;
  38. index index.html index.htm;
  39. location / {
  40. index index.html;
  41. try_files $uri $uri/ /index.html;
  42. }
  43. location /api {
  44. proxy_pass http://localhost:3000/api;
  45. }
  46. location /static {
  47. alias /opt/univisor;
  48. }
  49. }
  50.  
  51. location / {
  52. alias /home/ajit/git/univisior/FrontEnd/dist/;
  53. index index.html;
  54. try_files $uri $uri/ /index.html;
  55.  
  56. }
  57. location /admin{
  58. # alias /home/ajit/git/univisior/admin/dist/;
  59. alias /home/ajit/git/univisior/admin/dist;
  60. # index index.html;
  61. # try_files $uri $uri/ index.html;
  62. try_files $url $uri/;
  63.  
  64. }
  65.  
  66. location /splash {
  67. # alias /home/ajit/git/univisior/Splash/dist/;
  68. alias /home/ajit/git/univisior/Splash/dist;
  69. # index index.html;
  70. # try_files $uri $uri/ /index.html;
  71. try_files $uri $uri/;
  72. }
  73.  
  74. <img src="../images/logo.png" alt="logo">
  75. .
  76. .
  77. <script src="../bower_components/jquery/dist/jquery.js"></script>
  78. <script src="../bower_components/angular/angular.js"></script>
  79.  
  80. .
  81. .
  82. location / {
  83. alias /home/ajit/git/univisior/FrontEnd/dist/;
  84. index index.html;
  85. try_files $uri $uri/ /index.html;
  86.  
  87. }
  88. location /admin{
  89. alias /home/ajit/git/univisior/admin/dist/;
  90. index index.html;
  91. try_files $uri $uri/ index.html;
  92.  
  93. }
  94.  
  95. location /splash {
  96. alias /home/ajit/git/univisior/Splash/dist/;
  97. index index.html;
  98. try_files $uri $uri/ /index.html;
  99. }
  100. .
  101. .
  102.  
  103. <img src="images/logo.png" alt="logo">
  104. .
  105. .
  106. <script src="bower_components/jquery/dist/jquery.js"></script>
  107. <script src="bower_components/angular/angular.js"></script>
Add Comment
Please, Sign In to add comment