Last active
June 25, 2020 09:34
-
-
Save gieart87/534c978bc7842b7dbd2a8083c368d42b to your computer and use it in GitHub Desktop.
Nginx Virtual Host Config for CodeIgniter 3.x in Mac / OSX Sierra
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; | |
server_name localhost; | |
root /Users/user/html/codeigniter/; | |
location / { | |
try_files $uri $uri/ /index.php; | |
} | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_buffers 256 128k; | |
fastcgi_connect_timeout 300s; | |
fastcgi_send_timeout 300s; | |
fastcgi_read_timeout 300s; | |
include fastcgi_params; | |
} | |
error_page 404 /404.html; | |
error_page 403 /403.html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment