当前位置:网站首页>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 :

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

2) Recompile install Apache add to mod_deflate modular

3) Recompile install

The third step : To configure mod_deflate modular
1) Amendment No 51 That's ok , then 52 Line comment out

2) modify 105 Row sum 197 That's ok

3) Add configuration in the last line

Step four : Check the installation , Start the service

Step five : test mod_deflate Is compression effective
\1. Drag in the picture , Then edit index.html file


echo “192.168.153.30 www.nj.com” >> /etc/hosts
Web caching Practice
First step : Check for installation mod expires modular

The second step : If not installed mod_expires modular , Recompile install Apache add to mod_expires modular
1) Install the program

2) Load module

3) Recompile install

The third step : To configure mod_expires Module enable
1) Switch directories and then modify the monitored IP Address

2) Cancel 111 Comment on line

3) Modify domain name

4) Add configuration in the last line

Step four : Check the installation , Start the service

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

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

test
Configure anti-theft chain Practice
First step : Check for installation mod rewrite modular

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

2) add to mod rewrite modular

3) Recompile install

The third step : To configure mod_rewrite Module enable
1) modify /usr/local/httpd/conf/httpd.conf file , Cancel 157 Line notes

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

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 )

Configure on the chain stealing host httpd Related configuration

Configure temporary domain name resolution on the chain stealing host

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 )

边栏推荐
- Talk about the things that must be paid attention to when interviewing programmers
- Yuan universe also "real estate"? Multiple second-hand trading websites block metauniverse keywords
- 低度酒赛道进入洗牌期,新品牌如何破局三大难题?
- Prometheus monitors the correct posture of redis cluster
- The database and recharge are gone
- 【LeetCode】106. Construct binary tree from middle order and post order traversal sequence (wrong question 2)
- Can you really learn 3DMAX modeling by self-study?
- Exploration of short text analysis in the field of medical and health (I)
- Subject 3 how to turn on the high beam diagram? Is the high beam of section 3 up or down
- [Yu Yue education] National Open University spring 2019 0505-22t basic nursing reference questions
猜你喜欢

Security level

Missile interception -- UPC winter vacation training match
![[source code attached] Intelligent Recommendation System Based on knowledge map -sylvie rabbit](/img/3e/ab14f3a0ddf31c7176629d891e44b4.png)
[source code attached] Intelligent Recommendation System Based on knowledge map -sylvie rabbit

Icu4c 70 source code download and compilation (win10, vs2022)

ELK日志分析系统

Android advanced interview question record in 2022

Design and implementation of high availability website architecture

Scientific research: are women better than men?

A label making navigation bar

Acwing第 58 场周赛【完结】
随机推荐
返回二叉树中两个节点的最低公共祖先
2022/02/13
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Hmi-31- [motion mode] solve the problem of picture display of music module
GFS分布式文件系统
Openresty ngx Lua Execution stage
Prometheus monitors the correct posture of redis cluster
Leetcode takes out the least number of magic beans
Application and Optimization Practice of redis in vivo push platform
Unpool(nn.MaxUnpool2d)
Traditional chips and AI chips
Tucson will lose more than $400million in the next year
Video display and hiding of imitation tudou.com
Asynchronous and promise
Variables in postman
Data guard -- theoretical explanation (III)
【微服务|SCG】Filters的33种用法
Avoid material "minefields"! Play with super high conversion rate
Scientific research: are women better than men?
Richview trvunits image display units