i have no idea where to ask this so i though i would start here.
i have a small home network with a linux box (CentOS 5.4, Apache 2.2.3)
currently all but
www.mydomain.com/internet/ is blocked to everyone outside local lan by this config
Code:
<Location />
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from 10.
</Location>
<Location /internet>
Order allow,deny
Allow from all
</Location>
allowing my local network 10.0.0.0/8
currently my router is setup to port forward 80 to 10.1.1.2 (address of the server)
and it works fine with people who browse to
www.mydomain.com from the internet get a 403 and when going to
www.mydomain.com/internet/ are allowed, and people on the local lan get allowed to both
i would like to have it setup with some kind of virtual hosting so that when people form the internet enter
www.mydomain.com/ they get the page
www.mydomain.com/internet/
while if i enter
www.mydomain.com/ from my local lan they get the main directory.
i have no idea how to do this im not very familiar with the httpd config files.