404 from external
Hi,
i have made a fresh install for testing.
From Localhost the Panel works, but form external i got 404 Error.
Here is my Web.Config:
<?xml version=”1.0″ encoding=”utf-8″?>
<configuration>
<configSections>
<section name=”log4net” type=”log4net.Config.Log4NetConfigurationSectionHandler, log4net” />
<section name=”entityFramework” type=”System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ requirePermission=”false” />
<sectionGroup name=”system.web.webPages.razor” type=”System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″>
<section name=”host” type=”System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″ requirePermission=”false” />
<section name=”pages” type=”System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35″ requirePermission=”false” />
</sectionGroup>
<!– For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 –>
</configSections>
<log4net>
<appender name=”Default” type=”log4net.Appender.RollingFileAppender”>
<param name=”File” value=”Log\CloudPanel.log” />
<lockingModel type=”log4net.Appender.FileAppender+MinimalLock” />
<appendToFile value=”true” />
<rollingStyle value=”Size” />
<maxSizeRollBackups value=”2″ />
<maximumFileSize value=”5MB” />
<staticLogFileName value=”true” />
<layout type=”log4net.Layout.PatternLayout”>
<param name=”ConversionPattern” value=”[%d] | %-5p | %-20c| %m%n” />
</layout>
</appender>
<appender name=”Exchange” type=”log4net.Appender.RollingFileAppender”>
<param name=”File” value=”Log\Exchange.log” />
<lockingModel type=”log4net.Appender.FileAppender+MinimalLock” />
<appendToFile value=”true” />
<rollingStyle value=”Size” />
<maxSizeRollBackups value=”2″ />
<maximumFileSize value=”5MB” />
<staticLogFileName value=”true” />
<layout type=”log4net.Layout.PatternLayout”>
<param name=”ConversionPattern” value=”[%d] | %-5p | %-20c| %m%n” />
</layout>
</appender>
<appender name=”SQL” type=”log4net.Appender.RollingFileAppender”>
<param name=”File” value=”Log\SQL.log” />
<lockingModel type=”log4net.Appender.FileAppender+MinimalLock” />
<appendToFile value=”true” />
<rollingStyle value=”Size” />
<maxSizeRollBackups value=”2″ />
<maximumFileSize value=”5MB” />
<staticLogFileName value=”true” />
<layout type=”log4net.Layout.PatternLayout”>
<param name=”ConversionPattern” value=”[%d] | %-5p | %-20c| %m%n” />
</layout>
</appender>
<appender name=”Citrix” type=”log4net.Appender.RollingFileAppender”>
<param name=”File” value=”Log\Citrix.log” />
<lockingModel type=”log4net.Appender.FileAppender+MinimalLock” />
<appendToFile value=”true” />
<rollingStyle value=”Size” />
<maxSizeRollBackups value=”2″ />
<maximumFileSize value=”5MB” />
<staticLogFileName value=”true” />
<layout type=”log4net.Layout.PatternLayout”>
<param name=”ConversionPattern” value=”[%d] | %-5p | %-20c| %m%n” />
</layout>
</appender>
<appender name=”ResponseHandlers” type=”log4net.Appender.RollingFileAppender”>
<param name=”File” value=”Log\ResponseHandlers.log” />
<lockingModel type=”log4net.Appender.FileAppender+MinimalLock” />
<appendToFile value=”true” />
<rollingStyle value=”Size” />
<maxSizeRollBackups value=”2″ />
<maximumFileSize value=”5MB” />
<staticLogFileName value=”true” />
<layout type=”log4net.Layout.PatternLayout”>
<param name=”ConversionPattern” value=”[%d] | %-5p | %-20c| %m%n” />
</layout>
</appender>
<appender name=”Rollback” type=”log4net.Appender.RollingFileAppender”>
<param name=”File” value=”Log\Rollback.log” />
<lockingModel type=”log4net.Appender.FileAppender+MinimalLock” />
<appendToFile value=”true” />
<rollingStyle value=”Size” />
<maxSizeRollBackups value=”2″ />
<maximumFileSize value=”5MB” />
<staticLogFileName value=”true” />
<layout type=”log4net.Layout.PatternLayout”>
<param name=”ConversionPattern” value=”[%d] | %-5p | %-20c| %m%n” />
</layout>
</appender>
<appender name=”Settings” type=”log4net.Appender.RollingFileAppender”>
<param name=”File” value=”Log\Settings.log” />
<lockingModel type=”log4net.Appender.FileAppender+MinimalLock” />
<appendToFile value=”true” />
<rollingStyle value=”Size” />
<maxSizeRollBackups value=”2″ />
<maximumFileSize value=”5MB” />
<staticLogFileName value=”true” />
<layout type=”log4net.Layout.PatternLayout”>
<param name=”ConversionPattern” value=”[%d] | %-5p | %-20c| %m%n” />
</layout>
</appender>
<root>
<level value=”ALL” />
<appender-ref ref=”Default” />
</root>
<logger additivity=”false” name=”Exchange”>
<level value=”ALL” />
<appender-ref ref=”Exchange” />
</logger>
<logger additivity=”false” name=”SQL”>
<level value=”ALL” />
<appender-ref ref=”SQL” />
</logger>
<logger additivity=”false” name=”Citrix”>
<level value=”ALL” />
<appender-ref ref=”Citrix” />
</logger>
<logger additivity=”false” name=”ResponseHandlers”>
<level value=”ALL” />
<appender-ref ref=”ResponseHandlers” />
</logger>
<logger additivity=”false” name=”Rollback”>
<level value=”ALL” />
<appender-ref ref=”Rollback” />
</logger>
<logger additivity=”false” name=”Settings”>
<level value=”ALL” />
<appender-ref ref=”Settings” />
</logger>
</log4net>
<!–
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework=”4.6.2″ />
</system.Web>
–>
<system.web>
<compilation targetFramework=”4.6.2″>
<buildProviders>
<add extension=”.cshtml” type=”Nancy.ViewEngines.Razor.BuildProviders.NancyCSharpRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders” />
<add extension=”.vbhtml” type=”Nancy.ViewEngines.Razor.BuildProviders.NancyVisualBasicRazorBuildProvider, Nancy.ViewEngines.Razor.BuildProviders” />
</buildProviders>
</compilation>
<httpRuntime relaxedUrlToFileSystemMapping=”true” />
<httpHandlers>
<add verb=”*” type=”Nancy.Hosting.Aspnet.NancyHttpRequestHandler” path=”*” />
</httpHandlers>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests=”true”>
<remove name=”WebDAVModule” />
</modules>
<validation validateIntegratedModeConfiguration=”false” />
<httpErrors existingResponse=”PassThrough” />
<handlers>
<add name=”Nancy” verb=”*” type=”Nancy.Hosting.Aspnet.NancyHttpRequestHandler” path=”*” />
</handlers>
</system.webServer>
<entityFramework>
<defaultConnectionFactory type=”System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework” />
<providers>
<provider invariantName=”System.Data.SqlClient” type=”System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer” />
</providers>
</entityFramework>
<runtime>
<assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″>
<dependentAssembly>
<assemblyIdentity name=”System.Collections.Immutable” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-1.2.2.0″ newVersion=”1.2.2.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”Microsoft.CodeAnalysis.CSharp” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-2.6.0.0″ newVersion=”2.6.0.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”Microsoft.CodeAnalysis” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-2.6.0.0″ newVersion=”2.6.0.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.Net.Http.Extensions” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-2.2.29.0″ newVersion=”2.2.29.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.Reflection.Metadata” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-1.4.2.0″ newVersion=”1.4.2.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”Microsoft.Spatial” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-6.19.0.11114″ newVersion=”6.19.0.11114″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.Web.Razor” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-3.0.0.0″ newVersion=”3.0.0.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”Newtonsoft.Json” publicKeyToken=”30ad4fe6b2a6aeed” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-10.0.0.0″ newVersion=”10.0.0.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.Xml.ReaderWriter” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-4.1.0.0″ newVersion=”4.1.0.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”Microsoft.CodeDom.Providers.DotNetCompilerPlatform” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-1.0.8.0″ newVersion=”1.0.8.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.IO.Compression” publicKeyToken=”b77a5c561934e089″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-4.1.2.0″ newVersion=”4.1.2.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.Security.Cryptography.Algorithms” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-4.1.0.0″ newVersion=”4.1.0.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.IO.FileSystem” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-4.0.2.0″ newVersion=”4.0.2.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.IO.FileSystem.Primitives” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-4.0.2.0″ newVersion=”4.0.2.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.Security.Cryptography.Primitives” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-4.0.1.0″ newVersion=”4.0.1.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.Xml.XPath.XDocument” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-4.0.2.0″ newVersion=”4.0.2.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.Text.Encoding.CodePages” publicKeyToken=”b03f5f7f11d50a3a” culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-4.1.0.0″ newVersion=”4.1.0.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”Microsoft.Data.OData” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-5.8.3.0″ newVersion=”5.8.3.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”Microsoft.Data.Edm” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-5.8.3.0″ newVersion=”5.8.3.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.Spatial” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-5.8.3.0″ newVersion=”5.8.3.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”System.ValueTuple” publicKeyToken=”cc7b13ffcd2ddd51″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-4.0.2.0″ newVersion=”4.0.2.0″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”Microsoft.OData.Core” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-6.19.0.11114″ newVersion=”6.19.0.11114″ />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name=”Microsoft.OData.Edm” publicKeyToken=”31bf3856ad364e35″ culture=”neutral” />
<bindingRedirect oldVersion=”0.0.0.0-6.19.0.11114″ newVersion=”6.19.0.11114″ />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.codedom>
<compilers>
<compiler language=”c#;cs;csharp” extension=”.cs” type=”Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ warningLevel=”4″ compilerOptions=”/langversion:default /nowarn:1659;1699;1701″ />
<compiler language=”vb;vbs;visualbasic;vbscript” extension=”.vb” type=”Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ warningLevel=”4″ compilerOptions=”/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+” />
</compilers>
</system.codedom>
<appSettings>
<add key=”webPages:Enabled” value=”false” />
</appSettings>
<system.web.webPages.razor>
<pages pageBaseType=”Nancy.ViewEngines.Razor.NancyRazorViewBase”>
<namespaces>
<add namespace=”Nancy.ViewEngines.Razor” />
</namespaces>
</pages>
</system.web.webPages.razor>
</configuration>
<!–ProjectGuid: {B4F9C525-5C56-440E-B4C2-972A33D7C8CD}–>
Can you share screenshots of your IIS? Blur out any information you don’t want people to see though.
If you chose a new website for CloudPanel during the install instead of selecting “Default Web Site”, then it would of created a new website and a virtual directory that point to the same directory. This causes problems because http://localhost/ and http://localhost/cloudpanel would be pointed to the exact same place.
Hi Jacob,
no if i follow up your Guide. I add a new AppPool and Default Website.
Which Settings are important for you?
Here are some Screenshots:
All of that looks correct. Are you positive the firewall rule is directing you to that server? If it works internally then it should work externally unless you have something else going on that I’m not aware of (like a proxy). Can you send a screenshot of the 404 including the URL (blur out your external domain)
Hi,
Firewall Rules are set. (Screenshot below)
Second Screenshot also…
Without the “/cloudpanal” i see the IIS Default Page.
Ok, i get this to work.
I make a Binding to the external URL with FQDN.
THX 4 your Help
- 5 Forums
- 714 Topics
- 3,630 Posts
- 0 Online
- 253 Members