TommyWillB
Registered
I spent a long time getting my "perfect" Apache configuration for my www.tomnjeff.com Web site. It even has nice Error 404 and Error 500 pages.
My next step was to then configure a sub-domain called tom.jeffntom.com. I thought I knew what I was doing, but it is having weired side effects:
It is my understanding that the only configs I need to set for the Virtual are the things that vary from the default site. It was my impression that everything else was inherited...
With that in mind here is what I did: (Everthing that says <user> is really my username)
The weird thing is that the Virtual basically works, but for my default site it breaks things like my Error pages... (They don't work for the Virtual either...)
What am I doing wrong?
BTW, does it matter if the DocumentRoot has a trailing slash or not?
My next step was to then configure a sub-domain called tom.jeffntom.com. I thought I knew what I was doing, but it is having weired side effects:
It is my understanding that the only configs I need to set for the Virtual are the things that vary from the default site. It was my impression that everything else was inherited...
With that in mind here is what I did: (Everthing that says <user> is really my username)
Code:
<VirtualHost *>
DocumentRoot /Library/WebServer/Documents
ServerName [url]www.tomnjeff.com[/url]
</VirtualHost>
<VirtualHost <user>.tomnjeff.com>
DocumentRoot /Users/<user>/Sites
ServerName <user>.tomnjeff.com
ErrorLog "/private/var/log/httpd/error_log-<user>"
CustomLog "/private/var/log/httpd/access_log-<user>" common
</VirtualHost>
The weird thing is that the Virtual basically works, but for my default site it breaks things like my Error pages... (They don't work for the Virtual either...)
What am I doing wrong?
BTW, does it matter if the DocumentRoot has a trailing slash or not?