Last active
June 25, 2022 16:57
-
-
Save osiyuk/57c17f9694c864c9ac2cb53ee4bf00eb to your computer and use it in GitHub Desktop.
simple nginx configuration with php-fpm
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
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