Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2016
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.85 KB | None | 0 0
  1. proxy_util.c(2672): AH00951: HTTP: backend socket is disconnected.
  2.  
  3. [Wed Nov 23 14:59:08.383124 2016] [core:trace5] [pid 5084] protocol.c(616): [client X.X.X.X] Request received from client: POST /parse/classes/Product/ HTTP/1.1
  4. [Wed Nov 23 14:59:08.383183 2016] [http:trace4] [pid 5084] http_request.c(394): [client X.X.X.X] Headers received from client:
  5. [Wed Nov 23 14:59:08.383188 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] Host: mydomain.com
  6. [Wed Nov 23 14:59:08.383191 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] X-Parse-Application-Id: MYAPPID
  7. [Wed Nov 23 14:59:08.383194 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] X-Parse-REST-API-Key: MYAPIKEY
  8. [Wed Nov 23 14:59:08.383197 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] 0: Content-Length: 1475
  9. [Wed Nov 23 14:59:08.383200 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] Accept: application/json
  10. [Wed Nov 23 14:59:08.383202 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] Content-Type: application/json
  11. [Wed Nov 23 14:59:08.383223 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] Content-Length: 1475
  12. [Wed Nov 23 14:59:08.383226 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] Expect: 100-continue
  13. [Wed Nov 23 14:59:08.383240 2016] [core:trace4] [pid 5084] util_expr_eval.c(860): [client X.X.X.X] Evaluation of expression from /opt/bitnami/apps/parse/conf/banner.conf:3 gave: 1
  14. [Wed Nov 23 14:59:08.383252 2016] [core:trace4] [pid 5084] util_expr_eval.c(860): [client X.X.X.X] Evaluation of expression from /opt/bitnami/apps/bitnami/banner/conf/banner-substitutions.conf:3 gave: 1
  15. [Wed Nov 23 14:59:08.383269 2016] [core:trace4] [pid 5084] util_expr_eval.c(860): [client X.X.X.X] Evaluation of expression from /opt/bitnami/apps/parse/conf/banner.conf:3 gave: 1
  16. [Wed Nov 23 14:59:08.383273 2016] [core:trace4] [pid 5084] util_expr_eval.c(860): [client X.X.X.X] Evaluation of expression from /opt/bitnami/apps/bitnami/banner/conf/banner-substitutions.conf:3 gave: 1
  17. [Wed Nov 23 14:59:08.383282 2016] [authz_core:debug] [pid 5084] mod_authz_core.c(835): [client X.X.X.X] AH01628: authorization result: granted (no directives)
  18. [Wed Nov 23 14:59:08.383286 2016] [core:trace3] [pid 5084] request.c(293): [client X.X.X.X] request authorized without authentication by access_checker_ex hook: /parse/classes/Product/
  19. [Wed Nov 23 14:59:08.383297 2016] [proxy_http:trace1] [pid 5084] mod_proxy_http.c(60): [client X.X.X.X] HTTP: canonicalising URL //127.0.0.1:1337/parse/classes/Product/
  20. [Wed Nov 23 14:59:08.383326 2016] [proxy:trace2] [pid 5084] proxy_util.c(1962): [client X.X.X.X] http: found worker http://127.0.0.1:1337/parse for http://127.0.0.1:1337/parse/classes/Product/
  21. [Wed Nov 23 14:59:08.383332 2016] [proxy:debug] [pid 5084] mod_proxy.c(1200): [client X.X.X.X] AH01143: Running scheme http handler (attempt 0)
  22. [Wed Nov 23 14:59:08.383337 2016] [proxy_http:trace1] [pid 5084] mod_proxy_http.c(1903): [client X.X.X.X] HTTP: serving URL http://127.0.0.1:1337/parse/classes/Product/
  23. [Wed Nov 23 14:59:08.383342 2016] [proxy:debug] [pid 5084] proxy_util.c(2156): AH00942: HTTP: has acquired connection for (127.0.0.1)
  24. [Wed Nov 23 14:59:08.383347 2016] [proxy:debug] [pid 5084] proxy_util.c(2209): [client X.X.X.X] AH00944: connecting http://127.0.0.1:1337/parse/classes/Product/ to 127.0.0.1:1337
  25. [Wed Nov 23 14:59:08.383353 2016] [proxy:debug] [pid 5084] proxy_util.c(2418): [client X.X.X.X] AH00947: connected /parse/classes/Product/ to 127.0.0.1:1337
  26. [Wed Nov 23 14:59:08.383417 2016] [proxy:debug] [pid 5084] proxy_util.c(2672): AH00951: HTTP: backend socket is disconnected.
  27. [Wed Nov 23 14:59:08.383432 2016] [proxy:trace2] [pid 5084] proxy_util.c(2777): HTTP: fam 2 socket created to connect to 127.0.0.1
  28. [Wed Nov 23 14:59:08.383452 2016] [proxy:error] [pid 5084] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:1337 (127.0.0.1) failed
  29. [Wed Nov 23 14:59:08.383474 2016] [proxy_http:error] [pid 5084] [client X.X.X.X] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
  30. [Wed Nov 23 14:59:08.383478 2016] [proxy:debug] [pid 5084] proxy_util.c(2171): AH00943: HTTP: has released connection for (127.0.0.1)
  31.  
  32. ProxyPass /bitnami !
  33. ProxyPass /rockmongo !
  34. ProxyPass /parse http://127.0.0.1:1337/parse
  35. ProxyPassReverse /parse http://127.0.0.1:1337/parse
  36.  
  37. ProxyPass / http://127.0.0.1:4040/
  38. ProxyPassReverse / http://127.0.0.1:4040/
  39.  
  40. Do not forward /bitnami or /rockmongo
  41. Forward /parse to http://127.0.0.1:1337/parse
  42. Forward / to http://127.0.0.1:4040/
  43.  
  44. var express = require('express');
  45. var ParseServer = require('parse-server').ParseServer;
  46. var app = express();
  47. // Specify the connection string for your mongodb database
  48. // and the location to your Parse cloud code
  49. var api = new ParseServer({
  50. databaseURI: "mongodb://<MY_MONGO_URL>",
  51. cloud: "./node_modules/parse-server/lib/cloud-code/Parse.Cloud.js",
  52. appId: "<MY_APP_ID>",
  53. masterKey: "<MY_MASTER_KEY>",
  54. fileKey: "<MY_FILE_KEY>",
  55. serverURL: 'http://<SERVER_IP>:80/parse'
  56. });
  57. // Serve the Parse API on the /parse URL prefix
  58. app.use('/parse', api);
  59.  
  60. var port = 1337;
  61. app.listen(port, function() {
  62. console.log('parse-server running on port ' + port);
  63. });
  64.  
  65. //Parse Dashboard
  66. var ParseDashboard = require('parse-dashboard');
  67. var dashboard = new ParseDashboard({
  68. apps: [
  69. {
  70. appName: "MY APP",
  71. appId: "<MY_APP_ID>",
  72. masterKey: "<MY_MASTER_KEY>",
  73. fileKey: "<MY_FILE_KEY>",
  74. production: true,
  75. serverURL: 'http://<SERVER_IP>:80/parse'
  76. }
  77. ],
  78. users: [
  79. {
  80. user: XXXX,
  81. pass: XXXX
  82. }
  83. ]
  84. });
  85.  
  86. var allowInsecureHTTP = true;
  87.  
  88. app.use('/', dashboard);
  89.  
  90. var portdash = 4040;
  91. app.listen(portdash, function() {
  92. console.log('parse-dashboard running on port ' + portdash);
  93. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement