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://188.8.131.52/site1/ should work and serve the index from
http://184.108.40.206/ should not serve anything.
Currently, I can't get the url to point to the directory. Either I can get
http://220.127.116.11/ to serve everything within
/var/www/site2/secretstuff/), or I can get the root
http://18.104.22.168/ 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://22.214.171.124/site1/* and not handle requests of the form
I do not have a domain name set up so I can't use subdomains.