Results 1 to 4 of 4

Thread: Error: HTTP 401.1 You are not authorized to view this page

  1. #1
    Join Date
    Jun 2006

    Error: HTTP 401.1 You are not authorized to view this page

    I have IIS installed and running on my XP pro machine. When I go to http://localhost I get this error. These are the things I have researched and done:

    index.html exists in inetpub/wwwroot, I created test.html adn could open and view that in I.E. (using version 6), but when I go to http://localhost/test.hml I get the same error message.

    1). I went to http://support.microsoft.com/default...b;en-us;896861 and created DisableLoopbackCheck registry value, as well as BackConnectionHostNames reg value, with "localhost" as host name.

    2). http://vbcity.com/forums/topic.asp?tid=127381 went under default website settings in IIS and checked "Allow ISS to control...", "integrated Windows Auth." was already unchecked.

    3). http://support.microsoft.com/?kbid=322822, Use HTTP 1.1 through proxy connections setting is unchecked (wasn't before).

    Everything else that I seem to find point to these 3 solutions, does anyone else have any ideas?

    specs: Working on my own machine with IIS 5.1 XP Professional. This is whant my Web Site folder looks like -

    - Default Web Site
    + IISHelp
    + Printers
    + Reports
    + ReportServer
    + aspnet_client
    Theres no place like

  2. #2
    Join Date
    May 2005
    Dirty Jersey
    oh, the joys of IIS permissions

    i could speculate on the reasons that your permissions arent flowing, but it is likely that the actual NTFS permissions arent flowing to the index file.

    right click > properties > security tab

    does it have the user "IUSR_YOURCOMPUTERNAME" listed with at least read access to the file? (this is the account that windows uses if you tell it to use anonymous access)

    always remember that IIS sits on top of NTFS, and no matter how you configure access in IIS, all that will be trumped by NTFS. you can have complete open access to anonymous IIS users to a file in your web site. but if the file's ACL doesnt list the IIS account (or give the account certain permissions like read/write/execute), then the web server will get shut out by NTFS.

    also, if you moved this file from any location outside wwwroot into wwwroot, it probably didnt inherit the wwwroot folders permissions (which IIS sets up so things in there work). if this is the case, right click wwwroot, click properties, security, and the advanced button. click the unchecked box that says "replace permission entries...". when you do windows will advise that its not going to APPEND anything -- its going to first wipe all permissions and then replace all permissions. since this is a fresh install of IIS, you havent changed anything, and every folder/file in wwwroot is already inhereting the permissions IIS initially set, so nothing will be hurt by this replace.

    once you do this, your index file (and all others) will receive the NTFS permissinos that will probably coincide with the IIS permissions, which will then give you access.

    you dont have to do that method either. if you want, just right click your file and tell it to inherit the parent permissions. this should work for you as well.

    if your problems persist, id blow away the IIS installation, and start over completely w/o messing with any of the registry and other entries you messed with. its easier to learn things from the point where everything began rather than after messing with stuff like you mentioned.

    mostly this post assumes your website is set up for anonymous access. when it is, it uses that iusr account for that access. windows of course controls the password for that account, but the account has to be listed on every resource's ACL. IIS doesnt make this happen in any way, except with the initial install and through inhereted permissions. you could make a folder on your dekstop part of your IIS structure. that doesnt mean by default anyone can access that folder though.

    IIS isnt so bad when you figure out the permission flow. heck, i learned the ins and outs of IIS from screwing with it on my xp pro machine just like you. i was able to translate that knowledge into doing many good things on an air force network i was an admin at.... especially considering there was NO formal training!!
    Last edited by Angry Black Man; 12-11-2007 at 07:34 PM.

    1. If you reply to my post, and your reply would then appear directly beneath my post, DON'T QUOTE MY ENTIRE POST!!! IT'S REDUNTANT!!! IT'S ASININE!!!! IT'S REDUNDANTLY ASININE!!!!! DON'T DO IT!!!!
    2. jQuery extends the functionality of JavaScript. If you don't know JavaScript, give up on that jQuery script and learn JavaScript. You'll save yourself a lot of frustration, I promise.
    3. Use the [code][/code] tags. Otherwise, you may be left wondering why no one responded to your eyesore of a thread.

  3. #3
    Join Date
    Jun 2006
    A few days ago I did uninstall/reinstall IIS. Today I started with index.htm and tracked back to C: and checked Security Groups and User Names. IUSR_COMPUTERNAME was given full rights on index.htm and wwwroot. However it wasn't even listed on Inetpub. I did this with my last install of IIS and had the same problem. When I typed in IUSR_COMPUTERNAME and hit "check names" it isn't able to find it. However this time I just clicked "Add" and it did (along with Inernet Guest Account infront of it). Unfortuanly I'm still getting the 401.1

    Thanks for all of your help aaron, it was very informative. I have recieved another/better machine that I am currently moving to now. I am also frequently checking that localhost works between program installs. =)

    My guess, is that the problem originats from someone else insalling xp and naming this machine under themselves. WHen I got here a few months ago it was just handed to me without a wipe and reinstall. So I don't know what the admin password is on this machine and when setting up the anny. user in IIS it's under this computers name and it has a default password but I don't konw what it is adn it might not even be the right one.

    thanks again for your help.
    Theres no place like

  4. #4
    Join Date
    Jun 2006
    double post
    Theres no place like

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09346 seconds
  • Memory Usage 2,868KB
  • Queries Executed 13 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (4)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • bbcode_parse_start
  • postbit_imicons
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates