Skip to content

Instantly share code, notes, and snippets.

@XOlegator
Created August 29, 2020 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XOlegator/7d72151335e46b325c51862642ba8a29 to your computer and use it in GitHub Desktop.
Save XOlegator/7d72151335e46b325c51862642ba8a29 to your computer and use it in GitHub Desktop.
Xhprof virtual host
server {
listen 80;
server_name xhprof.local;
charset utf-8;
# You can download archive with source from:
# https://pecl.php.net/package/xhprof
root /mnt/projects/sites/xhprof/www/xhprof_html;
index index.php;
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
location ~ \.php {
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment