-
-
Save valeriansaliou/328c389e1285314142d1 to your computer and use it in GitHub Desktop.
Jappix.com - NGINX default configuration file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# @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