- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- apche configuration!
Operating System - Linux
1754379
Members
3345
Online
108813
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
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
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
02-06-2005 06:59 PM
02-06-2005 06:59 PM
apche configuration!
Hi all,
I have 2 apache servers (192.168.1.1 and 192.168.1.2) in my network hosted on linux operation system
I have only one public ip address.(61.6.65.222->router-ip)
My router will divert all http requests to 192.168.1.1
That means http://61.6.65.222 will be http://192.168.1.1
I have 2 domain names. It.mydomain.com and hq.mydomain.com
So http://it.mydomain.com , http://hq.mydomain.com and http://61.6.65.222 all will point to 192.168.1.1 server.
That’s my setup.
Question 1.
But now I want to point http://hq.mydomain.com to 192.168.1.2 server
What configurations I have to make in 192.168.1.1 and 192.168.1.2?
Question 2
I want to use 2 ports ..80 and 8080
If I use http://192.168.1.1
That should use the document path as /var/www/html/it
If I use http://192.168.1.1:8080
That should use the document path as /var/www/html/hq
How to configure my virual hosts ?
Thanks in advance.
Ajay.
I have 2 apache servers (192.168.1.1 and 192.168.1.2) in my network hosted on linux operation system
I have only one public ip address.(61.6.65.222->router-ip)
My router will divert all http requests to 192.168.1.1
That means http://61.6.65.222 will be http://192.168.1.1
I have 2 domain names. It.mydomain.com and hq.mydomain.com
So http://it.mydomain.com , http://hq.mydomain.com and http://61.6.65.222 all will point to 192.168.1.1 server.
That’s my setup.
Question 1.
But now I want to point http://hq.mydomain.com to 192.168.1.2 server
What configurations I have to make in 192.168.1.1 and 192.168.1.2?
Question 2
I want to use 2 ports ..80 and 8080
If I use http://192.168.1.1
That should use the document path as /var/www/html/it
If I use http://192.168.1.1:8080
That should use the document path as /var/www/html/hq
How to configure my virual hosts ?
Thanks in advance.
Ajay.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 02:29 AM
02-07-2005 02:29 AM
Re: apche configuration!
Question 1.
Answer: You will need access to the data (the html pages) on the second machine. Then you will need the httpd.conf and other conf files. You may have to make adjustments if you have numeric ip addresses int he configuration files.
If this is apache 2, you can include port numbers in your virutalhost statements.
DocumentRoot /var/www/html/it
...
# other stuff
DocumentRoot /var/www/html/hq
...
# other stuff
SEP
Answer: You will need access to the data (the html pages) on the second machine. Then you will need the httpd.conf and other conf files. You may have to make adjustments if you have numeric ip addresses int he configuration files.
If this is apache 2, you can include port numbers in your virutalhost statements.
DocumentRoot /var/www/html/it
...
# other stuff
DocumentRoot /var/www/html/hq
...
# other stuff
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP