New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
If you are using Cloudflare (free) there's a one-click app in their store. It's free to use to route subdomain to port its called Portzilla.
Maybe try using caddy?
https://caddyserver.com/docs/quick-starts/reverse-proxy
Contents of Caddyfile:
sub.domain.com reverse_proxy 127.0.0.1:9000
Then do a
caddy run
in the same directory as the caddyfile.Thank you but I prefer hosted solution instead.
I already have Nginx on port 80 and on port 9000 I already have something listening on that port.
Will thay interfere the service running on port 9000?
Use nginx reverse proxy for your domain to port 9000. Examples taken from their site. Add this to your subdomain server configuration:
https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
I use nginxs proxy manager life saver
https://nginxproxymanager.com/
For lighttpd
It doesn't work for main page but for other page it works.
Is it a docker based program?
Gonna look after it.
Yes, it's based on docker and it's quite awesome. Recommend as well.
Saving for future use.
For lightweight reverse proxy needs, I typically have used https-portal (https://github.com/SteveLTN/https-portal). Configure the proxy map within the docker-compose yaml.
Other implementations I have seen ... linuxserver's SWAG can do the job as well
Dear @Fritz!
What you want to achieve is a bit unclear to me, but since you asked for a subdomain solution specifically, I would like to let you know that the domain name system has an SRV record type. With the SRV records you may point a subdomain to a specific port, regardless of the protocol.
That's for service discovery. My impression is that's not what is being sought here.
This is cool, life saver.
Indeed it is running very good. Small memory footprint.
It should be free, I have tried it.
Try to add it from Cloudflare Dashboard.
I am referring for reverse proxy to Port.
I stick to my existing nginx installation for now.
That's right my friend.
Thanks bro.
Here is my final configuration if anyone interested :
Quite good as I don't need to use docker.
By making changes in virtualhost port configuration
thanks, i need this for my project.
I am experimenting with non as well
This is awesome. Thanks
You can redirect your domain to a certain port. This depends on the WebService you are using -Nginx/Apache. If you are using Nginx, you’ll need to do add a server block to your Nginx’s website config. This can be achieved by using the bellow
location /{
proxy_pass http://127.0.0.1:9000/;
}
Gets my vote.