Drukowana wersja tematu

Kliknij tu, aby zobaczyć temat w orginalnym formacie

Forum PHP.pl _ IIS _ [IIS] defaultDocument / Co jest wczytywane domyślnie?

Napisany przez: starach 29.07.2011, 12:25:43

Cześć,

Pracuję właśnie nad projektem który zmusza mnie ( %@!$#&#* ) do korzystania z IIS'a. W pliku Web.config ( który jak się domyślam jest odpowiednikiem .htaccess. Niestety nie ma tam dyrektywy defaultDocument, a jako że poprzedni developer zrobił kompletny pieprznik w strukturze projektu nie mam bladego pojęcia jaki plik jest wczytywany jako domyślny.

Napisany przez: rzymek01 29.07.2011, 13:21:58

http://www.iis.net/ConfigReference/system.webServer/defaultDocument

Cytat
Configuration Sample

The following configuration example, when included in a Web.config file for a site or application, enables default documents for the site or application. It then adds the file name "Home.html" to the list of the site's or application's default documents.
<configuration>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="home.html" />
</files>
</defaultDocument>
</system.webServer>
</configuration>

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)