I have a site under Microsoft Enterprise Single Sign-On. In a folder located in the site I have a Web Service (WSDL) that I want to exclude from ESSO validation for consume from other application without ESSO.
Can I do it?
My site
https://example.com
To Exclude:
https://example.com/services
Finaly I found the solution.
You can especify in web.config the folder to exclude:
<location path="ExcludedFolder">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
Related
Can I create a static directory in JBoss AS 7.2, like WildFly?
I know the WildFly server can be configured to serve static content by undertow subsystem. For instance:
<server name="default-server">
<http-listener name="default" socket-binding="http"/>
<host name="default-host" alias="localhost">
<location name="/mycontent" handler="content"/>
</host>
</server>
<handlers>
<file name="content" path="${jboss.home.dir}/content" directory-listing="true"/>
</handlers>
According to my requirement, user will upload the static content in the static directory.
I have found the solution.
JBoss AS 7.2 does not support to serve static content's directory as WildFly. I know, not everybody has luxury to use WildFly.
I created a war directory with extension (mycontent.war) instead of war file and created dodeployed.war file also. Inside the mycontent.war directory, I created WEB-INF directory and web.xml file. The web.xml file contains only display name tag. That is it. You can upload the static content in the directory and the contents can be served also.
I need to serve static content outside of WAR using the Wildfly application server.
I setup
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
</host>
<handlers>
<file name="welcome-content" path="c:/Users/admin/web" directory-listing="true"/>
</handlers>
Everything worked okay but I faced with the routing problem.
The application has a html5 history support.
When I go to the Url: localhost:8080 everything is okay, my app redirects to /home
But when I refresh the page it returns 404 error.
Is there a possibility to define location name as wildcard e.g. /*
or how can i solve the problem with single page application?
I have a library that comes from a private nuget feed. I have the url and credentials for that but dont know how to connect to the feed properly with visual studio code. I am using dotnetcore framework.
I created a Nuget.Config file in the root of my console application with the feed url and username and password but this didn't seem to pick up the packages from that feed when imputting them in the project.json. Even doing a restore would produce errors.
Does anyone have an example of how they would set up a project to do this? I know it is not normal to have the Nuget.Config file in the project but this is a test project so would not live there once the project got past proof of concept.
My nuget.config looked like this
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="CustomRepo" value="https://nuget.feed/nuget/" />
</packageSources>
<!-- Used to store credentials -->
<packageSourceCredentials>
<CustomRepo>
<add key="Username" value="something" />
<add key="ClearTextPassword" value="thepassword" />
</CustomRepo>
</packageSourceCredentials>
<!-- Used to disable package sources -->
<disabledPackageSources />
</configuration>
Apoligies this is now resolved and working with the nuget.config file in the root folder. I dont know what I did. Only thing I did was re-type the whole xml but dont know what what would have done. Anyway it is working which is great.
The issue seems to be that the syntax
<configuration>
<system.webServer>
<modules>
<add name="HelloWorldModule" type="HelloWorldModule"/>
</modules>
</system.webServer>
</configuration>
is looking in the site bin folder, however as far as I can tell nop
commerce only puts a plugins dll in the Plugins folder.
What I've tried, that hasn't worked so far
putting the syntax in the web.config that exists in within the plugin folder
wrapping the syntax in the <location path="..."> tag
I realize that I could pull the class out into it's own project and manually drop the compiled dll into the bin, but I'd like to avoid this.
Has anybody used httpmodules within a Nop Commerce Plugin?
I have hosted asp.net mvc application as an application called "samples" inside default website in wwwroot folder in IIS7.0. The url www.website.com/samples will show the application but i want the url www.website.com to show the application.
I have set default document as below.
<defaultDocument enabled="true">
<files>
<clear />
<add value="Index.aspx" />
</files>
</defaultDocument>
Also i have placed the Index.aspx in root folder. I am getting the below error
The file '/Views/Shared/Site.Master' does not exist.
<%# Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
I have searched and found setting default document will work but getting above error.
Can anyone suggest the best way?
Your application should be deployed to the root folder for which the web site is configured for:
So in this example you deploy your application in c:\inetpub\wwwroot directly. No subfolders.