Advertisement
tomba2k

nginx

Feb 28th, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name demo.setmed.hr;
  4. root /var/www;
  5.  
  6. access_log /var/log/nginx/demo.setmed.hr-access.log;
  7. error_log /var/log/nginx/demo.setmed.hr-error.log error;
  8. index index.html index.htm index.php;
  9.  
  10. location / {
  11. try_files $uri $uri/ /index.php$is_args$args;
  12. }
  13.  
  14. location ~ \.php$ {
  15. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  16. fastcgi_pass unix:/var/run/php7.2-fpm-wordpress-site.sock;
  17. fastcgi_index index.php;
  18. include fastcgi.conf;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement