在IIS中设置默认文档

编程入门 行业动态 更新时间:2024-10-28 08:22:49
本文介绍了在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中设置默认文档

本文发布于:2023-11-28 14:50:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642860.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文档   IIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!