Guest User

Untitled

a guest
Feb 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name test.myproject.com;
  4. rewrite ^/(.*)$ /myproject/$1;
  5. location / {
  6.  
  7. proxy_pass http://127.0.0.1:8080/;
  8. proxy_set_header Host $host;
  9. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  10. }
  11. }
  12. server {
  13. listen 80;
  14. server_name test.myotherproject.com;
  15. rewrite ^/(.*)$ /myotherproject/$1;
  16. location / {
  17. proxy_pass http://127.0.0.1:8080/;
  18. proxy_set_header Host $host;
  19. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  20. }
  21. }
  22. server {
  23. listen 80;
  24. server_name web1.myhost.com.br;
  25.  
  26. location /static/ {
  27. root /home/ubuntu/projects/hellow/;
  28. }
  29.  
  30. location / {
  31. uwsgi_pass unix:/var/run/uwsgi.sock;
  32. include uwsgi_params;
  33. uwsgi_param SCRIPT_NAME '';
  34. }
  35.  
  36. }
  37.  
  38. HTTP Status 404 - /myotherproject/myotherproject/user/redirectPermission
  39.  
  40. type Status report
  41.  
  42. message /myotherproject/myotherproject/user/redirectPermission
  43.  
  44. description The requested resource is not available.
  45.  
  46. Apache Tomcat/7.0.33
  47.  
  48. $ curl -I http://test.myproject.com/myproject
  49. $ curl -I http://test.myotherproject.com/myotherproject
  50.  
  51. rewrite ^/(.*)$ /myotherproject/$1;
  52.  
  53. proxy_pass http://127.0.0.1:8080/myotherproject/;
Add Comment
Please, Sign In to add comment