linux - Hide port 8383 in glassfish 3.1.2 -
i running glassfish 3.1.2
on linux 6
server deploy oracle apex
.
i want to hide port 8383 url (current url : https://sd1.domain.com:8383/apex)
80 , 443 port assigned service.
so, how can hide port 8383 url.
a tcp connection between 2 ip:port pairs. in case server's port common 1 80/443, browsers don't display it.
you can use reverse proxy on port 80, classifies incoming http traffic. check subdomain in http header , forward traffic 1 of 2 web servers (which both listen on dedicated ports).
with nginx config file this:
server { server_name sd1.domain.com; location / { proxy_set_header x-real-ip $remote_addr; proxy_set_header host $host; proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for; proxy_pass http://localhost:8383; } } server { server_name www.domain.com; location / { proxy_set_header x-real-ip $remote_addr; proxy_set_header host $host; proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for; proxy_pass http://localhost:8080; } }
Comments
Post a Comment