a2enmod proxy
Tag Archives: apache
proxy_fcgi apache
apt install apache2 php7.4-fpm
a2enconf php7.4-fpm
a2enmod proxy proxy_fcgi
cat /etc/apache2/conf-enabled/php7.4-fpm.conf # Redirect to local php-fpm if mod_php is not available <IfModule !mod_php7.c> <IfModule proxy_fcgi_module> # Enable http authorization headers <IfModule setenvif_module> SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 </IfModule> <FilesMatch ".+\.ph(ar|p|tml)$"> SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost" </FilesMatch> <FilesMatch ".+\.phps$"> # Deny access to raw php sources by default # To re-enable it's recommended to enable access to the files # only in specific virtual host or directory Require all denied </FilesMatch> # Deny access to files without filename (e.g. '.php') <FilesMatch "^\.ph(ar|p|ps|tml)$"> Require all denied </FilesMatch> </IfModule> </IfModule>
proxy_fcgi:error AH01071: Got error Primary script unknown
File not found.
This error message means there are no such file.
Invalid command ‘Action’, perhaps misspelled or defined by a module not included in the server configuration
a2enmod actions
centos 8 apache 2.4 real ip
LoadModule remoteip_module modules/mod_remoteip.so
RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy 192.168.0.0/16
apache http_x_forwarded_for to remote_addr
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
ssl_error_rx_record_too_long
ERR_SSL_PROTOCOL_ERROR
NameVirtualHost have wrong IP address
require ip range
Apache Require IP address
Require ip 10.1.2.3
Require ip 10.1.2.1 10.1.2.2
Require ip 10.1.0.0/24
apache backlog monitoring
ss -lti '( sport = :http )' | grep unacked
If its fine, you should not see any unacked values
Invalid command ‘SetEnv’ cPanel
yum install ea-apache24-mod_env
.htaccess: Invalid command ‘SetEnv’, perhaps misspelled or defined by a module not included in the server configuration, referer:
Unknown Reason The server encountered an internal error or misconfiguration and was unable to complete your request
Unknown Reason The server encountered an internal error or misconfiguration and was unable to complete your request
You should try use: ProxyErrorOverride off
[access_compat:error] [pid 28167:tid 140515211155200] [client xx.xx.xx.xx:37918] AH01797: client denied by server configuration: /var/www/html/
Forbidden You don’t have permission to access / on this server
You should check directory permissions: namei -l /var/www/html/, if permissions are fine you need check virtual host configuration if there are no such options like ‘Deny from all’, if virtual host fine, you need search for .htaccess like this: find / -type f -name .htaccess
alpine linux apache php
apk add apache2 php5-apache2
rc-service apache2 start
rc-update add apache2
echo ok >> /var/www/localhost/htdocs/index.html
[authz_core:error] [pid 1395] [client 172.17.42.1:46656] AH01630: client denied by server configuration
< Directory /home/app/public_html>
AllowOverride all
Require all granted
< /Directory>
(13)Permission denied: /www/website.com/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.website.com/
You need check directory permissions of /www/website.com or /www/ folder.
chmod 755 /www/website.com