I have 3 sites which need to be hosted on a web server (apache2 from repo running on Ubuntu 12.04). They are each in their own subdirectory within
I would like apache to serve files from the relevant directories only if the directory name is given in the URL, but not serve the
/var/www/ directory itself.
http://22.214.171.124/site1/ should work and serve the index from
http://126.96.36.199/ should not serve anything.
Currently, I can't get the url to point to the directory. Either I can get
http://188.8.131.52/ to serve everything within
/var/www/site2/secretstuff/), or I can get the root
http://184.108.40.206/ to serve one of the subdirectories (
/var/www/site1/). This is unacceptable site 1 needs Indexes enabled but the others must not.
I just want to make site1's config only respond to requests of the form
http://220.127.116.11/site1/* and not handle requests of the form
I do not have a domain name set up so I can't use subdomains.