Re: Understanding alias (used as rewrite)

2015-06-23 Thread E.B.
Thanks for your ongoing helps! I hope someone can advise further > >> You're probably looking for this > >> > >> fastcgi_param SCRIPT_FILENAME /another/different/path/anotehrscript.php; > > > > Excellent point! Thanks you! > > However, what if the alias was NOT to a php file? Is using > > rewrite

Re: Caching fastcgi url

2015-06-23 Thread Francis Daly
On Tue, Jun 23, 2015 at 06:27:30PM -0400, CJ Ess wrote: Hi there, > So looks like your saying the best way to do it is to do a separate > location and duplicate the fastcgi setup in that location and add the > fastcgi_cache stuff. It strikes me as clearer to have one extra location{} than to hav

Re: Caching fastcgi url

2015-06-23 Thread CJ Ess
So looks like your saying the best way to do it is to do a separate location and duplicate the fastcgi setup in that location and add the fastcgi_cache stuff. I can work with that, however I came across this example while googling ( https://gist.github.com/magnetikonline/10450786) that uses "if" t

Re: Caching fastcgi url

2015-06-23 Thread Francis Daly
On Tue, Jun 23, 2015 at 04:19:48PM -0400, CJ Ess wrote: Hi there, > - Would I need to define a separate location stanza for the URL I want to > cache and duplicate all of the fastcgi configuration that is normally > required? Or is there a way to indicate that of all the fastcgi requests > only t

Re: Static Content on Different Server Isn't Loaded??

2015-06-23 Thread Francis Daly
On Mon, Jun 22, 2015 at 08:35:32AM -0400, smsmaddy1981 wrote: Hi there, > I have static content available on the remote server (say NODE 02) and PATH: > ../livetest/WEB-INF/static/classes/ > under which I have /image, /js, /styles folders nginx doesn't know about static content. nginx knows abo

Re: NTLM or HTTP Digest authentication to Parent proxy

2015-06-23 Thread Francis Daly
On Mon, Jun 22, 2015 at 04:00:51PM -0700, Russel D'Souza wrote: Hi there, > I need to configure a proxy on my machine to use another proxy (installed > on another machine) as the parent proxy. nginx is not a proxy server, and does not talk to proxy servers. > Please let me know if there is any

Caching fastcgi url

2015-06-23 Thread CJ Ess
Hello, I am looking for advice. I am using nginx to terminate SSL and forward the request to php via fastcgi. Of all of requests I am forwarding to fastcgi there is one particular URL that I want to cache, hopefully bypassing communication with the fastcgi and php processes altogether. - Would I

Re: Nginx and Apach2

2015-06-23 Thread Wandenberg Peixoto
Take a look on *port_in_redirect *and *proxy_pass * configuration. You probably have to do a proxy_pass to Apache and ensure that the port number is remo

Convert Apache .htaccess rewrite to nginx

2015-06-23 Thread nngin
Hello, I am new to nginx and I am having trouble converting htaccess rewrite to nginx rewrite. Please help me convert the following mod_rewrites with a brief explanation. And should I put the nginx rewrite back into the .htaccess file or is there a designated config file to put the nginx location b

Nginx and Apach2

2015-06-23 Thread sergiofm
I have nginx and apache2 in the same Ubuntu Server 14.04 and i want to use nginx as proxy server. My idea is when people write www.mysite.com, nginx redirect to apache and i can do that, but the problem is that apache is in port 81 and when nginx redirect, the url show www.mysite.com:81/mysite. I j

SSL on/off on same port and IP

2015-06-23 Thread Ingo Lafrenz
Hi, consider the following very simple nginx config: http { server { listen 127.0.0.1:123; server_name abc; } server { listen 127.0.0.1:123 ssl; server_name xyz; ssl_certificate...; } } In words: I instruct nginx to listen on the same port

Re: when work processor will auto restart?

2015-06-23 Thread Valentin V. Bartenev
On Tuesday 23 June 2015 09:20:15 smith wrote: > Hi, > > > > I found that sometimes the nginx work processor will auto restart with no > reload/restart command executed. > > When the nginx run some days, found that the pid of work processor changed > but maser pid not changed. > > I want to

when work processor will auto restart?

2015-06-23 Thread smith
Hi, I found that sometimes the nginx work processor will auto restart with no reload/restart command executed. When the nginx run some days, found that the pid of work processor changed but maser pid not changed. I want to know when nginx will auto restart the work processor? Best re

High load due to reload

2015-06-23 Thread 5hosting GmbH
Hi guys, I have a small problem with a nginx system that acts as a loadbalancing proxy. We do have lots of vhosts and ssl certificates and each time we do a /etc/init.d/nginx reload, the load of our server goes up to 20 due to swapping. Is there any other way to reload nginx to get aware of ss