Skip to content

Instantly share code, notes, and snippets.

@nitrix
Last active December 23, 2015 01:49
Show Gist options
  • Select an option

  • Save nitrix/6563196 to your computer and use it in GitHub Desktop.

Select an option

Save nitrix/6563196 to your computer and use it in GitHub Desktop.
user http;
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
server_names_hash_bucket_size 64;
server {
listen 80;
server_name www.lonesomespace.com lonesomespace.com;
root /srv/http/lonesomespace;
location / {
try_files $request_filename /index.php;
}
location ~* ^.+.(css|js|jpeg|jpg|gif|png|ico) {
expires 30d;
}
location ~ .(php|phtml)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index /index.php;
include /etc/nginx/fastcgi_params;
}
}
#server {
# listen 80;
# server_name alexbelanger.com www.alexbelanger.com;
# rewrite ^(.*) https://alexbelanger.com$1 permanent;
#}
server {
#ssl_certificate /etc/nginx/keys/geotrust.pem;
#ssl_certificate_key /etc/nginx/keys/alexbelanger.key;
#listen 443 ssl;
listen 80;
location / {
try_files $request_filename /index.php;
}
server_name www.alexbelanger.com alexbelanger.com;
root /srv/http/alexbelanger;
#location / {
# proxy_pass http://192.99.9.178:8001;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
#}
location ~ .(php|phtml)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index /index.php;
include /etc/nginx/fastcgi_params;
}
location ~* ^.+.(css|js|jpeg|jpg|gif|png|ico) {
expires 30d;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment