在IIS中设置默认文档 [英] Setting the default document in IIS

查看:166
本文介绍了在IIS中设置默认文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在IIS中运行的Web应用程序, 如果我在浏览器中转到localhost:85,则会收到401错误,提示"401-未经授权:由于无效的凭据而拒绝了访问."

I have a web application running in IIS, which if I go to localhost:85 in my browser I get a 401 error saying '401 - Unauthorized: Access is denied due to invalid credentials.'

如果我转到localhost:85/default.aspx,它将按预期将我重定向到登录页面.

If i go to localhost:85/default.aspx , it will redirect me to the log in page as expected.

如何设置它,这样默认情况下,如果我转到localhost:85(根目录),它将自动将我带到default.aspx.

How can I make it so that by default if I go to localhost:85 (the root directory) , it will take me to default.aspx automatically.

我尝试将IIS中的默认文档设置为Default.aspx,但仍然无法实现我希望的那样.

I tried setting the default Document in IIS to Default.aspx, but still it doesn't do what I was hoping it would.

如果用户不要求特定文件,有人可以告诉我如何使iis自动进入default.aspx吗?

Can someone please tell me what I need to do to to have iis automatically go to default.aspx if the user doesn't ask for a specific document?

推荐答案

您可以按照以下说明进行操作.

You can do as mentioned below.

转到IIS.

Go to IIS.

点击您的网站.

选择默认文档选项>>在操作窗格中,单击添加 按钮.

Select Default Document Option >> From the action pane click on add button.

它将打开添加默认文档"对话框.

It will open "Add Default Document" Dialog Box.

在这里,您可以将default.aspx添加为默认文档.

Here, you can add default.aspx as your Default Document.

这是设置默认文档页面的方法.

This is how you can set your Default document page.

这篇关于在IIS中设置默认文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆