hi everybody,
i recently hosted one of my friends website, in the local system (ie., ) when i type this ip address in the internet exp ,
it comes with default home page , but when i run the main website for example www.yahoo.com it doesnot open the home page
it just says the You are not authorized to view this page
but when i type then it opens.... what to do for opening default page when somebody clicks the webaddress

Dani AI

Generated

As reported by , the site serves home.htm directly but visiting the site root returns "You are not authorized," which points less at the browser and more at server configuration (authentication or file-permissions) than at DNS. ’s prompt to check the host and ’s note about the default document are both on target — the following checklist expands those points and gives targeted steps that typically fix this exact symptom.

  1. Confirm the file and name: verify home.htm exists in the website physical folder and is spelled exactly (extensions matter).
  2. Default-document configuration: ensure the server’s Default Document list contains the homepage filename and that it’s ordered so the server will select it first (IIS Manager: Default Document / Documents tab, depending on version).
  3. Authentication settings: the "You are not authorized" message commonly means anonymous access is disabled. Confirm Anonymous Authentication is enabled and note which account is used (IUSR_*, IIS_IUSRS or the app-pool identity).
  4. NTFS permissions: the anonymous account (or the app-pool identity) must have Read (and Read & Execute) on the site folder and the file. Check folder Properties → Security and grant minimal read rights.
  5. Logs and status codes: inspect the IIS log (%SystemRoot%\System32\LogFiles\W3SVC*) for the request’s status and substatus (e.g., 401.3 often means NTFS ACL problem; 403.14 means no default document). That substatus points to the exact fix.
  6. Bindings/host headers: if the site uses host headers, requesting by IP can hit a different site; verify site bindings match the requested host.

Typical resolution: enabling anonymous access and granting read permission to the configured account usually makes the root URL serve the default page. Avoid enabling directory browsing in production; use it only briefly for troubleshooting.

there is probably a setting which needs to be done on the hosting server. Maybe ask ur server guy

You need to set "home.htm" as your default page for the site in IIS. This can be changed in the properties of the website in IIS on documents tab.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.