I have jailed apache
on freebsd on a private network with ip address 192.168.100.174
, I have another apache server running on the host but it is configured to listen on its other IP addresses but this.
Now what more do I need do to make the jailed apache accessible on another machine on the same network? I have an index.html
page in the DocumentRoot /usr/local/www/apache22/data
. I want to be able to access it through the URL http://192.168.100.174/
apache
is working OK in the jail:
[root@mambo-webhost /]# /usr/local/etc/rc.d/apache22 status
apache22 is running as pid 87597.
[root@mambo-webhost /]#
Thanks
=====
I have two versions of of apache running : one on the host and one in a jail. I installed jailed apache right with in the jail and I'm trying to run the newer PHP version in the Jail. I don't know if I'm really doing the right thing here but I have not come across any documentation on how to achieve this.
I can telnet into 192.168.100.174 on port 80
sandbox2:~$ telnet 192.168.100.174 80
Trying 192.168.100.174...
Connected to 192.168.100.174.
Escape character is '^]'.
...only if apache running on the host (jail host) is listening on the IP address 192.168.100.144. But I need the jailed apache to be the server accessed for request to http://192.168.100.174/
. Is this possible?
netstart -rn
output
# netstat -rn
Routing tables
...
192.168.100.145 d0:27:88:03:19:92 UHLW 1 1605 rl0 1068
192.168.100.173 00:c1:28:00:48:db UHLW 1 507 lo0
192.168.100.174 00:c1:28:00:48:db UHLW 1 1 lo0
...
192.168.100.145
is the other machine requesting for http://192.168.100.174/
ipfw list
output
# ipfw list
ipfw: getsockopt(IP_FW_GET): Protocol not available