Welcome! Log In Create A New Profile

Advanced

Re: add_before_body

Francis Daly
March 04, 2015 05:26PM
On Wed, Mar 04, 2015 at 04:51:43PM -0500, neophyte wrote:

Hi there,

> I've swapped to using /.
> https://gist.github.com/anonymous/423cbe11f91e4d342dd6 - My comf.

That is:

"""
http {
add_before_body /subsites/dropletlocal/library/global/func-global.class.php;
server {
server_name localhost;
location / {
root htdocs/subsites/dropletlocal;
index proxy.php;
}
location ~ \.php$ {
root htdocs/subsites/dropletlocal;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
server_name ***.es.vc;
location / {
root htdocs/subsites/***;
index index.php;
}
location ~ \.php$ {
root htdocs/subsites/***;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
"""

more or less.

So, what do you want nginx to do with your add_before_body subrequest?

As in: which file on the filesystem do you want the fastcgi processor
to read?

Possibly you will want to add something like

location = /subsites/dropletlocal/library/global/func-global.class.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME _the_file_that_you_care_about_;
include fastcgi_params;
}

to each server block; possibly something else will work.

Good luck with it,

f
--
Francis Daly francis@daoine.org

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

add_before_body

neophyte March 04, 2015 11:33AM

Re: add_before_body

Francis Daly March 04, 2015 03:00PM

Re: add_before_body

neophyte March 04, 2015 04:51PM

Re: add_before_body

Francis Daly March 04, 2015 05:26PM

Re: add_before_body

neophyte March 04, 2015 05:30PM

Re: add_before_body

neophyte March 04, 2015 05:33PM

Re: add_before_body

Francis Daly March 04, 2015 06:10PM

Re: add_before_body

neophyte March 04, 2015 06:39PM

Re: add_before_body

neophyte March 04, 2015 07:02PM

Re: add_before_body

itpp2012 March 05, 2015 03:45AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 117
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready