Apache2 Virtual host on LAN
Hi,
I want to run different apps whose cgi-bins are different. Virtual host configuration gives about the domain name. I access the machine with ip like http://xx.xx.xx.xx/abcd. If I want diff apps on that server I can go with different ports. How do i setup it using ports or urls.. Thanks |
accessing a web server by ip address is never a good idea. can you really not use some form of DNS or local hosts files at worst??
|
What exactly is it you are trying to do, perhaps with a few more details we can give you a better answer.
|
Setup
Actually i am trying to run diff versions of a application on the same server. The requests to the apache in turn will be passed to the one of the multiple tomcat servers running. But I use cgi-bin also because of which I need multiple virtual hosts. Hope I am clear
|
Add the desired ports to the httpd.conf (or ports.conf file if you have one).
Code:
Listen 80 Code:
Listen 192.168.1.1:8000 Code:
include /path/to/virtualhostfile.conf Code:
<VirtualHost 192.168.1.1:8000> |
All times are GMT -5. The time now is 01:53 AM. |