Created
August 29, 2020 17:29
-
-
Save XOlegator/7d72151335e46b325c51862642ba8a29 to your computer and use it in GitHub Desktop.
Xhprof virtual host
This file contains hidden or 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
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