Configuration is as follows:
ServerName www.abc.com
ServerAlias
FcgidInitialEnv PHPRC "B:/phpstudy_pro/Extensions/installs are/php5.2.17 NTS"
AddHandler fcgid - script. PHP
FcgidWrapper "B:/phpstudy_pro/Extensions/installs are/php5.2.17 NTS/PHP - cgi. Exe". PHP
CustomLog "B:/phpstudy_pro/Extensions/Apache2.4.39/logs/www.abc.com _acess_ % % m % y d.l og" common
ExpiresActive On
AllowOverride All
Order to allow a deny
Allow the from all
The Require all granted
DirectoryIndex index. HTML index. PHP
ExpiresByType image/GIF A14400
ExpiresByType image/jpeg A14400
ExpiresByType image/JPG A14400
ExpiresByType image/PNG A14400
ExpiresByType application/x - the rest - flash A2592000
ExpiresByType text/CSS A14400
ExpiresByType application/javascript A14400
DeflateCompressionLevel 6
AddOutputFilterByType DEFLATE text/HTML text/plain text/XML text/CSS text/javascript application/javascript
AddOutputFilter DEFLATE CSS | js | TXT | | | | RSS XML HTML HTM
The Header append than the user-agent env=! Dont - than
SetEnvIfNoCase Request_URI. (? : GIF | jpe? G | PNG | BMP | tif | ico | eot | SVG | the vera.ttf | woff) $no - gzip dont - than
SetEnvIfNoCase Request_URI. (? : exe | t? Gz 7 | z | | zip.bz2 | sit | rar | bin | iso) $no - gzip dont - than
SetEnvIfNoCase Request_URI. (? : PDF | doc | docx | XLS | XLSX | | PPT PPTX) $no - gzip dont - than
SetEnvIfNoCase Request_URI. (? : mov | FLV avi | | mp3 | mp4 | rm | webm | ogv) $no - gzip dont - than
ErrorDocument 400/error/400 HTML
ErrorDocument 403/error/403 HTML
ErrorDocument 404/error/404 HTML
ErrorDocument 500/error/500 HTML
ErrorDocument 501/error/501 HTML
ErrorDocument 502/error/502 HTML
ErrorDocument 503/error/503 HTML
ErrorDocument 504/error/504 HTML
ErrorDocument 505/error/505 HTML
ErrorDocument 506/error/506 HTML
ErrorDocument 507/error/507 HTML
ErrorDocument 510/error/510 HTML
CodePudding user response:
The firewall open only the ports that you need to leave the other kept offCodePudding user response: