Nginx conf and server files configĬlient_body_temp_path /var/lib/nginx/body 1 2 This is much easier than compiling from source. Issue the following commands to import the key from to verify packages and update your system's package database: $ wget -O - | apt-key add. To install a later version you have to add the lenny backports packagesĪdd this line to the file deb lenny-backports mainĪdd the following to the file: Package: nginx On Debian you can use the repositories to install but they only contain version 0.6.33. If not your logs will have 127.0.0.1 as the originating ip address. You should also install mod_rpaf so your logs will contain the real ip addresses of your visitors. ServerAlias DocumentRoot /srv/www//public_html/ First we are going to make changes to our Apache conf and virtual hosts files to listen on port 8080. This wastes connections because Apache will keep them open and when you have lots of traffic your connections will be bogged down even if they are not being used.īy default Apache listens for requests on port 80 which is the default web port. The problem with using Apache alone is that it opens up a connection and hits php on every request even for static files. How to configure Nginx to serve static files and pass PHP to Apache With W3 Total Cache we are using disk for page cache and minify because Nginx will be serving our static files very fast. Self Hosted CDN - Create 4 cname aliases that point to domain on the server set up just to serve static file.W3 Total Cache - Set page cache to disk enhanced, minify to disk, and object and db to APC.APC - Configure it with mmap memory and shm size of at least 128M.PHP - Latest stable version of 5.2 or 5.3 branch. MySql - Required by WP, make sure your running the latest stable version.Apache - Apache will handle the PHP offloaded by Nginx on an alternate port.Nginx - Configured as reverse proxy static file cache.I am classifying mid range as single core with around 1G of memory and fairly fast drives. This is the best WordPress performance stack for a low to mid range single server or VPS. My WordPress Performance and Caching Stack
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |