Nginx HTTP Server: Make the most of your infrastructure and serve pages faster than ever with Nginx
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Birmingham [u.a.]
Packt Publ.
2013
|
Ausgabe: | 2. ed. |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | IX, 298 S. Ill. |
ISBN: | 9781782162322 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV042050660 | ||
003 | DE-604 | ||
005 | 20140929 | ||
007 | t | ||
008 | 140829s2013 a||| |||| 00||| eng d | ||
020 | |a 9781782162322 |9 978-1-78216-232-2 | ||
035 | |a (OCoLC)879357719 | ||
035 | |a (DE-599)BVBBV042050660 | ||
040 | |a DE-604 |b ger | ||
041 | 0 | |a eng | |
049 | |a DE-523 | ||
084 | |a ST 252 |0 (DE-625)143627: |2 rvk | ||
100 | 1 | |a Nedelcu, Clément |e Verfasser |4 aut | |
245 | 1 | 0 | |a Nginx HTTP Server |b Make the most of your infrastructure and serve pages faster than ever with Nginx |c Clément Nedelcu |
250 | |a 2. ed. | ||
264 | 1 | |a Birmingham [u.a.] |b Packt Publ. |c 2013 | |
300 | |a IX, 298 S. |b Ill. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 0 | 7 | |a HTTP |0 (DE-588)4479982-2 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Open Source |0 (DE-588)4548264-0 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a World Wide Web |0 (DE-588)4363898-3 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Server |0 (DE-588)4209324-7 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a World Wide Web |0 (DE-588)4363898-3 |D s |
689 | 0 | 1 | |a HTTP |0 (DE-588)4479982-2 |D s |
689 | 0 | 2 | |a Server |0 (DE-588)4209324-7 |D s |
689 | 0 | |8 1\p |5 DE-604 | |
689 | 1 | 0 | |a Open Source |0 (DE-588)4548264-0 |D s |
689 | 1 | |8 2\p |5 DE-604 | |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027491755&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-027491755 | ||
883 | 1 | |8 1\p |a cgwrk |d 20201028 |q DE-101 |u https://d-nb.info/provenance/plan#cgwrk | |
883 | 1 | |8 2\p |a cgwrk |d 20201028 |q DE-101 |u https://d-nb.info/provenance/plan#cgwrk |
Datensatz im Suchindex
_version_ | 1804152483140861952 |
---|---|
adam_text | Titel: Nginx HTTP Server
Autor: Nedelcu, Clément
Jahr: 2013
Table of Contents
Preface 1
Chapter 1: Downloading and Installing Nginx 7
Setting up the prerequisites 7
GCC - GNU Compiler Collection 8
The PCRE library 9
The zlib library 10
OpenSSL 11
Downloading Nginx 11
Websites and resources 11
Version branches 13
Features 14
Downloading and extracting 15
Configure options 15
The easy way 16
Path options 16
Prerequisites options 18
Module options 20
Modules enabled by default 20
Modules disabled by default 21
Miscellaneous options 22
Configuration examples 24
About the prefix switch 24
Regular HTTP and HTTPS servers 25
All modules enabled 25
Mail server proxy 26
Build configuration issues 26
Make sure you installed the prerequisites 26
Directories exist and are writable 27
Compiling and installing 27
Table of Contents
Controlling the Nginx service 28
Daemons and services 28
User and group 28
Nginx command-line switches 29
Starting and stopping the daemon 29
Testing the configuration 30
Other switches 31
Adding Nginx as a system service 31
System V scripts 32
What is an init script? . 33
Init script for Debian-based distributions 33
Init script for Red Hat-based distributions 34
Installing the script 34
Debian-based distributions 35
Red Hat-based distributions 35
Summary 36
Chapter 2: Basic Nginx Configuration 37
Configuration file syntax 37
Configuration Directives 38
Organization and inclusions 39
Directive blocks 41
Advanced language rules 42
Directives accept specific syntaxes 42
Diminutives in directive values 43
Variables ,• . 44
String values 44
Base module directives 44
What are base modules? 45
Nginx process architecture 45
Core module directives 46
Events module , 51
Configuration module 54
A configuration for your profile 54
Understanding the default configuration 54
Necessary adjustments 55
Adapting to your hardware 56
Testing your server 57
Creating a test server 58
Performance tests 59
Httperf 59
Autobench
OpenWebLoad 62
Table of Contents
Upgrading Nginx gracefully 64
Summary 64
Chapter 3: HTTP Configuration 65
HTTP Core module 65
Structure blocks 66
Module directives 67
Socket and host configuration 68
listen 68
server_name 68
server_name_in_redirect 69
server_names_hash_max_size 70
server_names_hash_bucket_size 70
portJn_redirect 70
tcp_nodelay 70
tcp_nopush 71
sendfile 71
sendfile_max_chunk 71
sendjowat 72
reset_timedout_connection 72
Paths and documents 72
root 72
alias 73
error_page 73
if_modified_since 74
index 74
recursive_error__pages 75
try_files 75
Client requests 75
keepalive_reque$ts 76
keepalive_timeout 76
keepalive_disable 76
send_timeout 76
client_body_in_file_only 77
client_bodyJn_single_buffer 77
client_body_buffer_size 77
client_body_temp_path 78
client_body_timeout 78
client_header_buffer_size 78
client_header_timeout 79
client_max_body_size 79
large_client_header_buffers 79
lingering_time 80
lingering_timeout 80
lingering_close 80
ignoreJnvalid_headers 80
chunked_transfer__encoding 81
max__ranges 81
Table of Contents
MIME types
types
default__type
types_hash_max_size
Limits and restrictions
limit_except
!imit_rate
limit_rate_after
satisfy
internal
File processing and caching
disable_symlinks
directio
directio_alignment
open_file_cache
open_file_cache_errors
open_file_cache_min_uses
open_file_cache_valid
read_ahead
Other directives
log_not_found
log_subrequest
merge_slashes
msie_padding
msie_refresh
resolver
resolver_timeout
server_tokens
underscoresjnjieaders
variab!es_hash_max_size
variables_hash_bucket_size
post_action
Module variables
Request headers
Response headers
Nginx generated
The Location block
Location modifier
The = modifier
No modifier
The - modifier
The modifier
The A*~ modifier
The @ modifier
Search order and priority
Case t:
Case 2:
Table of Contents
Case 3:
102
Summary
103
Chapter 4: Module Confiquration
105
Rewrite module
105
Reminder on regular expressions
106
Purpose
106
PCRE syntax
107
Quantifiers
108
Captures
109
Internal requests
110
error_page
111
Rewrite
113
Infinite loops
114
Server Side Includes (SSI)
115
Conditional structure
115
Directives
118
Common rewrite rules
121
Performing a search
121
User profile page
121
Multiple parameters
121
Wikipedia-like
122
News website article
122
Discussion board
122
SSI module
122
Module directives and variables
123
SSI Commands
125
File includes
125
Working with variables
127
Conditional structure
127
Configuration
128
Additional modules
129
Website access and logging
129
Index
129
Autoindex
130
Random index
131
Log
131
Limits and restrictions
133
Auth_basic module
133
Access
133
Limit connections
134
Limit request
135
Content and encoding
135
Empty GIF
136
FLV and MP4
136
HTTP headers
137
Addition
137
[v]
Table of Contents
Substitution
145
146
146
147
148
149
150
150
138
^ • « 138
Gzip filter 140
Gzip static ...
Charsetfilter ^ ^
Memcached ^
Image filter . -
XSLT 140
About your visitors
Browser
Map
Geo
GeolP
UserlD filter
Referer
Real IP {?
Split Clients 151
SSL and security 151
SSL 151
Setting up an SSL certificate 1®3
Secure link 154
Other miscellaneous modules 155
Stub status 155
Degradation 155
Google-perftools 156
WebDAV 156
Third-party modules 157
Summary 158
Chapter 5: PHP and Python with Nginx 159
Introduction to FastCGI 159
Understanding the CGI mechanism 160
Common Gateway Interface (CGI) 161
Fast Common Gateway Interface (FastCGI) 162
uWSGI and SCGI 163
Main directives 164
FastCGI caching 171
Upstream blocks 174
Module syntax 175
Server directive 176
PHP with Nginx 177
Architecture 177
PHP-FPM 178
Setting up PHP and PHP-FPM 178
Downloading and extracting 178
Requirements 179
Building PHP
Table of Contents
Post-install configuration 180
Running and controlling 180
Nginx configuration 181
Python and Nginx 182
Django 183
Setting up Python and Django 183
Python 183
Django 183
Starting the FastCGI process manager 184
Nginx configuration 185
Summary 185
Chapter 6: Apache and Nginx Together 187
Nginx as reverse proxy 188
Understanding the issue 188
The reverse proxy mechanism 190
Advantages and disadvantages of the mechanism 191
Nginx proxy module 192
Main directives 192
Caching, buffering, and temporary files 195
Limits, timeouts, and errors 198
Other directives 200
Variables 201
Configuring Apache and Nginx 202
Reconfiguring Apache 202
Configuration overview 202
Resetting the port number 203
Accepting local requests only 204
Configuring Nginx 204
Enabling proxy options 205
Separating content 206
Advanced configuration 208
Improving the reverse proxy architecture 209
Forwarding the correct IP address 210
SSL issues and solutions 210
Server control panel issues 211
Summary 211
Chapter 7: From Apache to Nginx 213
Nginx versus Apache 213
Features 214
Core and functioning 214
General functionality 215
Flexibility and community 215
Table of Contents
Performance
Usage 217
Conclusion
Porting your Apache configuration 218
Directives 218
Modules 220
Virtual hosts and configuration sections 221
Configuration sections 221
Creating a virtual host 222
.htaccess files 225
Reminder on Apache .htaccess files 225
Nginx equivalence 226
Rewrite rules 228
General remarks 228
On the location 228
On the syntax 229
RewriteRule 230
WordPress 231
MediaWiki 232
vBulletin 233
Summary 234
Appendix A: Directive Index 235
Appendix B: Module Reference 259
Access 259
Addition* 259
Auth_basic module 260
Autoindex 260
Browser 260
Charset 260
Core 261
DAV* 261
Degradation* 261
Empty GIF 261
Events 262
FastCGI 262
FLV*
Geo
Geo IP*
262
262
263
Google-perftools* 263
Gzip 263
Gzip Static* 263
[vili]
Table of Contents
Headers
264
HTTP Core
264
Image Filter*
264
Index
264
Limit Conn
265
Limit Requests
265
Log
265
Map
265
Memcached
266
MP4*
266
Proxy
266
Random index*
266
Real IP*
267
Referer
267
Rewrite
267
SCGI
267
Secure Link*
268
Split Clients
268
SSI
268
SSL*
268
Stub status*
269
Substitution*
269
Upstream
269
User ID
269
uWSGI
270
XSLT*
270
Appendix C: Troubleshooting
271
General tips on troubleshooting
271
Checking access permissions
271
Testing your configuration
272
Have you reloaded the service?
272
Checking logs
273
Install issues
273
The 403 Forbidden custom error page
274
400 Bad Request
275
Location block priorities
275
If block issues
276
Inefficient statements
276
Unexpected behavior
277
Index
279
|
any_adam_object | 1 |
author | Nedelcu, Clément |
author_facet | Nedelcu, Clément |
author_role | aut |
author_sort | Nedelcu, Clément |
author_variant | c n cn |
building | Verbundindex |
bvnumber | BV042050660 |
classification_rvk | ST 252 |
ctrlnum | (OCoLC)879357719 (DE-599)BVBBV042050660 |
discipline | Informatik |
edition | 2. ed. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01742nam a2200433 c 4500</leader><controlfield tag="001">BV042050660</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20140929 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">140829s2013 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781782162322</subfield><subfield code="9">978-1-78216-232-2</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)879357719</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV042050660</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-523</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 252</subfield><subfield code="0">(DE-625)143627:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Nedelcu, Clément</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Nginx HTTP Server</subfield><subfield code="b">Make the most of your infrastructure and serve pages faster than ever with Nginx</subfield><subfield code="c">Clément Nedelcu</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">2. ed.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Birmingham [u.a.]</subfield><subfield code="b">Packt Publ.</subfield><subfield code="c">2013</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">IX, 298 S.</subfield><subfield code="b">Ill.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">HTTP</subfield><subfield code="0">(DE-588)4479982-2</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Open Source</subfield><subfield code="0">(DE-588)4548264-0</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">World Wide Web</subfield><subfield code="0">(DE-588)4363898-3</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Server</subfield><subfield code="0">(DE-588)4209324-7</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">World Wide Web</subfield><subfield code="0">(DE-588)4363898-3</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">HTTP</subfield><subfield code="0">(DE-588)4479982-2</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="2"><subfield code="a">Server</subfield><subfield code="0">(DE-588)4209324-7</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="8">1\p</subfield><subfield code="5">DE-604</subfield></datafield><datafield tag="689" ind1="1" ind2="0"><subfield code="a">Open Source</subfield><subfield code="0">(DE-588)4548264-0</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="1" ind2=" "><subfield code="8">2\p</subfield><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027491755&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-027491755</subfield></datafield><datafield tag="883" ind1="1" ind2=" "><subfield code="8">1\p</subfield><subfield code="a">cgwrk</subfield><subfield code="d">20201028</subfield><subfield code="q">DE-101</subfield><subfield code="u">https://d-nb.info/provenance/plan#cgwrk</subfield></datafield><datafield tag="883" ind1="1" ind2=" "><subfield code="8">2\p</subfield><subfield code="a">cgwrk</subfield><subfield code="d">20201028</subfield><subfield code="q">DE-101</subfield><subfield code="u">https://d-nb.info/provenance/plan#cgwrk</subfield></datafield></record></collection> |
id | DE-604.BV042050660 |
illustrated | Illustrated |
indexdate | 2024-07-10T01:11:26Z |
institution | BVB |
isbn | 9781782162322 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-027491755 |
oclc_num | 879357719 |
open_access_boolean | |
owner | DE-523 |
owner_facet | DE-523 |
physical | IX, 298 S. Ill. |
publishDate | 2013 |
publishDateSearch | 2013 |
publishDateSort | 2013 |
publisher | Packt Publ. |
record_format | marc |
spelling | Nedelcu, Clément Verfasser aut Nginx HTTP Server Make the most of your infrastructure and serve pages faster than ever with Nginx Clément Nedelcu 2. ed. Birmingham [u.a.] Packt Publ. 2013 IX, 298 S. Ill. txt rdacontent n rdamedia nc rdacarrier HTTP (DE-588)4479982-2 gnd rswk-swf Open Source (DE-588)4548264-0 gnd rswk-swf World Wide Web (DE-588)4363898-3 gnd rswk-swf Server (DE-588)4209324-7 gnd rswk-swf World Wide Web (DE-588)4363898-3 s HTTP (DE-588)4479982-2 s Server (DE-588)4209324-7 s 1\p DE-604 Open Source (DE-588)4548264-0 s 2\p DE-604 HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027491755&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis 1\p cgwrk 20201028 DE-101 https://d-nb.info/provenance/plan#cgwrk 2\p cgwrk 20201028 DE-101 https://d-nb.info/provenance/plan#cgwrk |
spellingShingle | Nedelcu, Clément Nginx HTTP Server Make the most of your infrastructure and serve pages faster than ever with Nginx HTTP (DE-588)4479982-2 gnd Open Source (DE-588)4548264-0 gnd World Wide Web (DE-588)4363898-3 gnd Server (DE-588)4209324-7 gnd |
subject_GND | (DE-588)4479982-2 (DE-588)4548264-0 (DE-588)4363898-3 (DE-588)4209324-7 |
title | Nginx HTTP Server Make the most of your infrastructure and serve pages faster than ever with Nginx |
title_auth | Nginx HTTP Server Make the most of your infrastructure and serve pages faster than ever with Nginx |
title_exact_search | Nginx HTTP Server Make the most of your infrastructure and serve pages faster than ever with Nginx |
title_full | Nginx HTTP Server Make the most of your infrastructure and serve pages faster than ever with Nginx Clément Nedelcu |
title_fullStr | Nginx HTTP Server Make the most of your infrastructure and serve pages faster than ever with Nginx Clément Nedelcu |
title_full_unstemmed | Nginx HTTP Server Make the most of your infrastructure and serve pages faster than ever with Nginx Clément Nedelcu |
title_short | Nginx HTTP Server |
title_sort | nginx http server make the most of your infrastructure and serve pages faster than ever with nginx |
title_sub | Make the most of your infrastructure and serve pages faster than ever with Nginx |
topic | HTTP (DE-588)4479982-2 gnd Open Source (DE-588)4548264-0 gnd World Wide Web (DE-588)4363898-3 gnd Server (DE-588)4209324-7 gnd |
topic_facet | HTTP Open Source World Wide Web Server |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=027491755&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT nedelcuclement nginxhttpservermakethemostofyourinfrastructureandservepagesfasterthaneverwithnginx |