Questions tagged [default-document]
33 questions
0
votes
0 answers
I'm trying to get index.cshtml to appear instead of index.html when I run my app, but index.html always appears
This is my startup.cs file:
using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;using Microsoft.AspNetCore.Builder;using Microsoft.AspNetCore.Hosting;using Microsoft.AspNetCore.Http;using…
0
votes
1 answer
IIS 10 Default Document for Application Under Website
Running IIS 10 on a windows 2019 server I have 1 web site and under there I have 20+ applications running. I have been trying to create a default document for each of the sub applications however, ever time I edit one of the sub application it…

TMcXerox
- 9
- 1
0
votes
1 answer
Why is IIS 10 default document not working for a static file?
I have an IIS 10 site and I can download document index.html from the root directory without issues. However, when I try to download the same file using the default document feature, I get status code 404.0 and it looks like IIS made no attempt to…

Tim Williams
- 873
- 8
- 10
0
votes
0 answers
Deleting default document in IIS 10 gives error 502
After VAPT testing of my project or server it is recommended to delete default document. But when i try to delete or disable default document in IIS server , all webapis and websites stops running and gives Error 502 bad gateway. Please help me to…

RJCoder
- 53
- 9
0
votes
0 answers
How to do something like in applicationHost.config to apply sslFlags to "/" but nothing within the virtual directory?
On an IIS 10.0 server hosting https://example.com, what do I put in my applicationHost.config so that all of the following is true:
https://example.com/ does not request a client certificate.
https://example.com/index.html does not request a client…

rossmpersonal
- 49
- 1
- 5
0
votes
1 answer
Jetty, Maven plugin - how to configure default document?
We're using Jetty 6.x, and Maven-2.
Anybody knows how to configure the default document?
I mean - there's a default that serves /index.html or any of it's equivalents when accessing the application root (browse to /).
And there should be a settings…

Radagast the Brown
- 3,156
- 3
- 27
- 40
0
votes
0 answers
Default document on IIS 10 is not working and returns 200
I setted Root config like it.
Root Config
And also, site include all of them and added main.html
Site Config
Full captures are here
But my site doesn't load any files and returns 200 code.
How can I fix it?

Preta
- 1
0
votes
2 answers
In IIS can I change the default document per folder via web.config?
I have a certain PHP file on my windows server in a directory that requires you to add index.php in order to view it.
The below works:
http://example.org/placestorun/index
But the following does not work:
http://example.org/placestorun/
I added a…

sjw0525
- 329
- 2
- 17
0
votes
0 answers
Asp.Net page starts without URI
I am not able to make my ASP.Net login page receive any postback the first time. My solution structure is as follows
Root
- Login/Login.aspx
- UI/Homepage.aspx
When I start my asp.net website from visual studio, it shows the login.aspx page but…

user1763470
- 197
- 1
- 1
- 11
0
votes
1 answer
How do I CREATE default.aspx file for MVC 6 Application
I am new to MVC applications. I would like to host my MVC6 application on shared windows platform (hosting package). I have uploaded my project files via FTP onto the domain I created with my service provider. My project has a solution file (.sln)…

jakzat
- 1
0
votes
1 answer
ASP.NET Forms application displays blank "default.aspx" page sporadically instead of loading/showing contents
I have an ASP.NET Forms application, Framework version 4.5, IIS 7.5 in Windows 2008 Server R2 Standard. Sporadically I get a blank page(screenshot below). When I reset the website in IIS the problem gets fixed.. but then happens again in 2/3 days.…

shamal
- 1
- 3
0
votes
1 answer
IIS Default Document rewrite rule
I want to create a default document called default and in that document I want it to rewrite the URL so instead of going www.bob.com it should instead go to www.bob.com/uv
Right now this is being done through URL rewrite rules, with patterns and all…

vmedhe2
- 237
- 4
- 19
0
votes
1 answer
IIS 7.5 default documents and ASP.Net MVC 2 Routes
I am trying to deploy a website on Win Server 2008 R2 machine with IIS 7.5. The website is developed with asp net mvc2. My client asked me to deploy a simple .html document to be served until we decide to go live with the mvc app. I have created the…

gmakrygiannis
- 360
- 3
- 14
0
votes
1 answer
HTTP Error 401.2 - Unauthorized (for DefaultDocument)
I am getting a 401.2 error on the default document in VS2013 (and IIS). Here are the steps I'm taking:
In VS2013, right click choose "New Project"
Choose "ASP.NET Web Application", click OK
Choose "Empty" project, Check "Web Forms" at the bottom…

eejai42
- 736
- 2
- 12
- 24
0
votes
2 answers
Need IIS to open default document before URL rewrite
I am creating a Symfony application on an existing web server with classic asp pages. If domain/com/*.asp is found, it loads that page. If a URL is entered and is not found, it is passed through /app.php to be processed by a PHP routing system. I…

rooter
- 189
- 3
- 11