当前位置:网站首页>Apache Web page security optimization

Apache Web page security optimization

2022-07-05 02:40:00 M wild 9

Apache Web security optimization

Apache Overview of web page optimization :

In the enterprise , Deploy Apache Only the default configuration parameters are used , Can send many questions about network defense , In other words, the photo recognition configuration is for the previous lower server configuration ,

The previous configuration is no longer suitable for today's Internet era .

Web page compression practice

First step : Check for installation mod_deflate modular :

Apache Web security optimization _apache

The second step : No installation mod_deflate modular , Recompile install Apache Add this module

1) Close the service , Then on httpd After the file is backed up , Install the program

Apache Web security optimization _apache_02

2) Recompile install Apache add to mod_deflate modular

Apache Web security optimization _ cache _03

3) Recompile install

Apache Web security optimization _ Compilation and installation _04

The third step : To configure mod_deflate modular

1) Amendment No 51 That's ok , then 52 Line comment out

Apache Web security optimization _apache_05

2) modify 105 Row sum 197 That's ok

Apache Web security optimization _apache_06

3) Add configuration in the last line

Apache Web security optimization _ cache _07

Step four : Check the installation , Start the service

Apache Web security optimization _ Compilation and installation _08

Step five : test mod_deflate Is compression effective

\1. Drag in the picture , Then edit index.html file

Apache Web security optimization _ cache _09

Apache Web security optimization _ Compilation and installation _10

echo “192.168.153.30 www.nj.com” >> /etc/hosts

Web caching Practice

First step : Check for installation mod expires modular

Apache Web security optimization _ cache _11

The second step : If not installed mod_expires modular , Recompile install Apache add to mod_expires modular

1) Install the program

Apache Web security optimization _ Compilation and installation _12

2) Load module

Apache Web security optimization _ cache _13

3) Recompile install

Apache Web security optimization _apache_14

The third step : To configure mod_expires Module enable

1) Switch directories and then modify the monitored IP Address

Apache Web security optimization _ Compilation and installation _15

2) Cancel 111 Comment on line

Apache Web security optimization _apache_16

3) Modify domain name

Apache Web security optimization _ cache _17

4) Add configuration in the last line

Apache Web security optimization _ Compilation and installation _18

Step four : Check the installation , Start the service

Apache Web security optimization _apache_19

Step five : test result

1) Go to the web page , Then clean up the records and refresh

2) Check whether the cache is effective

Apache Security optimization

Hide version information Practice

First step : modify httpd.conf file , The modification is as follows

Apache Web security optimization _apache_20

The second step : modify httpd-default.conf file , The modification is as follows

Apache Web security optimization _ Compilation and installation _21

test

Configure anti-theft chain Practice

First step : Check for installation mod rewrite modular

Apache Web security optimization _ cache _22

The second step : If not installed mod_rewrite modular , Recompile install Apache add to mod rewrite modular

1) Out of Service , Then back up the files , Conduct yum Erection sequence

Apache Web security optimization _apache_23

2) add to mod rewrite modular

Apache Web security optimization _ Compilation and installation _24

3) Recompile install

Apache Web security optimization _apache_25

The third step : To configure mod_rewrite Module enable

1) modify /usr/local/httpd/conf/httpd.conf file , Cancel 157 Line notes

Apache Web security optimization _ Compilation and installation _26

2) stay 224 Add these configurations below the line ( I found it on the virtual machine , This is a screenshot of forgetting to finish )

Apache Web security optimization _ cache _27

Step four : Chain theft test

1) Configure on the source host ( This screenshot is wrong , The process of forgetting to modify back is such a process )

Apache Web security optimization _ cache _28

Configure on the chain stealing host httpd Related configuration

Apache Web security optimization _apache_29

Configure temporary domain name resolution on the chain stealing host

Apache Web security optimization _ Compilation and installation _30

5) Visit the website address of the stealing host on the stealing host ( Remember to clean up the history and cache, and then refresh the web page )

Apache Web security optimization _apache_31

原网站

版权声明
本文为[M wild 9]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140908089113.html