Last active
October 10, 2019 14:08
-
-
Save jcchikikomori/6f94a34130b8194cbf860ab418e63710 to your computer and use it in GitHub Desktop.
LINUX VALET HOSTS for BEDROCK - because valet link command was a pussy
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 bedrock-mohawk.localhost; | |
charset utf-8; | |
root /home/jccorsanes/www/bedrock-project/web; | |
index index.php index.html; | |
#access_log /usr/local/var/log/nginx/access.log; | |
#error_log /usr/local/var/log/nginx/error.log; | |
access_log off; | |
error_log /home/yourusername/.valet/Log/nginx-error.log; | |
location ~ ^(.+\.php)(.*)$ { | |
fastcgi_split_path_info ^(.+\.php)(.*)$; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
fastcgi_pass unix:/home/yourusername/.valet/valet.sock; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
client_header_timeout 3000; | |
client_body_timeout 3000; | |
fastcgi_read_timeout 3000; | |
client_max_body_size 32m; | |
fastcgi_buffers 8 128k; | |
fastcgi_buffer_size 128k; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment