Re: Domain Names and directory configuration

2014-11-24 Thread Styopa Semenukha
On Monday, November 24, 2014 09:08:08 PM angelox wrote: > I'm starting out with nginx and I'm stumbling at something I thought simple, > but that I haven't been able to figure out, yet. > > I need to map three domain names, each one to its own subdirectory under the > document root directory (/usr

Domain Names and directory configuration

2014-11-24 Thread angelox
I'm starting out with nginx and I'm stumbling at something I thought simple, but that I haven't been able to figure out, yet. I need to map three domain names, each one to its own subdirectory under the document root directory (/usr/share/nginx/html/) on a shared host: domain1 ---> ../html/blog d

understanding nginx proxy magic

2014-11-24 Thread Johan Martinez
I installed nginx as a reverse proxy in front of apache server. No configuration change was made on apache and nginx is simply passing all requests to the backend apache. Now website is more responsive and it can handle 1.3 times more load than just apache in picture. I am wondering what's nginx ma

Upgrading mysql and configurating my custom 404.html page.

2014-11-24 Thread Thornx John
I have two problems : Upgrading mysql and configurating my custom 404.html page. I wanted to install an admin page, but need to the consistency of mysql and php version, so I wanted upgrade mysql as the same version as PHP, and I had the following result: Nginx failure and impossible to use port

Re: nginx reload, stop error

2014-11-24 Thread xning9
I have two problems : Upgrading mysql and configurating my custom 404.html page. I wanted to install an admin page, but need to the consistency of mysql and php version, so I wanted upgrade mysql as the same version as PHP, and I had the following result: Nginx failure and impossible to use port

Re: rewrite or return for simple redirection

2014-11-24 Thread Maxim Dounin
Hello! On Fri, Nov 21, 2014 at 02:53:50PM -0800, neubyr wrote: > On Fri, Nov 21, 2014 at 12:11 PM, Maxim Dounin wrote: [...] > > For such cases rewrite is better, IMHO. In some cases it may be a > > good idea to additionally isolate it with prefix location, like > > this: > > > > location

Escape slashes in log output for JSON format

2014-11-24 Thread kay
I would like to add "json" option for additional escape for backslash character. So it will be: access_log path format json; The initial patch for 1.6.2 looks like: --- ./src/http/modules/ngx_http_log_module.c.orig +++ ./src/http/modules/ngx_http_log_module.c @@ -67,6 +67,7 @@ time_t

Re: serve content from a wget mirror

2014-11-24 Thread Francis Daly
On Mon, Nov 24, 2014 at 11:05:10AM +, Steve Wilson wrote: Hi there, > I'm trying to create an archive based on a current site which is due to > be taken down, I've used "wget -m" to mirror the site and all seems well > except I'm having trouble with what I think are arguments in the url. > >

serve content from a wget mirror

2014-11-24 Thread Steve Wilson
Hi, I'm trying to create an archive based on a current site which is due to be taken down, I've used "wget -m" to mirror the site and all seems well except I'm having trouble with what I think are arguments in the url. Most everything seems to work ok and this is currently my only issue. I have o