Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I'm using one ADSL connection to run two web servers. One is a Linux server and the other one is a Windows server. I have registered my domain in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie amithad's Avatar
    Join Date
    Sep 2006
    Location
    Sri Lanka
    Posts
    160

    Lightbulb Hiding Port from URL Redirection


    Hi,

    I'm using one ADSL connection to run two web servers. One is a Linux server and the other one is a Windows server.

    I have registered my domain in another remote server and by creating subdomains I'm redirecting those sub domain names to my internal servers via ADSL router. For the above purpose I'm using a HTML redirect clause

    <meta http-equiv="Refresh" content="0; url=http://xxx.xxx.com:8082/foldername">
    since two web servers are running I cannot allocate port 80 for both servers. One server I'm using port 8082 as the web server port. But I need to hide it from browser's URL display. Is this possible. Any method please?

    Thanks !

  2. #2
    Linux Newbie
    Join Date
    Apr 2012
    Posts
    112
    Quote Originally Posted by amithad View Post
    Hi,

    I'm using one ADSL connection to run two web servers. One is a Linux server and the other one is a Windows server.

    I have registered my domain in another remote server and by creating subdomains I'm redirecting those sub domain names to my internal servers via ADSL router. For the above purpose I'm using a HTML redirect clause



    since two web servers are running I cannot allocate port 80 for both servers. One server I'm using port 8082 as the web server port. But I need to hide it from browser's URL display. Is this possible. Any method please?

    Thanks !
    do you mean that you want to hide the port number from the URL display?

    http://mywindowsserver instead of http://mywindowsservr:8082

  3. #3
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,391
    Theoretically, a proxy configuration in the virtual host section of the apache configuration on the remote server can "hide" the real url.

    But -and I mean no disrespect- this setup makes me cringe.
    - It is complex. Proxy config, port forwarding, 3 servers and at least 2 networks involved.
    - Bughunting will be hard. In case of problems you need to check and correlate the logs of the remote server, your router, proxy/apache/iis config
    - Monitoring and availability. dsl may change the IP every X hours. Even with a service like dyndns, there might be downtimes.
    - dsl: upload speed ( == download speed for the webuser) is probably very low.

    At least for the internal linux server there seems to be a easy solutions:
    Host this website on the remote server.
    For the windows box: windows servers can of course also be acquired by the usual providers. Point the dns of the subdomain to it, and you are done.
    You must always face the curtain with a bow.

  4. #4
    Linux Newbie amithad's Avatar
    Join Date
    Sep 2006
    Location
    Sri Lanka
    Posts
    160
    Quote Originally Posted by manyrootsofallevil View Post
    do you mean that you want to hide the port number from the URL display?

    http://mywindowsserver instead of http://mywindowsservr:8082

    yes the URL http://mywindowsserver only not with the port

  5. #5
    Just Joined!
    Join Date
    May 2006
    Posts
    36
    Why not use virtual hosts? Even ISS can do that. Then you have 2 different domains hosted on the same server.
    You can't expect a webserver knows automagicly if you want to reach webhost1 or webhost2.
    You are either stuck with virtualhosts or with multiple IP addresses.
    /edit didn't read well in the first place.. soz... but still, I would choose to host both domains on the same server and use virtual hosts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •