Apache Web Server 2.4 – 10 Must-know Configuration Features
[Pages:40]Apache Web Server 2.4 ? 10 Must-know Configuration Features
Rainer Jung kippdata informationstechnolgie GmbH
? 2018 kippdata informationstechnologie GmbH
1
Apache Web Server 2.4 ? 10 Must-know Configuration Features
Introduction
Rainer Jung, kippdata GmbH
Committer and PMC member for Apache Tomcat, the Apache httpd server and Apache JMeter
Apache Software Foundation (ASF) member
Doing lots of performance analysis and other troubleshooting
Providing support for the Apache Web Server, Apache Tomcat and other web infrastructure
? 2018 kippdata informationstechnologie GmbH
2
Apache Web Server 2.4 ? 10 Must-know Configuration Features
Disclaimer
Our approach:
We will show some nice little tricks that are still not well known
We will not describe best practices for a basic configuration
None of these need 3rd-party modules
? 2018 kippdata informationstechnologie GmbH
3
Apache Web Server 2.4 ? 10 Must-know Configuration Features
Topics
The list
"Define" ? using variables
mod_macro ? using templates
Per module log levels
Improved access log timestamps and more access log fields
Correlation ID forwarding
mod_log_debug ? Custom log lines
"" ? conditional configuration
"LocationMatch" and other *Match: named backreferences
mod_remoteip: getting the client IP address right
mod_ssl: "SSLOpenSSLConfCmd"
? 2018 kippdata informationstechnologie GmbH
4
Apache Web Server 2.4 ? 10 Must-know Configuration Features
,,Define" ? using variables
Number 1: "Define" ? using global config variables
Define STAGE dev ProxyPass /app/ ${STAGE}/app/
"Define" sets variables, "${...}" references them
You can also use "${}" to reference unix environment variables
But those can not be changed via restart or graceful
Define'd variables can be changed and activated with graceful!
Example use case: factor out varying names and sizings for different stages by replacing them with variables and setting the variables in a separate Include'd file.
? 2018 kippdata informationstechnologie GmbH
5
Apache Web Server 2.4 ? 10 Must-know Configuration Features
,,Define" ? using variables
"UnDefine VAR" ? remove variable "VAR"
"..." ? Conditional configuration, active if "VAR" is defined (independent of the value of "VAR"
Negation:
You can also define such a variable with the startup flag "-D VAR", but you can not give it a value with "-D".
? 2018 kippdata informationstechnologie GmbH
6
Apache Web Server 2.4 ? 10 Must-know Configuration Features
,,Define" ? using variables
Example for combining "-D" and "Define":
Control running config by including or not including the flag "-D TEST" on startup
Define servername test.
Define servername Define SSL
? 2018 kippdata informationstechnologie GmbH
7
Apache Web Server 2.4 ? 10 Must-know Configuration Features
mod_macro - using templates
Number 2: mod_macro - using templates
A macro is a config snippet with parameters One defines the macro with a "" block:
ServerName $servername ServerAdmin webmaster@ DocumentRoot $htdocs ErrorLog logs/error-$logname.log CustomLog logs/access-$logname.log
Here "VHost" is the name of the macro and "$servername", "$htdocs" and "$logname" are its parameters
? 2018 kippdata informationstechnologie GmbH
8
Apache Web Server 2.4 ? 10 Must-know Configuration Features
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- apache web server 2 4 10 must know configuration features
- heavenly host web to
- commercial licensing reference guide windows server 2016 microsoft
- how to connect to a remote computer or terminal server in windows
- chapter 2 setting up a web server university of cape town
- abyss web servertm aprelium
- installation of sap web dispatcher on windows using software
- chemovenetory v2 0 web based software part i php web server
- a development of a mobile application for monitoring siemens s7 1200
- apache web server windows 10 download
Related searches
- 1000 must know english words
- int 1 x 2 4 2 dx
- x 2 4 root 2 x 6
- tableau server 2019 4 download
- must know english synonyms and antonyms pdf
- 10 must see documentaries
- unity web player 2 0 download
- must know words for spanish translators
- 2 2 4 photosynthesis worksheet answers
- must know bible verses
- 10 must ask interview questions
- 10 must see places in california