: Nginx - inherit configuration for executing Perl Is possible to inherit rule of executing Perl files (*.pl) for whole server? I mean that I will declare block "location ~ .pl$ {}" only once
Is possible to inherit rule of executing Perl files (*.pl) for whole server? I mean that I will declare block "location ~ .pl$ {}" only once and it will inherit for all aliases.
Because now if I want to add new alias, I need to copy pase "location ~ .pl$ {}" block for executing Perl files (*.pl).
One more question, is possible to apply rule of executing Perl files to all servers (sites) once?
My configuration:
server {
listen 80;
listen [::]:80;
server_name example.tld example.tld;
root /srv/!example.tld/!www;
index core.pl index.html index.htm;
location ~ .pl$ {
gzip off;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_index index.pl;
fastcgi_param SCRIPT_FILENAME /srv/!example.tld/!www$fastcgi_script_name;
}
}
More posts by @Nimeshi995
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.