Welcome! Log In Create A New Profile

Advanced

Re: add_before_body

Francis Daly
March 04, 2015 06:10PM
On Wed, Mar 04, 2015 at 05:30:22PM -0500, neophyte wrote:

Hi there,

> I can't manually add it to each file because I use a include *.comf, I just
> need Nginx to perform add_before_body without it being in each server block.

I'm afraid that I have failed to understand what you want to configure
nginx to do.

So I will describe what you have configured nginx to do, and perhaps
you or someone will be able to see where "what you want" and "what you
have" differ.


When you request http://localhost/index.html, nginx will send the content
of the file /usr/local/nginx/htdocs/subsites/dropletlocal/index.html,
prefixed by whatever your fastcgi server
returns when it is asked to process the file
/usr/local/nginx/htdocs/subsites/dropletlocal/subsites/dropletlocal/library/global/func-global.class.php.

When you request http://one.es.vc/index.html, nginx will send the content
of the file /usr/local/nginx/htdocs/subsites/one/index.html prefixed by
whatever your fastcgi server returns when it is asked to process the file
/usr/local/nginx/htdocs/subsites/one/subsites/dropletlocal/library/global/func-global.class.php.



Your 500 included .conf files already have many lines the same in
them. It is not clear to me why you can't add one more "include
the_add_before_body_bit;" line to each. But I'm sure you have your
reasons.

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: 140
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