I'm playing around and trying to understand a bit how Apache configuration
works.
I'm doing pretty well just reading through documentation and using the guess
and
check method, but I'm stuck on a few things

I have these sites on dyndns.org:
*.twdp.hobby-site.org
*.coolaj86.is-a-geek.net
*.ajoneal.homeip.net

I have a <VirtualHost *:80> config for this domain:
twdp.hobby-site.org

I have a <VirtualHost *:443> for this domain:
svn.twdp.hobby-site.org

This is what happens:
http://*.twdp.hobby-site.org directs to my normal site
https://*.twdp.hobby-site.org directs to my subversion repository
The coolaj86.is-a-geek.net does the same as the two above

This is what I want to happen:
ONLY http://twdp.hobby-site.org directs to my normal site
http://svn.twdp.hobby-site.org redirects to https
other requests issue some sort of not-found error

https://svn.twdp.hobby-site.org directs to my subversion repo
https://twdp.hobby-site.org redirects to http
other requests issue some sort of not-found error

Any request to coolaj86.is-a-geek.net redirects to my normal site
Any request to ajoneal.homeip.net errors


I'm pretty sure that I need to understand just one directive better
and that one directive will serve me for each of those situations,
but I don't know what directive it is.

I want to do this with apache configuration so that I
can learn that better. I don't want to do it with php.

Thanks in advance for the help.

AJ ONeal

Reply via email to