iis-8

IIS 8.0 add both Expires header and Cache-Control

冷暖自知 提交于 2019-12-02 04:33:22
问题 i can see stackoverflow add's both Expires and Cache-Control for their images , css, js etc, so i am trying to do the same, i tried this article web.config <location path="Content"> <system.webServer> <staticContent> <clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" /> <clientCache cacheControlMode="UseExpires" httpExpires="Mon, 01 May 2023 00:00:00 GMT" /> </staticContent> </system.webServer> </location> when i try to acess a css file in

CORS issue IIS 8 Windows Server 2012

喜欢而已 提交于 2019-12-02 03:11:39
SCENARIO: I have two applications, one is "SPA web application" and the other one is "Web API 2.0" which is deployed on IIS 8.0 on Windows Server 2012. ERROR: Website is accessible and working fine on the same machine but not from outside, web page is loaded properly but on ajax call to the API generates the following error... Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at . This can be fixed by moving the resource to the same domain or enabling CORS. On controller level I have added the following attribute: [EnableCors(origins: " ", headers: " ",

IIS 8.0 add both Expires header and Cache-Control

好久不见. 提交于 2019-12-02 01:08:29
i can see stackoverflow add's both Expires and Cache-Control for their images , css, js etc, so i am trying to do the same, i tried this article web.config <location path="Content"> <system.webServer> <staticContent> <clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" /> <clientCache cacheControlMode="UseExpires" httpExpires="Mon, 01 May 2023 00:00:00 GMT" /> </staticContent> </system.webServer> </location> when i try to acess a css file in content folder : http://localhost:11111/Content/bootstrap.min.css i get the following error Error :

IIs 8 Redirect URL from http to https

喜你入骨 提交于 2019-12-01 23:57:20
问题 I have just setuped ssl for my dmain and host. I want to limit my site to https://www.example.com ONLY . If the any user tried to open http://example.com , www.example.com , example.com or https://example.com he must be redirected to https://www.example.com The redirection must be for the domain name only. The rest of any URL would remains as is. For example: if user opened example.com/dir1/page1.aspx he must be redirected to https://www.example.com/dir1/page1.aspx I want to do it using IIS

IIs 8 Redirect URL from http to https

天大地大妈咪最大 提交于 2019-12-01 22:12:32
I have just setuped ssl for my dmain and host. I want to limit my site to https://www.example.com ONLY . If the any user tried to open http://example.com , www.example.com , example.com or https://example.com he must be redirected to https://www.example.com The redirection must be for the domain name only. The rest of any URL would remains as is. For example: if user opened example.com/dir1/page1.aspx he must be redirected to https://www.example.com/dir1/page1.aspx I want to do it using IIS rewrite rules. shady sherif I solved this problem by adding this code to web.config file on the root

Programmatically add binding on IIS 8 with SNI option

笑着哭i 提交于 2019-12-01 19:58:55
I'm trying to create bindings for IIS 8 that have the flag SNI checked (Server Name Indication) using Microsoft.Web.Administration library (.NET Framework). This is necessary to me because I want to get multiple SSL bindings for the same website under IIS, all using just one IP address. This is one of the main new features of IIS 8. I've been looking into the Binding class and I can't find any flag or option to indicate it. Is it possible with current Microsoft.Web.Administration v 7.0.0.0? Will I need a new version that I haven't found? I know that version 7.9.0.0 is only for IIS express, and

Getting 413 errors on IIS with concurrent sessions using the same HTTPS client certificate

落爺英雄遲暮 提交于 2019-12-01 18:19:59
问题 I have the following problem. I am hosting a WCF application on IIS 8 which accepts only HTTPS requests with client certificates. This service accepts POST messages which may vary in size (from a few bytes up to 1 GB) and are received parallel most of the time. The clients are getting a 413 Request entity too large response in the following case: When multiple connections are opened with the same client certificate and many small files are uploaded. In this case one request succeeds and all

Trust a self signed cert from IIS

限于喜欢 提交于 2019-12-01 17:40:47
I have an externally hosted iis webserver where i run my website. I would like to add a self signed certificate to this website and trust it on my local client, to remove "Insecure Connection" from the browser. What i have done so far is the following Created a self signed certificate in IIS: Server Certificates -> Create self signed Certificate. The cert is issued to the servername e.g "ABCD01" Created a website with a https binding using the self signed certificate. Exported the self signed certificate from IIS using: Server Certificates -> Export. This resulted in an .pfx file Imported the

Gzip not working, server 2012, IIS 8

梦想的初衷 提交于 2019-12-01 12:27:05
Problems with activating Gzip on IIS 8 on a windows server 2012 (standard) So i activated the compressions in the windows features I checked both checkboxes in IIS - compression (dynamic and static) But still no Gzip available. However, on my localhost machine (just a windows 10) this works. What i do see, is that the gzip temp directory (C:\inetpub\temp\IIS Temporary Compressed Files) is getting filled up when i browse my site via the server localhost. BUT strangely enough i'm not seeing anything Gzip-ped in chrome. The only headers (in chrome) are: HTTP/1.1 304 Not Modified Accept-Ranges:

Gzip not working, server 2012, IIS 8

半腔热情 提交于 2019-12-01 11:16:45
问题 Problems with activating Gzip on IIS 8 on a windows server 2012 (standard) So i activated the compressions in the windows features I checked both checkboxes in IIS - compression (dynamic and static) But still no Gzip available. However, on my localhost machine (just a windows 10) this works. What i do see, is that the gzip temp directory (C:\inetpub\temp\IIS Temporary Compressed Files) is getting filled up when i browse my site via the server localhost. BUT strangely enough i'm not seeing