Skip to content

Instantly share code, notes, and snippets.

View Kaile's full-sized avatar

Mikhail Kaile

View GitHub Profile
@Kaile
Kaile / nginx.conf
Created March 30, 2023 12:28 — forked from sgomez84/nginx.conf
Nginx Proxy Pass to PHP-FPM
upstream phpfpm {
#server unix:/var/run/php5-fpm.sock;
#avoid sockets for nginx-fpm on Linux, they are good for BSD
server 127.0.0.1:9000;
}
server {
listen 8080;
server_name sumhr.com;
rewrite ^(.*) $scheme://www.sumhr.com$1 permanent;