virtual-directory

ASP.Net using wrong web.config for virtual directory

﹥>﹥吖頭↗ 提交于 2019-12-05 15:54:52
We're running IIS 6 on Windows Server 2003 R2. We want to add a virtual directory that runs under .NET 4.0 to a site that runs under .NET 2.0. We've given the virtual directory its own app pool, and we've configured the virtual directory to run under 4.0. The parent site works fine, but the virtual directory throws errors that reference the parent site's web.config file. We need the virtual directory to use its own web.config file. The GUI in the IIS Manager says that the virtual directory is using its own web.config file, but the error messages we get refer to items in the parent's web.config

Deploying IIS Settings with Web Deploy

淺唱寂寞╮ 提交于 2019-12-05 12:27:12
问题 If I look at the Package/Publish Settings of a web application in Visual Studio 2010, there is an option to "Include all IIS settings as configured in IIS Manager (used only for IIS Web projects)" I am using IIS instead of the VS Dev Server to run my web application, but when I deploy the package that Web Deploy creates to a remote server, the IIS settings that get applied to my remote IIS application are at the least, unfamiliar, and at the worst, completely wrong. For instance, my local IIS

IIS Virtual Directory Get Pre Signed URL with Expiration

混江龙づ霸主 提交于 2019-12-05 08:14:04
问题 in IIS, Is there a way to define some kind of a filtering rule to deny access to files within a virtual directory unless the requests are "pre signed" by some sort of an encrypted query string? Also is there a way to make the request expire? I can't find a way to have control over this. What I'm looking for is very similar to what Amazon S3 Amazon.S3.Model.GetPreSignedUrlRequest.Expires property delivers, but in IIS. Here is a link to the Amazon S3 sample code. Scenario of the desired goal:

How do you get the name of the current virtual directory using ASP Classic?

你说的曾经没有我的故事 提交于 2019-12-05 04:48:54
问题 How do you get the name of the current virtual directory using ASP Classic? In ASP.NET you can use Request.ApplicationPath to find this. For example, let's say you have a URL like this: http://localhost/virtual_directory/subdirectory/file.asp In ASP.NET, Request.ApplicationPath would return /virtual_directory 回答1: You can get the virtual path to the file from one of several server variables - try either: Request.ServerVariables("PATH_INFO") Request.ServerVariables("SCRIPT_NAME") (but not

Can not access virtual directory under virtual dotnet core api application on IIS 8

眉间皱痕 提交于 2019-12-04 21:40:22
I am trying to add a virtual directory to my dotnet core API. But it gives me a 404. This api.project.nl page can’t be found No web page was found for the web address: https://api.project.nl/v1/uploads/profiles/profile.jpeg I have set up my api as v1 under the main IIS website as you can see in my IIS project configuration below. The api works fine and I can even reach the /docs folder in my wwwroot whichs serves a index.html (for the custom swagger ui docs). I can reach the uploads folder under the the Projects - Api folder https://api.project.nl/uploads/profiles/profile.jpeg but it cannot

How do I resolve absolute URLs for different sites in the same parent IIS virtual directory in .NET?

拥有回忆 提交于 2019-12-04 17:16:03
My goal is to share images, css, js, etc. across multiple websites that are all hosted under the same parent virtual directory in IIS. Of course, I could hard code the images paths, but I'd hoped .NET had a method that could intelligently resolve URLs using the IIS configuration. Here is my file/virtual directory structure: Parent Site (Virtual Directory) default.aspx mypage.aspx otherpage.aspx images - logo.jpg css - site.css Subsite1 (Virtual Directory) - default.aspx - products.aspx Subsite2 (Virtual Directory) - default.aspx - products.aspx - miscellaneous.aspx Parent Site , Subsite1 , and

Multiple applications on a single site - session and forms authentication scope

邮差的信 提交于 2019-12-04 13:38:35
问题 We're using ASP.NET and IIS 6.0. I realise that the definitions of applications, websites and virtual directories are ill-defined in IIS 6, and changed a lot in IIS 7. However, I'm stuck with IIS 6.0 for now. We have a single web site defined in IIS, and a number of separate sub-sites in Virtual Directories. The scheme looks like this:- http://site.example.com/site1 http://site.example.com/site2 .. etc .. site1, site2, ... are virtual directories in IIS 6.0, under the "Default Web Site". I

Is there a way to add a virtual directory to Visual Studio Development Server?

强颜欢笑 提交于 2019-12-03 23:23:40
问题 I'm using the Visual Studio Development Server, with a specific port. Is there a way to add a virtual directory to it? EDIT: Sorry, I wasn't very clear. I'd like to be able to add one or more virtual directories to arbitrary physical directories. For instance: http://localhost/c_drive/ would map to C:\, http://localhost:/d_drive/ would map to D:\, etc. 回答1: The Visual Studio Development Server is codenamed Cassini. From ASP.NET 2.0: A Getting Started Guide Cassini doesn't support virtual

IIS Virtual Directory Get Pre Signed URL with Expiration

戏子无情 提交于 2019-12-03 23:10:26
in IIS, Is there a way to define some kind of a filtering rule to deny access to files within a virtual directory unless the requests are "pre signed" by some sort of an encrypted query string? Also is there a way to make the request expire? I can't find a way to have control over this. What I'm looking for is very similar to what Amazon S3 Amazon.S3.Model.GetPreSignedUrlRequest.Expires property delivers, but in IIS. Here is a link to the Amazon S3 sample code. Scenario of the desired goal: Requesting: http://MyServerName/MyFolderThatIsAddedAsAVirtualDirectoryToDefaultWebsiteInIIS/MyImage.jpg

nginx rewrite virtual directory to file

痞子三分冷 提交于 2019-12-03 11:32:07
This should be really easy to do but I'm hitting my head on the wall. If I get a request for www.mysite.com/mypath I want to serve the content of www.mysite.com/myotherpath/thisfile.html. How can I do this with an nginx config. Alexey Kamenskiy Use rewrite directive within proper location block. So for example you have basic location which will handle all requests location / { /*your rules here*/ } You will need to add another block, which will do for you handling of specific path location /mypath { rewrite ^/mypath$ /real/path/to/file/thisfile.html; } Also for your server to think in that