iis-8.5

IIS 8.5 deny PHP upload

你。 提交于 2019-12-25 09:30:22
问题 I have a WordPress website under Windows Server 2012 IIS 8.5, the last PHP, and the last MySQL. My WordPress installation (4.7) is compromised, I need to reinstall it, update plugins, change themes, etc., but I have to wait for a response. Every day I see some strange *.php files in the uploads folder. How can I deny PHP upload in this folder? I have access to the Web Server, and I can change whatever I want. Maybe I can solve it with an .htaccess file or what? I know that WordPress must have

autostart website after web deploy

血红的双手。 提交于 2019-12-25 08:13:12
问题 I have a IIS website with multiple application connected to the same app pool and I deploy regularly some of those website through web deploy with the msdeploy tool. One of this app is set to autostart with the serviceAutoStartEnabled="true" and a matching serviceAutoStartProvider . It works well when I restart the whole app pool but the autostart is not triggered when I web deploy the website Is there any way to tell IIS to "restart" fully the website after the deploy and not wait for the

IIS 8.5 disable rewrite rule for virtual directory

只谈情不闲聊 提交于 2019-12-25 08:04:04
问题 I have a rewrite rule for my "Default Web Site" (aka at my wwwroot's web.config) to redirect all HTTP request to HTTPS as follows: <rule name="http to https" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTPS}" pattern="^OFF$" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /> </rule> Now I want to disable or exclude a Virtual Directory under this so I

Web cannot start with fcnMode set to disabled

雨燕双飞 提交于 2019-12-25 07:57:51
问题 I'm having some trouble with app pool restarts due to folder deletion, so I thought I would try to disable fcnMode (Described here: Application Restart for folder deleted,added,updated). I tried with the registry, and set it to 1. The web app would start anymore... I also tried 2, where the web started up but the folder deletion problem remained. 2 doesn't disable FCN so I guess it was expected. Then I tried using .NET 4.5 new fcnMode value in web.config: This had the exact same affect as

mkdir(): Permission denied in Yii2

时光总嘲笑我的痴心妄想 提交于 2019-12-25 04:37:19
问题 After installing yii2, I got the following error. Some suggests that I should give full permissions to IIS_IUSRS but still to no avail. 回答1: You shouldn't need to set the permissions to 777 , that is a security problem as it gives read and write access to the world. It may be that your apache user does not have read/write permissions on the directory. If you use Ubuntu do this : Make sure all files are owned by the Apache group and user. In Ubuntu it is the www-data group and user chown -R

IIS Redirecting non-WWW to WWW along with HTTP to HTTPS ISSUE

删除回忆录丶 提交于 2019-12-25 01:45:30
问题 I want to redirect non-WWW to WWW along with HTTP to HTTPS in IIS 8.5. if users type http://example.com, http://www.example.com, or https://example.com, they all redirect to https://www.example.com. This is my web.config file <rewrite> <rules> <rule name="Force WWW and SSL" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAny"> <add input="{HTTP_HOST}" pattern="^[^www]" /> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect"

URL rewrite in IIS 8.5 is not working I'm getting 404 instead

女生的网名这么多〃 提交于 2019-12-24 23:16:26
问题 Hi I've configured a rewrite rule on my IIS but it seems like it never gets fired I've been working on this for several hours without any luck this is my rule in the web config of the appplication: <rewrite> <rules> <rule name="Rewrite frienly url to snapshot" stopProcessing="true"> <match url="/(localhost:2934)\/trabajos\/([\w-]+)\/([\w-|\-]+)" /> <action type="Rewrite" url="\/snapshots/{R:2}.html" logRewrittenUrl="true" /> </rule> </rules> </rewrite> my URL is the following: http:/

Bonobo Git Server Configruation: HTTP Error 500.19 - Internal Server Error at line 71

狂风中的少年 提交于 2019-12-24 00:53:14
问题 I have tried to configure Bonobo Git Server. I have followed the included instructions, and after trying to visit the server for the first time, I get the following error: There is a similar question; however, it gives an error at one line prior and the solution the author answered (though not accepted) did not seem to affect the error occurring in my circumstances. I am running Bonobo Git Server on Windows Server 2012R2 under IIS 8.5 using Azure. IIS is correctly configured in that I can

Getting 404 error on page refresh in Angular 4

邮差的信 提交于 2019-12-22 09:36:47
问题 We have deployed angular 4 application using 'ng build --prod' cli command and created 'dist' folder hosted on IIS 8.5, when we run the application then it's working fine but if pressed F5 key then getting 404 error. Note: please don't suggest to use (useHash:true) if suggested then how we can remove '#' from url. Appreciated help if some one can suggest us. 回答1: You can write change your web.config file like below <configuration> <system.webServer> <rewrite> <rules> <rule name="AngularJS

Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'aspNetCore

核能气质少年 提交于 2019-12-22 01:33:16
问题 I have recently published my ASP.NET Core application to my host. I am hitting a HTTP Error 500.19. IIS 8.5 says the issue is:- "Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'aspNetCore'" It also highlights this key add line in my system.webServer config:- <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" </handlers> I'm not really sure what to do on this. It looks as though there is a duplicate instance of this, so I