RJBRJB
New Pleskian
Plesk 12.5 Centos 7 nginx php-fpm
Hello, I need to add a map directive to one of my vhosts, specifically the type of block below:
I need to know where to add this since it needs to be outside the server scope that the Plesk additional directives uses and returns this error when added to my additional directives:
Do I need to add some custom files that nginx can include somewhere? Is only the server block editable in Plesk?
Please advise. Thank you.
Hello, I need to add a map directive to one of my vhosts, specifically the type of block below:
map $http_host $blogid {
default -999;
include /pathto/map.conf ;
}
default -999;
include /pathto/map.conf ;
}
I need to know where to add this since it needs to be outside the server scope that the Plesk additional directives uses and returns this error when added to my additional directives:
Invalid nginx configuration: nginx: [emerg] "map" directive is not allowed here in /var/www/vhosts/system/xxxxxxxxx.com/conf/vhost_nginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
Do I need to add some custom files that nginx can include somewhere? Is only the server block editable in Plesk?
Please advise. Thank you.