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.
OWN reverse proxy (one IP) for multiple sites
Is it possible to create something like multiple reverse proxy, the one server will have installed nginx or similar software maybe apache_proxy and when someone request test1.com which will have in nameservers reverse proxy ip this will load from hidden server behind reverse proxy IP, but i want to have behind one reverse proxy IP multiple sites, so asking how?
Comments
Sure, using vhosts
i already have vhosts so 5 domains can exist on one server, but i want have those behind reverse proxy
start reading here: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
or for nginx: https://www.nginx.com/resources/admin-guide/reverse-proxy/
Yes this is possible! Just do something like this
So people will connect to your server on port 80 using example.com, get directed to your vhost server block, and for location / (all locations) they will be proxied to port 8000.
thx both
but @Jonchun, can i have in nginx conf for port 80 more than 1 domain ?
Yes of course. The above configuration should be for each of your virtual hosts.
Yes it's possible, I'm doing it caddyserver (was previously using Nginx) depending on which subdomain/domain you hit and the path depends which backend you get.
It allows me to host multiple services/applications on port 443/80 on a single IP
thx guys!
As the example Jonchun gave ... I'm using to it have my Proxmox running on a single IPv4 address dispatch the HTTP request to any of the NATted guests (VMs) based on the requested domainname.
I set it up using the info on this page: https://help.ubuntu.com/community/Nginx/ReverseProxy
can i do this on already cloudflare domain like this one???
WHM Superb with the nginx reverse proxy install can do this under the default. The nginx will listen for all domains pointed to it and forward it to the backend cpanel server which hosts the actual website.
This is one of the nginx reverse proxy confs I use for one of my sites.
I use the reverse proxy as one of my sites get ddosed a lot.
Note: This will make ur site accessible by SSL only, http will be automatically f/w'd to https