TullariS
New Pleskian
- Server operating system version
- Windows Server 2022
- Plesk version and microupdate number
- 18.0.68
Hi,
I have been having issues accessing Git repos hosted on Plesk (clone, push, pull, etc.). After much digging I realised that the Laravel Toolkit extension IIS rewrite rules were affecting the plesk-git application on IIS - rules are inherited from parent application.
It is an easy fix - on the plesk-git web.config file, add <clear /> inside the <rules> element, before the plesk-git <rule>:
I have done it on my end and it solves it. Unfortunately this will be reverted on following updates.
Can I ask you include this change in the extension please?
Thank you.
I have been having issues accessing Git repos hosted on Plesk (clone, push, pull, etc.). After much digging I realised that the Laravel Toolkit extension IIS rewrite rules were affecting the plesk-git application on IIS - rules are inherited from parent application.
It is an easy fix - on the plesk-git web.config file, add <clear /> inside the <rules> element, before the plesk-git <rule>:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear/>
<rule name="plesk-git" stopProcessing="true">
<match url="(^[^/]*)[^\?]*" />
<serverVariables>
<set name="PATH_INFO" value="/{R:0}" />
</serverVariables>
<action type="Rewrite" url="/plesk-git/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
I have done it on my end and it solves it. Unfortunately this will be reverted on following updates.
Can I ask you include this change in the extension please?
Thank you.