xml <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="URL_TO_ALLOW"/> <add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS"/> <add name="Access-Control-Allow-Headers" value="Content-Type"/> </customHeaders> </httpProtocol> </system.webServer> </configuration> forceHTTPS <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Force HTTPS" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> <add input="{REQUEST_URI}" negate="true" pattern="/ADD_PATTERM_TO_EXCLUDE_FILES_OR_FOLDERS/" ignoreCase="true" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer> </configuration> browserCaching # Enables browser caching <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 2 days" </IfModule> customErrorPages
forceHTTPS
preventAccessToConfigFiles
urlRewrite
Well, this is the end of this article. Friends who need it can learn from it. |
<<: Simple use of Vue vee-validate plug-in
>>: Use and analysis of Mysql Explain command
Table of contents Overview Example 1) Freeze Obje...
One purpose Select a local folder on the Html pag...
Pure front-end implementation:切片上傳斷點續傳.斷點續傳needs ...
View container logs First, use docker run -it --r...
Preface Samba is a free software that implements ...
Table of contents 1. System monitoring 2. File Op...
How to write transparent CSS for images using filt...
Using padding-top percentage can achieve a fixed ...
This article shares the specific code of JS to im...
1. Nexus configuration 1. Create a docker proxy U...
Table of contents Separation effect Command line ...
Text Shadow text-shadow: horizontal offset vertic...
How do I download MySQL from the official website...
This article shares with you a graphic tutorial o...
I believe everyone is familiar with database inde...