I have an issue where I go to the root site and of MOSS 2007 andaccess http://hostname and we receive a "You are not authorized toview this page."If I go to a site under thathttp:///hostname/workgroups/IT/default.aspx I get in fine withoutissue.I have compared this site to production and it seems to be the same onthe surface.Any Ideas?
You can't really tell just from the URLs, but a couple of assumptions and acouple questions.1) Do you get the same response if you try to access<http://hostname/default.aspx>" target="_blank" rel="nofollow">http://hostname/default.aspx>http://hostname/default.aspx or<http://hostname/pages/default.asps>" target="_blank" rel="nofollow">http://hostname/pages/default.asps>http://hostname/pages/default.asps (ifits a publishing site)? Occasionally IIS doesn't pick up default.aspx as adefault page to be considered when you just access the hostname with no pagespecified. You can fix this by adding default.aspx to the list of defaultpages in the properties of the website in IIS.2) Assuming that workgroups is a managed path instead of a child site.IT would be the top level site of a different site collection. Since Sitecollections are security boundaries you wouldn't have rights in hostnamejust because you do in hostname/workgroups/IT. If you aren't the sitecollection owner of the root then you may not have rights there and MOSS isresponding appropriately.3) Someone may have switched the Root managed path from being anIncluded managed path to being a Wildcard Included managed path. If theroot is a Wildcard managed path you won't be able to login to the root, onlyto a named site collection in the root. Although I believe this gives apage not found error rather than a "You are not authorized error."
Do you have an Alternate Access Mapping set for all the URLs you'reusing? I've seen the lack of an AAM cause weird issues if you leavedefault.aspx off.