🦖 Portzilla

The Skinny

Proxy traffic from any URL on your domain to a service listening on another port. You can even send custom headers along with each request.

Say your hosting your docs on a server listening on port 4080, Portzilla can proxy traffic from docs.yoursite.com or www.yoursite.com/docs to your server.

curl https://www.yoursite.com/docs → https://yoursite.com:4080

You would normally need NGINX or something for this, but you can just use Portzilla now.

How to Install

Powered by Cloudflare

Portzilla is powered by Cloudflare. If you're already using Cloudflare, click here to install Portzilla.


Cloudflare offers DDoS protection, a global CDN, SSL certificates, and a lot more cool stuff for free. You should probably use it.

DNS Records

DNS configuration is required for Portzilla to work. Luckily, Portzilla handles this configuration automatically behind the scenes. When you set up Portzilla, you'll see some new DNS records on your Cloudflare DNS page.


Portzilla uses a DNS record called SRV records to proxy requests from your website to other services on your domain.

Network Policies

Services that Portzilla proxies must be open to incoming network requests. You might need to adjust your network policy to ensure each proxied port is accepting traffic. Refer to your network policy documentation to learn how to open ports on your platform.


If you open a port on your Cloudflare-enabled site, your service won't automatically respond on http://www.yoursite.com:<PORT>. You'll need to set a SRV record first or you can let Portzilla do this for you.

To test your service, install Portzilla and set up a route to the port its listening on. If you get an Error Page when your visit the Route URL, you probably need to tweak your network policy.


Portzilla is easy to set up once you get your ports open! The instructions on the installation page are fairly self explanatory, but we'll go into a little more detail here.

The following Route Configuration is available for each route Portzilla should handle.

These Advanced Options are also available:

Route Configuration

Route Name

You should name your route something to remember it by. The following is another informative table.

Route Name Result
muh route 🤮
docs to vuepress server 🎉
swagger ui 🎉

Keen users will notice that DNS Records set by Portzilla will also be identified by this Route Name.


Don't put any sensitive information in Route Name. You should find a better place to put that.

Route URL

Traffic to this URL will be proxied to Target Port below. This can be any URL on your domain and can include subdomains. It is important that a full URL is specified here. Portzilla won't like it if you supply a path like /store here. It requires a URL like yoursite.com/store to work right. Here's some more examples in an informative table.

Route URL Result
/sad/path 🤮
yoursite.com/cool-beans 🎉
blog.yoursite.com 🎉

Portzilla will automatically proxy all requests to any subfolders of Route URL. In the table above, traffic to blog.yoursite.com/topics will also go to Target Port.

Target Port

All traffic from Route URL and any of its subfolders will be proxied to the service running on this port. Portzilla respects your rights as a sovereign internet citizen and allows any Target Port, but you probably shouldn't use ports like 22 and 25 for obvious reasons.


Port 22 and 25 are used by the SSH and SMTP protocols, respectively.

Custom Headers

You can specify any number of headers to pass along with requests sent to the service running on Target Port. Each header should be new-line separated. In other words, hit enter after each header you type. Here's what custom headers might look like in your Portzilla configuration.

X-Forwarded-From: blog
Some-Other-Header: hey lol
athirdheader: you get the point

Custom Error Page

An HTML template to show if your service on Target Port is unresponsive. If you don't add a template, Portzilla will use its default error page.


Portzilla will render it's default Error Page unless you specify your own template in Custom Error Page.

The Error Page will appear after the number of seconds configured in Fetch Timeout.


Enable Advanced Options > Debug Mode to display Portzilla's Debug Page instead. This is useful if you're having trouble connecting to your service on Target Port.


If traffic to Route URL is using https, the proxied request will also use https. Enable this to use http instead.

Advanced Options

Fetch Timeout

This is the number of seconds Portzilla will wait for a response from the service listening on Target Port before giving up and rendering the Error Page. The default value is 5 seconds.


If your service takes a while to spin up or is otherwise slow, increase Fetch Timeout.

Disable Portzilla

If you want to temporarily disable Portzilla and all your routes, this is your option.

Debug Mode

This is useful if you're having trouble connecting to your service on Target Port. When Debug Mode is active, the Portzilla Debug Page will appear after a failed request.


In Debug Mode, Fetch Timeout is set very high so the request will complete.


The Custom Error Page logo was designed by Kiranshastry at FlatIcon.