2013-05-13 13 views
5

Próbuję uruchomić moją stronę internetową na serwerze iis i używam php do tego.jak ustawić domyślną stronę web.config dla pliku indeksu php

wszystko jest w porządku na serwerze, ale defaultDocument.

jak ustawić to w pliku web.config.

<?xml version="1.0" encoding="UTF-8"?> 
<configuration> 
    <system.webServer> 
     <defaultDocument enabled="true"> 
      <files> 
       <remove value="default.aspx" /> 
       <remove value="iisstart.htm" /> 
       <remove value="index.html" /> 
       <remove value="index.htm" /> 
       <remove value="Default.asp" /> 
       <remove value="Default.htm" /> 
       <add value="index.php" /> 
      </files> 
     </defaultDocument> 
    </system.webServer> 
</configuration> 

jest to ustawienie domyślne xml i staram innych rzeczy takich jak:

<clear /> 

lub spróbuj usunąć inne strony ...

jakiś pomysł jak mogę ustawić ten plik?

+1

Udało się tej pracy? – dreza

+0

Używam tego teraz ... Sprawdź odpowiedź – Pooya

Odpowiedz

5

po kilku więcej badań, tylko odpowiednia konfiguracja była to ...

<?xml version="1.0" encoding="UTF-8"?> 
<configuration> 
    <system.webServer> 
     <defaultDocument> 
      <files> 
       <clear /> 
       <add value="index.php" /> 
       <add value="index.html" /> 
       <add value="index.htm" /> 
      </files> 
     </defaultDocument> 
    </system.webServer> 
    <system.data> 
     <DbProviderFactories> 
      <remove invariant="System.Data.SqlServerCe.4.0" /> 
      <add invariant="System.Data.SqlServerCe.4.0" name="Microsoft® SQL Server® Compact 4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> 
     </DbProviderFactories> 
    </system.data> 
</configuration> 
Powiązane problemy