Advertisement
Guest User

Untitled

a guest
Jun 17th, 2011
992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. http://192.168.1.13/sqlproxy/rest/vrobtest/405
  2.  
  3. Response Headers
  4. Server nginx/0.7.67
  5. Date Fri, 17 Jun 2011 17:55:49 GMT
  6. Content-Type text/html
  7. Connection keep-alive
  8. Content-Length 134
  9.  
  10. Request Headers
  11. Host 192.168.1.13
  12. User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110420 Firefox/3.6.17
  13. Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  14. Accept-Language en-us,en;q=0.5
  15. Accept-Encoding gzip,deflate
  16. Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
  17. Keep-Alive 115
  18. Connection keep-alive
  19. Content-Type application/json; charset=UTF-8
  20. X-Requested-With XMLHttpRequest
  21. Referer http://192.168.1.13/sandbox/test_rql.html
  22. Content-Length 37
  23.  
  24.  
  25. <HTML><HEAD>
  26. <TITLE>400 Bad Request</TITLE>
  27. </HEAD><BODY>
  28. <H1>Method Not Implemented</H1>
  29. Invalid method in request<P>
  30. </BODY></HTML>
  31.  
  32. nginx.conf
  33. upstream hookbox_upstream {
  34. server 127.0.0.1:8001;
  35. }
  36. upstream shaveet_upstream{
  37. server 127.0.0.1:8082;
  38. }
  39. upstream sqlproxy_upstream{
  40. server 127.0.0.1:8083;
  41. }
  42. upstream msghub_upstream{
  43. server 127.0.0.1:8084;
  44. }
  45. server {
  46.  
  47. listen 80; ## listen for ipv4
  48. listen [::]:80 default ipv6only=on; ## listen for ipv6
  49.  
  50. server_name 192.168.1.13;
  51.  
  52. access_log /var/log/nginx/localhost.access.log;
  53.  
  54. location / {
  55. root /var/www;
  56. index index.php index.html index.htm;
  57. }
  58. location /repository/ {
  59. root /var/www;
  60. autoindex on;
  61. index index.html;
  62. }
  63. location /hookbox/ {
  64. proxy_pass http://hookbox_upstream/;
  65. proxy_set_header Host $http_host;
  66. proxy_set_header X-Real-IP $remote_addr;
  67. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  68. error_page 502 503 504 /maintenance.html;
  69. }
  70. location /shaveet/ {
  71. proxy_pass http://shaveet_upstream/;
  72. proxy_set_header Host $http_host;
  73. proxy_set_header X-Real-IP $remote_addr;
  74. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  75. }
  76. location /sqlproxy/ {
  77. proxy_pass http://sqlproxy_upstream/;
  78. proxy_set_header Host $http_host;
  79. proxy_set_header X-Real-IP $remote_addr;
  80. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  81. }
  82. location /msghub/{
  83. proxy_pass http://msghub_upstream/;
  84. proxy_set_header Host $http_host;
  85. proxy_set_header X-Real-IP $remote_addr;
  86. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  87. }
  88. location /iKarmaRestServer/ {
  89. root /var/www;
  90. include fastcgi_params;
  91. fastcgi_param SCRIPT_FILENAME $document_root/iKarmaRestServer/index.php;
  92. fastcgi_pass 127.0.0.1:9000;
  93. }
  94. include /etc/nginx/php.conf;
  95. }
  96. include /etc/nginx/ssl.conf;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement