Re: Redirect request based on source $scheme !!

2015-11-11 Thread Avraham Serour
ed links >> are huge and there's no way that those users can manually correct >> the embedded links by editing http to https and vice versa). >> >> So we're thinking to have some condition in place that if the request for >> HTTP embedded link comes from any

Re: syslog not properly tagged

2015-11-11 Thread Avraham Serour
from nginx, actually I even need to tell apart the error from access since they have diferent formatting On Tue, Nov 10, 2015 at 7:47 PM, B.R. wrote: > Vladimir already provided a plan B in his a) point. :oP > ​​ > --- > *B. R.* > > On Tue, Nov 10, 2015 at 10:43 AM, Avrah

Re: Redirect request based on source $scheme !!

2015-11-11 Thread Avraham Serour
you can create separate server blocks for each domain On Wed, Nov 11, 2015 at 11:36 AM, shahzaib shahzaib wrote: > Hi, > >Is there a way we can serve $scheme (HTTP/HTTPS) based on source > request ? Such as : > > if https://ad.domain.com --> sends request to http://ourdomain.com (as > it'll

Re: syslog not properly tagged

2015-11-10 Thread Avraham Serour
23 AM, Vladimir Homutov wrote: > On Tue, Nov 10, 2015 at 11:08:44AM +0200, Avraham Serour wrote: > > Hi, > > > > I have an ubuntu machine and installed nginx stable using the ppa (1.9.3) > > > > In my conf I'm sending the logs to syslog: > > > > access_log

syslog not properly tagged

2015-11-10 Thread Avraham Serour
Hi, I have an ubuntu machine and installed nginx stable using the ppa (1.9.3) In my conf I'm sending the logs to syslog: access_log syslog:server=unix:/dev/log,tag=lenginx_access le_json; error_log syslog:server=unix:/dev/log,tag=nginx,severity=error; then I'm using rsyslog to ship my logs to m