• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Static Content intermittantly not being served

WindowsSysadmin

New Pleskian
Hi All,

We are running Plesk Onyx 17 on Windows server 2016 with IIS10 - and as per the attached image, we are getting intermittent issues where Static Content fails to load. If we reload the page, most times the images load successfully.

I have seen this issue before on a Server 2012 instance - the fix in that scenario was to add this to the web.config file:

Code:
<system.Webserver>
<staticContent>
<clientCache cacheControlMode="NoControl" />
</staticContent>
</system.Webserver>

I've done the above (and also tried setting it to disablecache) but to no avail - I suspect that either the issue is that I'm missing an additional place to add said config, or I need to do something within Plesk to make it honor the above setting.

Ideas?
 

Attachments

  • StaticContent.png
    StaticContent.png
    53.8 KB · Views: 10
I worked with Plesk support on this - eventually
I tracked the issue down to our Plesk install script (which is written in Powershell) – We enabled Dynamic IP security for the server, and this is what has caused this issue

To replicate:

Code:
Import-Module webadministration

Set-WebConfiguration -filter 'system.webServer/security/dynamicipsecurity/*' -PSPath "IIS:\" -value (@{enabled="true"})

Set-WebConfiguration -filter 'system.webServer/security/dynamicipsecurity' -PSPath "IIS:\" -value (@{denyAction="AbortRequest"})

As soon as I did this section – the issue occurred – I believe the culprit (and why it was intermittent) was due to the time taken by the server to serve the content (the server is a VM) – if the VM IO was fast enough, the default settings for Dynamic IP Security would trip and fail to serve the content – I tried to find this in the logs, but it doesn’t appear anywhere (which is what made tracking this fault down such a Pain)

The solution was to disable Dynamic IP Security for the Plesk Control Panel website using the below Powershell:

Code:
set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -location 'pleskcontrolpanel' -filter "system.webServer/security/dynamicIpSecurity/denyByConcurrentRequests" -name "enabled" -value "false"


set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -location 'pleskcontrolpanel' -filter "system.webServer/security/dynamicIpSecurity/denyByRequestRate" -name "enabled" -value "false"
 
Back
Top