Skip to content

PagePark routing requests between apps on the same server #17

@scripting

Description

@scripting

The problem

Longstanding problem with PagePark, my homebrew web server.

  • Suppose two apps are running on the same machine where PP is the http server.

  • Say one app is on the domain hello.com and the other is goodbye.com.

  • Suppose the first makes a request of the second.

    http://goodbye.com/index.html

  • It will get a connection refused.

  • Make the request from another server and it works fine.

Where to look

This is where PP maps requests to domains it's serving.

BTW, it uses request, yes I know it has been deprecated.

The pipe stuff in delegateRequest is like a black box to me, I don't really understand the magic it's doing or if it's really necessary. It probably isn't, but I wrote this code a long time ago, when I wasn't as skilled in Node.

Any help much appreciated. :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions