Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


CBSYS

133 posts

Master Geek


#199249 10-Aug-2016 09:47
Send private message

Hi There,

 

 

 

We are trying to host our website on our own server in our own office.

 

The problem is the port 80 is using by an other service and we could not change it. And we are using Ubuntu as OS for all our VMs.

 

My question is, is that possible to make URL pointing to the same IP address but different port with 80?

 

How can we do that please?

 

 

 

Thanks!





CBSYS Ltd
WORKFORCE SOLUTION - FINGER SCAN - TIME CLOCKS
 
http://www.cbsystems.co.nz

Create new topic
Dynamic
4015 posts

Uber Geek
+1 received by user: 1851

ID Verified
Trusted
Lifetime subscriber

  #1607432 10-Aug-2016 09:53
Send private message

Yes it will be possible, but I have not enough experience to give you any significant guidance.

 

Is this absolutely necessary?  Hosting a web site in-house strikes me as a risk.  If the site is compromised (which these days is not a rare event), you potentially have an undesirable someone with access to your internal network.





“Don't believe anything you read on the net. Except this. Well, including this, I suppose.” Douglas Adams




solutionz
589 posts

Ultimate Geek
+1 received by user: 164
Inactive user


  #1608626 10-Aug-2016 14:45
Send private message

Google "vhost"; you will need to configure it on your router or webserver to redirect traffic based on target address to your server of choice:
ws1.yourdomain.com:80 > 192.168.1.10:80
ws2.yourdomain.com:80 > 192.168.1.11:80
ws3.yourdomain.com:80 > 192.168.1.11:8080

Or if you're happy to run your webservers on different ports without automatic redirection then just setup port forwarding on your router from your WAN IP to whatever internal IP's / ports:
123.456.7.8:81 > 192.168.1.10:80
123.456.7.8:82 > 192.168.1.11:80
123.456.7.8:83 > 192.168.1.10:8080

richms
29098 posts

Uber Geek
+1 received by user: 10207

Trusted
Lifetime subscriber

  #1608627 10-Aug-2016 14:47
Send private message

If it is on an alternate port expect people to have problems understanding what to type to be able to access it, and in many cases being unable to access it as proxys will often prevent access to other than standard ports.





Richard rich.ms



onebytemike
90 posts

Master Geek
+1 received by user: 21


  #1608638 10-Aug-2016 14:51
Send private message

A reverse proxy would do the trick.  Have seen a number used but nginx would be my go-to for this.


CBSYS

133 posts

Master Geek


  #1610318 11-Aug-2016 21:08
Send private message

thanks guys, I might still don't quite understand how to do this, but I guess it's possible though.

 

I will do some research, but if anyone here could give some further instruction, that would be great appreciated. 





CBSYS Ltd
WORKFORCE SOLUTION - FINGER SCAN - TIME CLOCKS
 
http://www.cbsystems.co.nz

freitasm
BDFL - Memuneh
80646 posts

Uber Geek
+1 received by user: 41029

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #1610337 11-Aug-2016 21:26
Send private message

What other service is using port 80? It is a standard port for http so any non-http service using port 80 would be strange.

 

If it is a http service (such as a remote camera) but you need to direct your website traffic to the new server then you will need to have a reverse proxy that will look at the request and then decide to which IP in your network to send it.

 

If it's not a http service then things get a bit more complicated.





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.