Initial commit

This commit is contained in:
aptalca
2018-02-06 20:12:08 -05:00
commit 92d655743b
10 changed files with 393 additions and 0 deletions

30
root/defaults/default Normal file
View File

@@ -0,0 +1,30 @@
server {
listen 80 default_server;
listen 443 ssl;
root /app/root;
index index.php index.html index.htm;
server_name _;
ssl_certificate /config/keys/cert.crt;
ssl_certificate_key /config/keys/cert.key;
client_max_body_size 0;
location / {
try_files $uri $uri/ /index.php?$args =404;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# With php5-cgi alone:
fastcgi_pass 127.0.0.1:9000;
# With php5-fpm:
#fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}