Welcome! Log In Create A New Profile

Advanced

constants

Posted by thmel 
constants
October 04, 2020 11:14AM
Hi everyone,
I have almost 33 server blocks where i put the following code:

include  /home/ubuntu/www/nginx/proxy/rewrite;

what i would like to do, is:

const php_rewrite "/home/ubuntu/www/nginx/proxy/rewrite";
server {
    include  php_rewrite;
}

I know i could do that if php_rewrite is located at /etc/nginx folder, but that's not the case.
Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready