Welcome! Log In Create A New Profile

Advanced

Possible to overwrite a fastcgi_param "later", once a location block has already been closed?

Ben Johnson
July 09, 2013 04:50PM
Hello,

I am working with a server configuration that is partly outside of my
control, and have a need to overwrite a fastcgi_param "after" the
directives that are outside of my control have already been included.

The basics of the configuration are:

-------------------------------------------------------------------
# [...]

location ~ \.php$ {
try_files /2ed86bea62460140e9b23d047f7d68b1.htm @php;
}

location @php {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9013;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
}

# At this point, the fastcgi_param values have already been defined.

# This is the include file that I am able to modify.

include my-include.conf
-------------------------------------------------------------------

Is it possible for me to overwrite the values that are defined on the
line "include /etc/nginx/fastcgi_params;" from within the included file
that I can modify, "my-include.conf"?

In particular, I would like to hard-code the SERVER_NAME value within
"my-include.conf".

Thanks for any help,

-Ben

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Possible to overwrite a fastcgi_param "later", once a location block has already been closed?

Ben Johnson July 09, 2013 04:50PM

Re: Possible to overwrite a fastcgi_param "later", once a location block has already been closed?

Francis Daly July 09, 2013 05:50PM

Re: Possible to overwrite a fastcgi_param "later", once a location block has already been closed?

Ben Johnson July 09, 2013 08:14PM

Re: Possible to overwrite a fastcgi_param "later", once a location block has already been closed?

Francis Daly July 10, 2013 05:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 243
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready