Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- proxy_util.c(2672): AH00951: HTTP: backend socket is disconnected.
- [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
- [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:
- [Wed Nov 23 14:59:08.383188 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] Host: mydomain.com
- [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
- [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
- [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
- [Wed Nov 23 14:59:08.383200 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] Accept: application/json
- [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
- [Wed Nov 23 14:59:08.383223 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] Content-Length: 1475
- [Wed Nov 23 14:59:08.383226 2016] [http:trace4] [pid 5084] http_request.c(398): [client X.X.X.X] Expect: 100-continue
- [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
- [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
- [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
- [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
- [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)
- [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/
- [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/
- [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/
- [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)
- [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/
- [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)
- [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
- [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
- [Wed Nov 23 14:59:08.383417 2016] [proxy:debug] [pid 5084] proxy_util.c(2672): AH00951: HTTP: backend socket is disconnected.
- [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
- [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
- [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
- [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)
- ProxyPass /bitnami !
- ProxyPass /rockmongo !
- ProxyPass /parse http://127.0.0.1:1337/parse
- ProxyPassReverse /parse http://127.0.0.1:1337/parse
- ProxyPass / http://127.0.0.1:4040/
- ProxyPassReverse / http://127.0.0.1:4040/
- Do not forward /bitnami or /rockmongo
- Forward /parse to http://127.0.0.1:1337/parse
- Forward / to http://127.0.0.1:4040/
- var express = require('express');
- var ParseServer = require('parse-server').ParseServer;
- var app = express();
- // Specify the connection string for your mongodb database
- // and the location to your Parse cloud code
- var api = new ParseServer({
- databaseURI: "mongodb://<MY_MONGO_URL>",
- cloud: "./node_modules/parse-server/lib/cloud-code/Parse.Cloud.js",
- appId: "<MY_APP_ID>",
- masterKey: "<MY_MASTER_KEY>",
- fileKey: "<MY_FILE_KEY>",
- serverURL: 'http://<SERVER_IP>:80/parse'
- });
- // Serve the Parse API on the /parse URL prefix
- app.use('/parse', api);
- var port = 1337;
- app.listen(port, function() {
- console.log('parse-server running on port ' + port);
- });
- //Parse Dashboard
- var ParseDashboard = require('parse-dashboard');
- var dashboard = new ParseDashboard({
- apps: [
- {
- appName: "MY APP",
- appId: "<MY_APP_ID>",
- masterKey: "<MY_MASTER_KEY>",
- fileKey: "<MY_FILE_KEY>",
- production: true,
- serverURL: 'http://<SERVER_IP>:80/parse'
- }
- ],
- users: [
- {
- user: XXXX,
- pass: XXXX
- }
- ]
- });
- var allowInsecureHTTP = true;
- app.use('/', dashboard);
- var portdash = 4040;
- app.listen(portdash, function() {
- console.log('parse-dashboard running on port ' + portdash);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement