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.


128 posts

Master Geek


Topic # 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!


Create new topic
2437 posts

Uber Geek
+1 received by user: 718

Trusted
Lifetime subscriber

  Reply # 1607432 10-Aug-2016 09:53
2 people support this post
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.





"4 wheels move the body.  2 wheels move the soul."

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

529 posts

Ultimate Geek
+1 received by user: 125

Subscriber

  Reply # 1608626 10-Aug-2016 14:45
One person supports this post
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

21389 posts

Uber Geek
+1 received by user: 4336

Trusted
Subscriber

  Reply # 1608627 10-Aug-2016 14:47
One person supports this post
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

83 posts

Master Geek
+1 received by user: 18


  Reply # 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.




128 posts

Master Geek


  Reply # 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. 


BDFL - Memuneh
61192 posts

Uber Geek
+1 received by user: 11974

Administrator
Trusted
Geekzone
Lifetime subscriber

  Reply # 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.





Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



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.

Alternatively, you can receive a daily email with Geekzone updates.