Created
August 2, 2021 19:11
-
-
Save itsrachelfish/fa55268d14d430a3d96e783c4fdbe26b to your computer and use it in GitHub Desktop.
Playasoft Volunteer DB Nginx Config
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 { | |
listen 80; | |
server_name volunteer.wetfish.net; | |
client_max_body_size 32M; | |
fastcgi_buffers 16 16k; | |
fastcgi_buffer_size 32k; | |
root /home/volunteer/laravel-voldb/laravel/public; | |
index index.php index.html index.htm; | |
location / { | |
autoindex off; | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
# pass the PHP scripts to FastCGI server | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_pass unix:/run/php/php7.1-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment