You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
Here's my naive translation of the .htaccess RewriteRules you include. There might be a more nginx-y way of getting the same effect, but this appears to work.
# Send PHP request to our PHP-FPM
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
fastcgi_intercept_errors on;
# Change this to the host:port where your PHP-FPM is listening
# By the way, this is the default
fastcgi_pass localhost:9000;
fastcgi_index index.php;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180; fastcgi_buffer_size 128k; fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
I separate the PHP includes because that way I can just add that one line to any server to add PHP support across any of my config files! :)
I'm not going to include this in the repository because even though I like nginx very much, not everybody uses it, and I want to keep the repository slim. However, @levifig, if you can clean your submitted config file (removing the parts with your username and local directory structure, etc.) and post it somewhere on the interwebs, I will happily link that from the Tweet Nest site. Thanks, guys! :)
Here's my naive translation of the
.htaccess
RewriteRules you include. There might be a more nginx-y way of getting the same effect, but this appears to work.The text was updated successfully, but these errors were encountered: