Re: fastcgi_pass / error page /error code in HTTP rsp

2015-06-08 Thread nginxuser100
I also tried fastcgi_pass_header Status; along with the fastcgi_intercept_errors directive. NGINX still returned 200 OK instead of the 400 sent by the fastcgi server. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259436,259464#msg-259464 __

Re: problem : nginx with magento

2015-06-08 Thread steve
On 09/06/15 14:00, Prameswar Lal wrote: Hi , i am sending current access log after changing according to steve block . Not problem with index.php . it has problem with all page of .php in magento tool . i am using magento tool so this is file of magento . not written by me . magento use fas

Re: problem : nginx with magento

2015-06-08 Thread steve
Hi On 09/06/15 13:46, Prameswar Lal wrote: Hi steve , i have checked with your setting also . its not working . On Tue, Jun 9, 2015 at 5:52 AM, steve > wrote: Hi, On 09/06/15 01:34, Prameswar Lal wrote: hi i am using nginx with magento which use f

Re: problem : nginx with magento

2015-06-08 Thread Prameswar Lal
Hi , i am sending current access log after changing according to steve block . Not problem with index.php . it has problem with all page of .php in magento tool . i am using magento tool so this is file of magento . not written by me . magento use fastcgi programing in it . i have tested this mag

Re: problem : nginx with magento

2015-06-08 Thread Prameswar Lal
Hi steve , i have checked with your setting also . its not working . On Tue, Jun 9, 2015 at 5:52 AM, steve wrote: > Hi, > > On 09/06/15 01:34, Prameswar Lal wrote: > > hi i am using nginx with magento which use fastCGI . > whenever i type in url http://example.com/index.php then index.php sta

Re: handling subdirectories location

2015-06-08 Thread Francis Daly
On Mon, Jun 08, 2015 at 08:53:45PM -0300, Thiago Farina wrote: > On Mon, Jun 8, 2015 at 8:26 PM, Francis Daly wrote: > > On Mon, Jun 08, 2015 at 08:08:10PM -0300, Thiago Farina wrote: Hi there, > >> server { > >> listen 80; > >> server_name domainame.com; > >> > >> root /data/

Re: problem : nginx with magento

2015-06-08 Thread steve
Hi, On 09/06/15 01:34, Prameswar Lal wrote: hi i am using nginx with magento which use fastCGI . whenever i type in url http://example.com/index.php then index.php start downloading . can anyone help me ? location ~ \.php$ { fastcqi_index index.php; fastcgi_pass 127.0.0.1:9000;

Re: fastcgi_pass / error page /error code in HTTP rsp

2015-06-08 Thread nginxuser100
Hi, I expected fastcgi_intercept_errors to return a static error page AND to have include the HTTP error code (e.g. 400) in the HTTP response header. >From what I see, it returns the static error page but with 200 OK. Is it the expected behavior? If yes, is there a way to have nginx return the erro

Re: handling subdirectories location

2015-06-08 Thread Thiago Farina
On Mon, Jun 8, 2015 at 8:26 PM, Francis Daly wrote: > On Mon, Jun 08, 2015 at 08:08:10PM -0300, Thiago Farina wrote: >> On Mon, Jun 8, 2015 at 7:46 PM, Francis Daly wrote: >> > On Mon, Jun 08, 2015 at 02:07:54PM -0300, Thiago Farina wrote: > > Hi there, > >> server { >> listen 80; >>

Re: handling subdirectories location

2015-06-08 Thread Francis Daly
On Mon, Jun 08, 2015 at 08:08:10PM -0300, Thiago Farina wrote: > On Mon, Jun 8, 2015 at 7:46 PM, Francis Daly wrote: > > On Mon, Jun 08, 2015 at 02:07:54PM -0300, Thiago Farina wrote: Hi there, > server { > listen 80; > server_name domainame.com; > > root /data/www/domainame.

Re: handling subdirectories location

2015-06-08 Thread Thiago Farina
Hi Francis, First, thanks for replying. On Mon, Jun 8, 2015 at 7:46 PM, Francis Daly wrote: > On Mon, Jun 08, 2015 at 02:07:54PM -0300, Thiago Farina wrote: > > Hi there, > >> What I'm trying to do is something like the following: >> >> http://domainame.com/site1/index.php >> http://domainame.co

Re: problem : nginx with magento

2015-06-08 Thread Francis Daly
On Mon, Jun 08, 2015 at 07:04:22PM +0530, Prameswar Lal wrote: Hi there, > hi i am using nginx with magento which use fastCGI . > whenever i type in url http://example.com/index.php then index.php start > downloading . > can anyone help me ? What does the file /var/log/nginx/nginx-access.log sa

Re: Re:Re: DNS configuration to invoke complete URL

2015-06-08 Thread Francis Daly
On Mon, Jun 08, 2015 at 08:39:51AM -0400, smsmaddy1981 wrote: Hi there, > Yes, the absolute URL http://workspace.corp.no/workspace/agentLogin works > fine > > I just need to understand the configuration approach to redirect the URL > request (http://workspance) to absolute url > (http://workspac

Re: handling subdirectories location

2015-06-08 Thread Francis Daly
On Mon, Jun 08, 2015 at 02:07:54PM -0300, Thiago Farina wrote: Hi there, > What I'm trying to do is something like the following: > > http://domainame.com/site1/index.php > http://domainame.com/site2/index.php > http://domainame.com/site3/index.php In nginx, one request is handled in one locati

Re: fastcgi_pass / error page /error code in HTTP rsp

2015-06-08 Thread nginxuser100
Thank you Maxim, that was what I was looking for. However, it is still not returning the static error page. Does nginx expect a certain response format from the fcgi server? I tried: "HTTP/1.1 400 Bad Request\r\nStatus: 400 Bad Request\r\n"; and "HTTP/1.1 400 Bad Request"; The nginx.conf has:

Re: fastcgi_pass / error page /error code in HTTP rsp

2015-06-08 Thread Maxim Dounin
Hello! On Mon, Jun 08, 2015 at 03:14:00PM -0400, nginxuser100 wrote: > Hi, I would like nginx to map a fastcgi error response a static error page, > and include the HTTP error code in its HTTP response header; e.g. > 1. have nginx return the proper error code in its header to the client. > 2. ha

fastcgi_pass / error page /error code in HTTP rsp

2015-06-08 Thread nginxuser100
Hi, I would like nginx to map a fastcgi error response a static error page, and include the HTTP error code in its HTTP response header; e.g. 1. have nginx return the proper error code in its header to the client. 2. have nginx return the proper error page based on the fastcgi_pass server's respon

Re: handling subdirectories location

2015-06-08 Thread Thiago Farina
What I'm trying to do is something like the following: http://domainame.com/site1/index.php http://domainame.com/site2/index.php http://domainame.com/site3/index.php The closest I could find on Google was http://programmersjunk.blogspot.com.br/2013/11/nginx-multiple-sites-in-subdirectories.html

Re: problem : nginx with magento

2015-06-08 Thread Prameswar Lal
still same problem . i have checked with different os like centos , ubuntu and different version of php , nginx On Mon, Jun 8, 2015 at 7:12 PM, Anoop Alias wrote: > > > On Mon, Jun 8, 2015 at 7:04 PM, Prameswar Lal < > prameswar@bizruntime.com> wrote: > >> hi i am using nginx with magento wh

Re: problem : nginx with magento

2015-06-08 Thread Anoop Alias
On Mon, Jun 8, 2015 at 7:04 PM, Prameswar Lal wrote: > hi i am using nginx with magento which use fastCGI . > whenever i type in url http://example.com/index.php then index.php start > downloading . > can anyone help me ? > > I think you have misspelled a directive In example.conf -- fastcqi_in

problem : nginx with magento

2015-06-08 Thread Prameswar Lal
hi i am using nginx with magento which use fastCGI . whenever i type in url http://example.com/index.php then index.php start downloading . can anyone help me ? example.com.conf Description: Binary data fastcgi.conf Description: Binary data fastcgi_params Description: Binary data nginx.con

Re: Re:Re: DNS configuration to invoke complete URL

2015-06-08 Thread smsmaddy1981
Yes, the absolute URL http://workspace.corp.no/workspace/agentLogin works fine I just need to understand the configuration approach to redirect the URL request (http://workspance) to absolute url (http://workspace.corp.no/workspace/agentLogin) Posted at Nginx Forum: http://forum.nginx.org/read.p