Created
February 12, 2019 01:38
-
-
Save gcaraciolo/3122a8389700aa09c227d6b4b3555f15 to your computer and use it in GitHub Desktop.
Postgrain - Localhost MacOS
This file contains hidden or 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 { | |
listen 80; | |
listen [::]:80; | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
ssl_certificate /usr/local/etc/nginx/ssl/nginx-selfsigned.crt; | |
ssl_certificate_key /usr/local/etc/nginx/ssl/nginx-selfsigned.key; | |
index index.php index.html; | |
server_name api.postgrain.local; | |
error_log /usr/local/var/log/nginx/error.log; | |
access_log /usr/local/var/log/nginx/access.log; | |
root /usr/local/var/www/postgrain/postgrain-api/public; | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
} | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment