Skip to content

Instantly share code, notes, and snippets.

@valeriansaliou

valeriansaliou/default.conf Secret

Created Oct 28, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.