144 reputation
4
bio website
location Sydney, Australia
age 25
visits member for 3 years, 7 months
seen Jul 1 at 13:45

Dec
4
answered How to set up Apache 2 to serve only subdirectories
Dec
4
comment How to set up Apache 2 to serve only subdirectories
Scrap that, I just managed to do it with an Alias instead of a DirectoryRoot in Site1's config.
Dec
4
comment How to set up Apache 2 to serve only subdirectories
It is internet facing - was just trying to not to have to get more domains set up.
Dec
4
comment How to set up Apache 2 to serve only subdirectories
OK - makes sense now. This question should probably be closed because it turns out I can't do exactly what I was trying to do?
Dec
4
comment How to set up Apache 2 to serve only subdirectories
This does indeed seem to be the problem. I need to use Virtual Hosts for that kind of separation, but virtual hosts must be different domain/subdomains or different IPs, they can't be just different subdirectories?
Dec
4
awarded  Commentator
Dec
4
comment How to set up Apache 2 to serve only subdirectories
Do virtual hosts need to have domain names?
Dec
4
comment How to set up Apache 2 to serve only subdirectories
http2.conf is empty as per normal install of apache2 from ubuntu repos
Dec
4
comment How to set up Apache 2 to serve only subdirectories
Does that clear it up for you at all?
Dec
4
comment How to set up Apache 2 to serve only subdirectories
Please try not to get frustrated - this solution, as I have stated several times, DOES NOT prevent me from accessing http://1.2.3.4/site2/secretstuff, because site1's config serves it when it shouldn't, because as the question states, I don't know how to make site1's config not respond to the request http://1.2.3.4/site2/*. It shouldn't respond to anything other than URLs which specify the site1 subdirectory.
Dec
4
revised How to set up Apache 2 to serve only subdirectories
further clarification
Dec
4
comment How to set up Apache 2 to serve only subdirectories
I just want to make site1's config only respond to requests of the form http://1.2.3.4/site1/* and not handle requests of the form http://1.2.3.4/
Dec
4
comment How to set up Apache 2 to serve only subdirectories
It's pretty much the 'only in subdirectories' part that's important, I thought. As in, I already have site2 and site3's configs done correctly (django wsgi doing the private stuff + apache serving public static files), but site 1's config is either serving all 3 site's entire directories, or serving only its own but as the root url http://1.2.3.4/ instead of http:///1.2.3.4/site1
Dec
4
comment How to set up Apache 2 to serve only subdirectories
So with this answer, http://1.2.3.4./site2/secretstuff/ serves /var/www/site2/secretstuff/. This folder is full of secret stuff which should not be made public.
Dec
4
comment How to set up Apache 2 to serve only subdirectories
All I want is to know how to make apache only respond to URLs which specify a subdirectory.
Dec
4
awarded  Editor
Dec
4
revised How to set up Apache 2 to serve only subdirectories
typo + further clarification.
Dec
4
comment How to set up Apache 2 to serve only subdirectories
I was worried I wasn't clear enough. Essentially when I do what you say, it serves all the files from all the sites. I need some of the sites to only serve specific files (actually they're django+relevant static files). The django parts should not be served, but are in their respective /var/www/ directories
Dec
4
comment How to set up Apache 2 to serve only subdirectories
Updated question with reasons why that doesn't work
Dec
4
asked How to set up Apache 2 to serve only subdirectories