Skip to content

Instantly share code, notes, and snippets.

@valeriansaliou
Created October 28, 2015 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valeriansaliou/328c389e1285314142d1 to your computer and use it in GitHub Desktop.
Save valeriansaliou/328c389e1285314142d1 to your computer and use it in GitHub Desktop.
Jappix.com - NGINX default configuration file
##
# @server jappix
# @host default
# @desc nginx host rules
# @author Valerian Saliou <valerian@valeriansaliou.name>
##
# HTTP Server
server {
listen [::]:80 default_server ipv6only=off;
server_name localhost;
root /dev/null;
error_log /var/log/nginx/default.log crit;
rewrite ^ https://$host$request_uri permanent;
}
# HTTPS Server
server {
listen [::]:443 default_server ssl http2 ipv6only=off;
server_name localhost;
root /srv/data_jappix/web/default;
error_log /var/log/nginx/default.log crit;
include php.conf;
include security.conf;
include files.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment