Dostupnost webů Internetové informační služby (IIS), které používají HTTP, spoléhá také na několik důležitých součástí služby IIS. Všechny služby – Aktivační služba procesů systému Windows (WAS), Služba publikování na webu (W3SVC) a služba HTTP – musí správně fungovat. Pro aplikace webu musí být navíc k dispozici správně spuštěný fond aplikací. Pokud není některá z těchto součástí funkční, nebude web k dispozici.
Nastavení cesty k aplikaci pro web
Web musí mít platnou cestu k aplikaci. Pokud je cesta k aplikaci nesprávná, web se nespustí. Nastavte platnou cestu k aplikaci pro web a web znovu spusťte.
Nastavení platné cesty k aplikaci pro web:
Postup pro nastavení platné cesty k aplikaci pro web:
Otevřete okno příkazového řádku se zvýšenými oprávněními. Klikněte na tlačítko Start, přejděte na Všechny programy, klikněte na Příslušenství, klikněte pravým tlačítkem na Příkazový řádek a potom na Spustit jako správce.
Zadejte příkaz cd %Windir%\system32\inetsrv\config
Zadejte příkaz notepad ApplicationHost.config.
V Poznámkovém bloku vyhledejte oddíl webů v části system.applicationHost a vyhledejte web, který je příčinou chyby.
Opravte cestu k aplikaci nebo přidejte ke konfiguraci webu následující text, aby byla nastavená jako výchozí cesta:
<application path="/">
<virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" />
</application>
Opětovné spuštění webu
Postup pro opětovné spuštění webu:
Klikněte na tlačítko Start a potom na Ovládací panely a Nástroje pro správu.
Klikněte pravým tlačítkem myši na Správce Internetové informační služby (IIS) a vyberte možnost Spustit jako správce.
V podokně Připojení Správce služby IIS rozbalte název počítače.
Rozbalte položku Weby.
Vyberte web, který je potřeba znovu spustit.
V podokně Akce zastavte web kliknutím na tlačítko Stop.
V podokně Akce spusťte web kliknutím na tlačítko Start.
Můžete také použít následující odkazy:
Zastavit web
Spustit web
Target | Microsoft.Windows.InternetInformationServices.6.2.WebSite | ||
Parent Monitor | System.Health.ConfigurationState | ||
Category | ConfigurationHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.InternetInformationServices.6.2.WebSite.EventLogManualReset2StateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.6.2.WebSite.RootApplicationDefined.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WebSite" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.InternetInformationServices.6.2.WebSite.EventLogManualReset2StateMonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.6.2.WebSite.RootApplicationDefined.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
<OperationalState ID="ErrorEventRaised" MonitorTypeStateID="ErrorEventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(5056|5161)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>