Server configuration guides - Page 2

Build and repair Linux server stacks with guides for Nginx, PHP-FPM, MariaDB, TLS, reverse proxies, and production web services.

Curated guides

Server setup guides

110 matched guides, best match first. Page 2 of 10.

Nginx logo with browser windows showing www redirect arrows between domains

Nginx Redirect WWW to Non-WWW or Non-WWW to WWW

An Nginx redirect from www to non-www is usually a server-block decision, not an application rewrite. A small server block can catch www.example.com, send a permanent 301 response,...

Updated ( Published )

Nginx logo with files transferring directly to a server representing sendfile zero-copy optimization

Enable the Nginx Sendfile Directive

Large static-file responses can make Nginx spend CPU time copying data it does not need to inspect. To enable sendfile in Nginx, set the sendfile directive so direct...

Updated ( Published )

Nginx logo with a document showing a port change from 80 to 8080 and network gear icons representing port configuration and routing.

How to Change NGINX Ports

Changing the Nginx port starts with the listen directive inside each server block, not with a global service setting. To change Nginx port 80 to 8080, update every...

Updated ( Published )

Nginx logo with server rack and speedometer representing TCP Fast Open performance optimization

How to Enable TCP Fast Open in Nginx

Enable TCP Fast Open in Nginx only when the listener can safely accept request data before the TCP handshake fully completes. The workflow is to enable Linux server-side...

Updated ( Published )

Nginx logo with file caching and database icons representing open file cache configuration

Enable Nginx open_file_cache for Static Files

Repeated static-file requests can waste time on the same filesystem checks: open the file, confirm it still exists, read its size, and check its modification time. Nginx open_file_cache...

Updated ( Published )