Issue : Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.Solutions:Update .htaccess# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule...
Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts
Monday, November 29, 2021
Tuesday, May 25, 2021
Prometheus and Grafana : Monitor Apache
1. Download apache_exporter #wget https://github.com/Lusitaniae/apache_exporter/releases/download/v1.0.2/apache_exporter-1.0.2.linux-amd64.tar.gz2.Install apache_exporter#tar xvzf apache_exporter-1.0.2.linux-amd64.tar.gz#cd apache_exporter-1.0.2.linux-amd64#chown apache:apache apache_exporter# mv apache_exporter /usr/bin3.Create apache_exporter services#vi /etc/systemd/system/apache-exporter.service-...
Wednesday, October 7, 2020
Apache : Enable Mod_Status Module in Apache Centos 7
1. Enable and configure mod_status module in Apache#vi /etc/httpd/conf.modules.d/00-base.confUn-commented to enable mod_status module2. Once enable the module, need to create a server-status.conf in /etc/httpd/conf.d#vi /etc/httpd/conf.d/server-status.conf Add following line:<Location "/server-status"> ...
Friday, May 29, 2020
Apache : Boost the Performance
Always keep Apache updated to its latest version# httpd -v - (centos)# apache2 –v (ubuntu) Used the Multi-Processing Module (MPM)The event MPM is the default MPM in most Apache installations
for versions 2.4 and above. It is similar to the worker MPM in that it
also creates multiple threads per child process but with an advantage:
it causes KeepAlive or idle connections (while they remain...
Friday, January 12, 2018
Apache : Redirect Root URL to Subfolder
Solution :
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) /mysubfolder/ [R=301]
RewriteEngine on is used to specify to Apache that this site will use Rewrite rules to transform the URL
RewriteCond is the match part of the pattern. If the URL matches this pattern then RewriteRule will be applied. This particular pattern is checking if the requested URL path is equal to /.
RewriteRule...
Friday, March 17, 2017
Apache : Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Solutions:
Go to /home/sitename/fcgi-bin
Use the follpwoing command to reset the immutable flag
"chattr -i php5.fcgi"
Then delete the /home/sitename/etc and /home/sitename/fcgi-bin
directories (making sure that anything that's not php related in etc is
saved)
Using virtualmin switch back to apache mod_php mode and then back to FCGId mode. The site should now work
Dont forget to chown any files/directories...
Monday, January 11, 2016
Tomcat : Apache and Tomcat connection issue
Solutions:
Tomcat:
<!-- Define an AJP 1.3 Connector on port 8009 --><Connector port="8009" maxThreads ="300' minSpareThreads="25" maxSpareThreads="75" enableLookups="false" protocol="AJP/1.3" redirectPort="8443" />
Apache :
<IfModule prefork.c>.....ServerLimit 300MaxClients 300....<IfModule worker.c>.....MinSpareThreads 25MaxSpareThreads 75....
Source:
http://javawor...
Thursday, June 25, 2015
Apache : mod_fcgid: HTTP request length exceeds MaxRequestLen
Error : mod_fcgid: HTTP request length 135376 (so far) exceeds MaxRequestLen (131072)
Solution :
Edit /etc/httpd/conf.d/fcgid.conf
Add FcgidMaxRequestLen 10485760
Restart httpd
source : http://linuxuse.com/oshibki/apache-mod-fcgid-http-request-length-137536-so-far-exceeds-maxrequestlen.ht...
Friday, May 30, 2014
Tomcat :Apache Web Server and Tomcat AJP issue
Problems :
[error] ajp_read_header: ajp_ilink_receive failed
[error] (70007)The timeout specified has expired: proxy: read response failed from localhost:8009 (localhost)
Solutions :
Increase timeout
ProxyPass ajp://localhost:8009/ retry=0 timeout=10000 ttl=10000
-------------------------------------------------------------------------------------------------------------------
Problems:
[error]...
Monday, February 27, 2012
Tomcat : Virtual Host in Tomcat
Edit server.xml ( /usr/tomcat/... )configuration file:# vim /usr/tomcat/conf/server.xmlAdd this line:<Engine> <Service> <Server><!-- This Host is the first "Virtual Host": www.example.com --> <Host name="www.example.com" appBase="/home/example/webapp"> <Context path="" docBase=""/> </Host> <Engine> <Service><Server>Sample...
Thursday, April 7, 2011
Apache Modsecurity : Request body (Content-Length) is larger than theconfigured limit
Error Log:
ModSecurity: Request body (Content-Length) is larger than the configured limit (131072). [hostname "x.x.x.x"] [uri "/templates_import.php"] [unique_id "QzoPUttdJF4AABSQMQsAAAAB"]
Resolved solutions:
Edit this command to /etc/http/conf.d/modsecurity.conf-minimal
# Basic configuration options
SecRuleEngine On
SecRequestBodyAccess On
SecResponseBodyAccess On
...
Thursday, February 24, 2011
ModSecurity - Centos 5.X
ModSecurity is an open source web application firewall (WAF) engine for Apache that is developed by Trustwave's SpiderLabs. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis. With over 10,000 deployments world-wide, ModSecurity is the most widely deployed...
Thursday, October 21, 2010
Problems solved: PHP execution via fcgid requires the Apache mod_fcgid module
Application : Problems effect after update some patches on Vitualmin GPLmod_fcgid is a high performance alternative to mod_cgi or mod_cgid, which starts a sufficient number instances of the CGI program to handle concurrent requests, and these programs remain running to handle further incoming requests. It is favored by the PHP developers, for example, as a preferred alternative to...
Subscribe to:
Posts (Atom)