pump.io port in URL


I just installed pump.io on my server (CentOS 6.5, x64), and I also have a Ghost blog (blog.mydomain.example) hosted on my server, which is behind Apache. The home page of my site is a static html page.

Now the problem is: when I visit social.mydomain.example, I'll be redirected to my blog (the URL is still social.mydomain.example). I can only visit pump.io by entering social.mydomain.example:31337 and the user link would be something like social.mydomain.example:31337/test. How can I make the port number disappear in the URL and visit pump.io via social.mydomain.example? Thanks!

Here are some configurations on my server:

Apache host settings:

<VirtualHost *:80>
    ServerName blog.mydomain.example
    ProxyPreserveHost on
    ProxyPass /

<VirtualHost *:80>
    ServerName  mydomain.example    
    ServerAlias www.mydomain.example 
    ProxyRequests off
    DocumentRoot /var/www/html

How I installed pump.io

cd /usr/bin/nodejs/
git clone https://github.com/e14n/pump.io.git
cd pump.io
npm install

cd pump.io/node_modules/databank
npm install databank-mongodb

cd /usr/bin/nodejs/pump.io/bin
forever start pump

My pump.io configuration

cat /etc/pump.io.json

    "driver":  "mongodb",
    "params":  {"host": "localhost"},
    "secret":  "pumpiol",
    "noweb":  false,
    "port": 31337,
    "site":  "social.mydomain.example",
    "owner":  "NetAdmin",
    "ownerURL":  "http://mydomain.example",
    "hostname":  "social.mydomain.example",
    "nologger":  false,
    "serverUser":  "pumpio",
    "uploaddir": "/var/local/pump.io/uploads",
    "debugClient": false,
    "firehose": "ofirehose.example"

My iptables configuration

-A INPUT -m state --state NEW -m tcp -p tcp --dport 31337 -j ACCEPT

My DNS zone file:

A (Host)
Host    Points To   
@   M.Y.I.P
CName (Alias)
Host    Points To
blog    @   
social  @   
www @

OK since I got the badge of Tumbleweed, I'm encouraged to provide an answer.

For those like me who want a self-own microblogging service along with a blog, a home page (multiple sub-domains with one host server), while don't want the port number shown in the url, I recommend storytlr. It meet all my needs and it has been easily installed on a CentOS server (mine is 6.5, x64). The latest stable release is 1.20. Simple and direct.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at


Login to comment


TOP Ranking

  1. 1

    How to return a single asset OhMyBrew Laravel Shopify

  2. 2

    Can't pre-populate phone number and message body in SMS link on iPhones when SMS app is not running in the background

  3. 3

    How to import an asset in swift using Bundle.main.path() in a react-native native module

  4. 4

    Loopback Error: connect ECONNREFUSED (MAMP)

  5. 5

    pump.io port in URL

  6. 6

    Spring Boot JPA PostgreSQL Web App - Internal Authentication Error

  7. 7

    Failed to listen on localhost:8000 (reason: Cannot assign requested address)

  8. 8

    Make a B+ Tree concurrent thread safe

  9. 9

    Group boxplot data while keeping their individual X axis labels in ggplot2 in R

  10. 10

    Compiler error CS0246 (type or namespace not found) on using Ninject in ASP.NET vNext

  11. 11

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  12. 12

    BigQuery - concatenate ignoring NULL

  13. 13

    Jquery different data trapped from direct mousedown event and simulation via $(this).trigger('mousedown');

  14. 14

    12.04.3--- Dconf Editor won't show com>canonical>unity option

  15. 15

    Razor Page - How to redirect to another folder's page using asp-for tag helper

  16. 16

    "django.db.utils.ProgrammingError: relation "auth_user" does not exist" Django V2.0

  17. 17

    How to exclude a specific git submodule from update?

  18. 18

    how to fix CMake Error in CMakeLists.txt: Generator NMake Makefiles does not support platform specification, but platform x64 was specified

  19. 19

    Is there a way to ask the user before loading the website

  20. 20

    How to remove the extra space from right in a webview?

  21. 21

    Optimising manipulation of large vectors