HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Multiple Web servers one port 80
Operating System - HP-UX
1834078
Members
2421
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 10:26 AM
03-16-2001 10:26 AM
Multiple Web servers one port 80
We are trying to run a service guard cluster of web servers. Each of our iPlanet servers uses port 80. Is there any way to run more than one web server using the same port. I know I can use a different ip address with each web server ie 123.45.67.89:1 etc. My question is, will port 80 follow the secondary ip address or is there one and only one port 80 on a machine. Has anyone done this and can it be done. Any help would be appreciated.
Jim Krol
james.krol@boeing.com
Jim Krol
james.krol@boeing.com
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 08:29 PM
03-16-2001 08:29 PM
Re: Multiple Web servers one port 80
Hi,
I believe you are referring to virtual host implementation that is available in most webserver software such as apache and IIS.
With virtual host settings, you can specify in the webserver configuration files the following procedures:
For www.a.com -> 1.2.3.4
DocumentRoot: /htdocs/a/
For www.b.com -> 1.2.3.4
DocumentRoot: /htdocs/b/
In this case,
Accessing the URL http://www.a.com gets you to the page /htdocs/a/index.html.
Accessing the URL http://www.b.com gets you to the page /htdocs/b/index.html.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
I believe you are referring to virtual host implementation that is available in most webserver software such as apache and IIS.
With virtual host settings, you can specify in the webserver configuration files the following procedures:
For www.a.com -> 1.2.3.4
DocumentRoot: /htdocs/a/
For www.b.com -> 1.2.3.4
DocumentRoot: /htdocs/b/
In this case,
Accessing the URL http://www.a.com gets you to the page /htdocs/a/index.html.
Accessing the URL http://www.b.com gets you to the page /htdocs/b/index.html.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2001 06:36 PM
03-17-2001 06:36 PM
Re: Multiple Web servers one port 80
Hi,
As far as tcp ports go there is only one port 80. Much like telnet or ftp there is only one port listening on all IP's assigned to a box. netstat -an will show tcp 0 0 *.80 *.* LISTEN or tcp 0 0 *.21 *.* LISTEN or tcp 0 0 *.23 LISTEN until an active socket connection is established then it will change to something similar to tcp 0 0 10.10.10.80.23 10.10.15.5.1803 ESTABLISHED. But I guess thats not to say you couldnt set up another server to answer at a different port in the /etc/services file however then the requesting clients would also have to know which port to query/connect to for the service.
Hope that helps.
Jason
As far as tcp ports go there is only one port 80. Much like telnet or ftp there is only one port listening on all IP's assigned to a box. netstat -an will show tcp 0 0 *.80 *.* LISTEN or tcp 0 0 *.21 *.* LISTEN or tcp 0 0 *.23 LISTEN until an active socket connection is established then it will change to something similar to tcp 0 0 10.10.10.80.23 10.10.15.5.1803 ESTABLISHED. But I guess thats not to say you couldnt set up another server to answer at a different port in the /etc/services file however then the requesting clients would also have to know which port to query/connect to for the service.
Hope that helps.
Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2001 07:56 PM
03-18-2001 07:56 PM
Re: Multiple Web servers one port 80
Hi,
Since you are running a MC/ServiceGuard cluster, you should be using the floating IP address.
MC/ServiceGuard aside, rather than running multiple webservers to serve different functionalities, it would be cleaner and more efficient to use virtual hosting.
Example:
Webserver 1:
www.a.domain.com -> 1.2.3.4 (floating IP)
www.b.domain.com (virtual host) -> 1.2.3.4 (floating IP)
When your primary webserver fails over to your secondary webserver in the cluster, the web service on your secondary webserver is started up with a similar configuration (using the floating IP).
And within the web serviceguarded package, you can configure multiple virtual hosts for your web server configuration (eg. httpd.conf). In this example, there is only one virtual host ie. www.b.domain.com configured.
The result of using ServiceGuard (ie. floating IPs) and virtual host (ie. httpd.conf) is that you can have two websites running on a single web service package that fails over from your primary webserver to your secondary webserver.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Since you are running a MC/ServiceGuard cluster, you should be using the floating IP address.
MC/ServiceGuard aside, rather than running multiple webservers to serve different functionalities, it would be cleaner and more efficient to use virtual hosting.
Example:
Webserver 1:
www.a.domain.com -> 1.2.3.4 (floating IP)
www.b.domain.com (virtual host) -> 1.2.3.4 (floating IP)
When your primary webserver fails over to your secondary webserver in the cluster, the web service on your secondary webserver is started up with a similar configuration (using the floating IP).
And within the web serviceguarded package, you can configure multiple virtual hosts for your web server configuration (eg. httpd.conf). In this example, there is only one virtual host ie. www.b.domain.com configured.
The result of using ServiceGuard (ie. floating IPs) and virtual host (ie. httpd.conf) is that you can have two websites running on a single web service package that fails over from your primary webserver to your secondary webserver.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP