SNA
Sun 3rd Jun '01, 2:03pm
Why does this work with the forums but not with other virtual hosts?
This works:
<VirtualHost xx.xx.xxx.xxx:80>
ServerName forums.mysite.com
DocumentRoot /pathtoforums/messageboard
ErrorDocument 404 /notfound.php
</VirtualHost>
This doesnt:
<VirtualHost xx.xx.xxx.xxx:80>
ServerName www.mysite.com
DocumentRoot /pathtoforums/test
ErrorDocument 404 /notfound.php
</VirtualHost>
The only way to get it to work was to do this...
<VirtualHost xx.xx.xxx.xxx:80>
ServerName www.mysite.com
DocumentRoot /pathtoforums/test
ErrorDocument 404 http://www.mysite.com/notfound.php
</VirtualHost>
Now the $REQUEST_URI doesnt work... it just shows /notfound.php not the page I was orginally trying to access.... any ideas?
Why does the forums one work but not the other one?
Thanks,
This works:
<VirtualHost xx.xx.xxx.xxx:80>
ServerName forums.mysite.com
DocumentRoot /pathtoforums/messageboard
ErrorDocument 404 /notfound.php
</VirtualHost>
This doesnt:
<VirtualHost xx.xx.xxx.xxx:80>
ServerName www.mysite.com
DocumentRoot /pathtoforums/test
ErrorDocument 404 /notfound.php
</VirtualHost>
The only way to get it to work was to do this...
<VirtualHost xx.xx.xxx.xxx:80>
ServerName www.mysite.com
DocumentRoot /pathtoforums/test
ErrorDocument 404 http://www.mysite.com/notfound.php
</VirtualHost>
Now the $REQUEST_URI doesnt work... it just shows /notfound.php not the page I was orginally trying to access.... any ideas?
Why does the forums one work but not the other one?
Thanks,