Avatar of EddieGomez
EddieGomez
 asked on

How do I point a specifc IP address and Port to an Apache document root folder?

We have a new server which we want to use to host our website.  This server has two NIC ports.  One port will be used for our internal (LAN) network and the other port will be used for the external world.  Both addresses will be internal NAT (ex. 192.168.1.1 & .2)  We will configure our firewall to forward all external requests to a specific port (ex. 89) on 192.168.1.2.

Is there a way to specifically state in Apache that any http traffic coming from NIC 192.168.1.2:89 will point to htdocs/XYZ?   We may have multiple folders in the document root but any port 89 traffic from just that one specific IP address (NIC Port) will point to folder XYZ.

Any assistance would be greatly appreciated!

Thanks in advance.

Apache Web Server

Avatar of undefined
Last Comment
EddieGomez

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
giltjr

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
EddieGomez

ASKER
Thank you for the heads-up.  After I posted my question, I did an all-nighter investigating some more and came across Virtual Hosts.  That is the route I have taken.  Thank you for the insight!
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck