当前位置:网站首页>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 )
边栏推荐
- D3js notes
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- Can you really learn 3DMAX modeling by self-study?
- Summary and practice of knowledge map construction technology
- Hmi-32- [motion mode] add light panel and basic information column
- 2022/02/13
- The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
- ELK日志分析系统
- Go RPC call
- Design and implementation of high availability website architecture
猜你喜欢
Practical case of SQL optimization: speed up your database
问题解决:AttributeError: ‘NoneType‘ object has no attribute ‘append‘
如何做一个炫酷的墨水屏电子钟?
Action News
A label making navigation bar
Zabbix
Avoid material "minefields"! Play with super high conversion rate
Introduce reflow & repaint, and how to optimize it?
[source code attached] Intelligent Recommendation System Based on knowledge map -sylvie rabbit
Exploration of short text analysis in the field of medical and health (I)
随机推荐
Visual studio 2019 set transparent background (fool teaching)
tuple and point
openresty ngx_lua执行阶段
RichView TRVStyle MainRVStyle
使用druid连接MySQL数据库报类型错误
Using druid to connect to MySQL database reports the wrong type
ELFK部署
GFS分布式文件系统
Which common ports should the server open
Marubeni Baidu applet detailed configuration tutorial, approved.
Practical case of SQL optimization: speed up your database
ICSI 311 Parser
Talk about the things that must be paid attention to when interviewing programmers
Summary and practice of knowledge map construction technology
Application and Optimization Practice of redis in vivo push platform
Exploration of short text analysis in the field of medical and health (II)
Problem solving: attributeerror: 'nonetype' object has no attribute 'append‘
Missile interception -- UPC winter vacation training match
Design and implementation of high availability website architecture
Grub 2.12 will be released this year to continue to improve boot security