Setting up user friendly URLs Plesk nginx

  • Well basicly... this field in plesk is for addition nginx directives. In conclusion there is a directive "location /" in any config file prior, perhaps the /etc/nginx/nginx.conf or any other config in the parsing chain. In "normal" setup the nginx will read /etc/nginx/nginx.conf... in this file there is most likely a line like include /etc/nginx/modules.conf.d/*.conf; or include /etc/nginx/*global_params;. All those will be parsed before your config. Which will eventually be included with an "include"-comand by any of those chains.

    So you'll need to find the config file which defines a "location /"-directive that blocks your "additional nginx directive".

  • Well basicly... this field in plesk is for addition nginx directives. In conclusion there is a directive "location /" in any config file prior, perhaps the /etc/nginx/nginx.conf or any other config in the parsing chain. In "normal" setup the nginx will read /etc/nginx/nginx.conf... in this file there is most likely a line like include /etc/nginx/modules.conf.d/*.conf; or include /etc/nginx/*global_params;. All those will be parsed before your config. Which will eventually be included with an "include"-comand by any of those chains.

    So you'll need to find the config file which defines a "location /"-directive that blocks your "additional nginx directive".



    How Can I not find so many

    ...

  • Well you show us in a screenshot that you are familiar with the shell and then don't know how to use it?!

    To find all config-Files residing or linking from /etc/nginx one uses: find -L /etc/nginx/ -type f -name *conf

  • Well you show us in a screenshot that you are familiar with the shell and then don't know how to use it?!

    To find all config-Files residing or linking from /etc/nginx one uses: find -L /etc/nginx/ -type f -name *conf


    /var/www/vhosts/system/airgunturk.com/conf/nginx.conf









    /etc/nginx/nginx.conf