Skip to content

Instantly share code, notes, and snippets.

View guillaumemolter's full-sized avatar

Guillaume Molter guillaumemolter

View GitHub Profile
@guillaumemolter
guillaumemolter / nginx.default.conf
Last active November 6, 2018 20:32 — forked from sumardi/nginx.default.conf
Install PHP-FPM and Nginx on EC2 with Amazon Linux AMI
# Install linux update, followed by GCC and Make
sudo yum -y update
# Install Nginx and PHP-FPM
sudo yum install -y nginx php-fpm
# Install PHP extensions
sudo yum install -y php-mysql php-pdo \
php-mbstring php-cli \
php-imap php-gd php-xml php-openssl php-tokenizer
@guillaumemolter
guillaumemolter / plesk-nginx-config-ressources
Last active August 29, 2015 14:02 — forked from rutger1140/gist:8548548
Ressources to configure Plesk (11.5) with NGinx as the main webserver
### /usr/local/psa/admin/conf/templates/custom/domain/nginxDomainVirtualHost.php ###
# Source: https://www.websavers.org/how-to-speed-up-wordpress/
rewrite !\.(js|ico|gif|jpg|png|css|pdf|mov|mp3|eot|svg|ttf|woff|otf|txt|swf)$ /index.php break;
rewrite /wp-admin/$ /wp-admin/index.php break;
rewrite /$ /index.php break;
# enable gzip compression
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;