Skip to content

Instantly share code, notes, and snippets.

@osiyuk
Last active June 25, 2022 16:57
Show Gist options
  • Save osiyuk/57c17f9694c864c9ac2cb53ee4bf00eb to your computer and use it in GitHub Desktop.
Save osiyuk/57c17f9694c864c9ac2cb53ee4bf00eb to your computer and use it in GitHub Desktop.
simple nginx configuration with php-fpm
user nginx;
pid /run/nginx.pid;
error_log /var/log/nginx/error.log info;
http {
access_log /var/log/nginx/access.log combined;
include mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name osiyuk.com;
root /var/wordpress;
index index.php;
include fastcgi.conf;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php-fpm.sock;
}
} # server
} # http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment