- Posts: 1
- Thank you received: 0
All popular questions related to OS Property will be posted here
problem with ModSecurity
- Elena Fenga
- Topic Author
- Offline
- New Member
-
Less
More
5 hours 22 minutes ago #178231
by Elena Fenga
problem with ModSecurity was created by Elena Fenga
For a few days now, sites with osproperty on Plesk servers with ModSecurity have been having problems saving ads in administration; they're either very slow or fail to save at all. Only by removing ModSecurity do they work properly.
Please Log in or Create an account to join the conversation.
- Dang Thuc Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13642
- Thank you received: 1785
4 hours 17 minutes ago #178232
by Dang Thuc Dam
Replied by Dang Thuc Dam on topic problem with ModSecurity
Hi,
I wanted to bring to your attention a recent issue that many users have been experiencing with their OS Property sites hosted on Plesk servers. Specifically, there have been reports of difficulties in saving ads within the administration panel. Users have noted that the operations are either very slow or fail entirely. Interestingly, disabling ModSecurity appears to resolve the issue, suggesting that the firewall may be misinterpreting legitimate requests as potential threats.
There are a few possible causes for this problem:
- False Positives: ModSecurity rules may incorrectly identify certain data, such as HTML content or special characters, as malicious, leading to blocked requests.
- Request Size Limits: If the ads contain large amounts of data or multiple images, they may exceed ModSecurity's configured limits, resulting in timeouts or errors.
- Rule Updates: Recent updates to ModSecurity rules may have introduced stricter checks, causing issues with OS Property.
To help you address this issue without compromising your site's security, I recommend the following steps:
- Switch ModSecurity to "Detection Only": This will allow you to monitor which rules are being triggered without blocking requests. You can find this option in Plesk under Tools & Settings > Web Application Firewall.
- Check ModSecurity Logs: After attempting to save an ad, review the logs to identify which rule IDs are causing the block. This information is crucial for further action.
- Whitelist Specific Rule IDs: Once you've identified the problematic rules, you can add exceptions for those specific IDs. This can be done by modifying the Apache directives for your domain in Plesk. For example:
<IfModule mod_security2.c>
SecRuleRemoveById [rule_id]
</IfModule>
- Replace [rule_id] with the actual ID causing the issue.
- Increase Request Body Limits: If the problem persists due to request size, consider increasing the limits in the ModSecurity configuration:
SecRequestBodyLimit 134217728 # 128 MB
SecRequestBodyNoFilesLimit 10485760 # 10 MB
- Test Again: After making these adjustments, try saving an ad again to see if the issue is resolved.
By following these steps, you should be able to resolve the issues with OSProperty while maintaining the security benefits of ModSecurity. If you continue to experience problems, please feel free to reach out for further assistance.
Thanks
Dam
I wanted to bring to your attention a recent issue that many users have been experiencing with their OS Property sites hosted on Plesk servers. Specifically, there have been reports of difficulties in saving ads within the administration panel. Users have noted that the operations are either very slow or fail entirely. Interestingly, disabling ModSecurity appears to resolve the issue, suggesting that the firewall may be misinterpreting legitimate requests as potential threats.
There are a few possible causes for this problem:
- False Positives: ModSecurity rules may incorrectly identify certain data, such as HTML content or special characters, as malicious, leading to blocked requests.
- Request Size Limits: If the ads contain large amounts of data or multiple images, they may exceed ModSecurity's configured limits, resulting in timeouts or errors.
- Rule Updates: Recent updates to ModSecurity rules may have introduced stricter checks, causing issues with OS Property.
To help you address this issue without compromising your site's security, I recommend the following steps:
- Switch ModSecurity to "Detection Only": This will allow you to monitor which rules are being triggered without blocking requests. You can find this option in Plesk under Tools & Settings > Web Application Firewall.
- Check ModSecurity Logs: After attempting to save an ad, review the logs to identify which rule IDs are causing the block. This information is crucial for further action.
- Whitelist Specific Rule IDs: Once you've identified the problematic rules, you can add exceptions for those specific IDs. This can be done by modifying the Apache directives for your domain in Plesk. For example:
<IfModule mod_security2.c>
SecRuleRemoveById [rule_id]
</IfModule>
- Replace [rule_id] with the actual ID causing the issue.
- Increase Request Body Limits: If the problem persists due to request size, consider increasing the limits in the ModSecurity configuration:
SecRequestBodyLimit 134217728 # 128 MB
SecRequestBodyNoFilesLimit 10485760 # 10 MB
- Test Again: After making these adjustments, try saving an ad again to see if the issue is resolved.
By following these steps, you should be able to resolve the issues with OSProperty while maintaining the security benefits of ModSecurity. If you continue to experience problems, please feel free to reach out for further assistance.
Thanks
Dam
Please Log in or Create an account to join the conversation.
Moderators: Dang Thuc Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.