0

I need to run three different IP-based webservers under a single domain (mycompany.com) with vhost on Apache 2.4.

192.168.0.1 (mycompany.com) 192.168.0.2 (sales dept.) 192.168.0.3 (finance dept.) 192.168.0.4 (manufacture dept.)

How can I set vhost to use a sub-site to access each department's webserver? (e.g., www.mycompany.com/sales, www.mycompany.com/finance etc.)

2
  • 1
    set up dns and use sales.example.org etc as a vhosts. otherwise using a alias and proxy it. but this is a basic administrative process and you have to show what you have done sofar to solve it Commented Aug 20, 2024 at 10:20
  • 1
    Why do you want IP based vhosting? Name based is far easier, more flexible and better practice. To me this reads as a educational exercise, not a real world problem. Commented Aug 20, 2024 at 10:28

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.