Re: PHP below server root not served

2014-01-12 Thread nano
On 11/01/2014 2:34 AM, Francis Daly wrote: On Fri, Jan 10, 2014 at 10:37:50PM +1100, nano wrote: On 10/01/2014 8:36 PM, Francis Daly wrote: On Fri, Jan 10, 2014 at 02:07:34PM +1100, nano wrote: On 10/01/2014 7:58 AM, Francis Daly wrote: Hi there, This mail is going to sound a bit negative

Re: PHP below server root not served

2014-01-10 Thread nano
On 10/01/2014 8:36 PM, Francis Daly wrote: On Fri, Jan 10, 2014 at 02:07:34PM +1100, nano wrote: On 10/01/2014 7:58 AM, Francis Daly wrote: Per nginx logic, location 4 is used for every request for which it is the "best match". It just happens that there are no such requests

Re: "Primary script unknown" wp-login.php

2014-01-10 Thread nano
On 10/01/2014 3:46 AM, Miguel Clara wrote: I resolved this problem by making the /wordpress directory the server root. However, I now have the problem of /usr/local/www/phpMyAdmin being inaccessible, due to the same error. You can, and its probably best to use: fastcgi_param SCRIPT_FILENAME

Re: PHP below server root not served

2014-01-10 Thread nano
On 10/01/2014 7:58 AM, Francis Daly wrote: The suggestion is along the lines of: location ^~ /phpmyadmin/ { location ~ \.php$ { # config for php scripts to be fastcgi_pass'd elsewhere } # config for static files to be served directly } and then whatever other top-le

Re: PHP below server root not served

2014-01-09 Thread nano
On 10/01/2014 7:58 AM, Francis Daly wrote: Hi there, The nginx config follows its own logic, which may not match your previous experiences. When you understand that, you'll have a much better chance of knowing the configuration you are looking for. I think this is very true in my case. I will

Re: Nginx as reverse Proxy, remove X-Frame-Options header

2014-01-09 Thread nano
On 10/01/2014 4:33 AM, Jim Ohlstein wrote: Hello, On 1/9/14, 12:14 PM, nano wrote: On 10/01/2014 2:21 AM, Jim Ohlstein wrote: Hello, On 1/9/14, 7:24 AM, nano wrote: [snip] I share your opinion regarding nginx documentation. It is woeful. Particularly when compared to other exemplary open

Re: PHP below server root not served

2014-01-09 Thread nano
On 10/01/2014 4:13 AM, Jim Ohlstein wrote: Hello, On 1/9/14, 9:42 AM, nano wrote: I have attempted several variations of this format[1] you recommend and continue to produce a broken site; dialog to download application/octet-stream from the main servername.com and a 'File not found.&

Re: Nginx as reverse Proxy, remove X-Frame-Options header

2014-01-09 Thread nano
On 10/01/2014 2:21 AM, Jim Ohlstein wrote: Hello, On 1/9/14, 7:24 AM, nano wrote: [snip] I share your opinion regarding nginx documentation. It is woeful. Particularly when compared to other exemplary open source projects, such as Postfix and FreeBSD. My inability to easily transfer my

Re: PHP below server root not served

2014-01-09 Thread nano
On 9/01/2014 11:57 PM, B.R. wrote: II. Use a smarter (and more scalable, in light of future adds to the nginx config) way, which is nesting the rules of 'location /phpmyadmin/(.*\.php)$' in a 'location ~\.php$' block embedded in a 'location ^~ /phpmyadmin/' block. I have attempted several var

Re: PHP below server root not served

2014-01-09 Thread nano
de the location ~ \.php$ block which further broke my site. On Thu, Jan 9, 2014 at 1:41 PM, nano mailto:nano...@bsdbox.co>> wrote: Admittedly, I don't know *why* what I changed fixed the problem, but it did. I relocated the phpMyAdmin entries to above the "locati

Re: Nginx as reverse Proxy, remove X-Frame-Options header

2014-01-09 Thread nano
On 9/01/2014 11:47 PM, Jonathan Matthews wrote: On 9 January 2014 12:24, nano wrote: I share your opinion regarding nginx documentation. It is woeful. Sorry chap - I didn't say that and I don't think that. There may well be some specific target audiences not well served by the ag

Re: PHP below server root not served

2014-01-09 Thread nano
On 9/01/2014 9:23 PM, nano wrote: I am having trouble configuring nginx to serve up PHP from outside of the server document root. For example, this site's root is /usr/local/www/site1/wordpress and phpMyAdmin is located in /usr/local/www/phpMyAdmin. I cannot access servername.com/phpmy

Re: Nginx as reverse Proxy, remove X-Frame-Options header

2014-01-09 Thread nano
On 9/01/2014 11:12 PM, Jonathan Matthews wrote: On 9 January 2014 11:57, Maxim Dounin wrote: Hello! On Thu, Jan 09, 2014 at 10:21:43AM +, Jonathan Matthews wrote: On 9 January 2014 10:03, basti wrote: Hello, I have a closed-source Webapp that run on an IIS-Webserver and send a "X-Fram

Re: "Primary script unknown" wp-login.php

2014-01-09 Thread nano
On 9/01/2014 10:01 PM, Francis Daly wrote: On Thu, Jan 09, 2014 at 03:57:43PM +1100, nano wrote: Hi there, As subject says: I cannot access wp-admin due to above [error]. Otherwise, site functions as it should. location ~ \.php$ { fastcgi_param SCRIPT_FILENAME /usr

Re: PHP below server root not served

2014-01-09 Thread nano
On 9/01/2014 9:55 PM, Francis Daly wrote: On Thu, Jan 09, 2014 at 09:23:56PM +1100, nano wrote: Hi there, One request is handled in one location. For this request, the one location that you want to be used is not the one that nginx actually uses. location / { location

Re: PHP below server root not served

2014-01-09 Thread nano
On 9/01/2014 9:27 PM, Richard Stanway wrote: fastcgi_passunix:/tmp/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/local/www/phpMyAdmin$fastcgi_script_name; include fastcgi_params; What's in your fastcgi_para

PHP below server root not served

2014-01-09 Thread nano
I am having trouble configuring nginx to serve up PHP from outside of the server document root. For example, this site's root is /usr/local/www/site1/wordpress and phpMyAdmin is located in /usr/local/www/phpMyAdmin. I cannot access servername.com/phpmyadmin. nginx logs the following error: ==

Re: SSL ciphers, disable or not to disable RC4?

2014-01-09 Thread nano
On 9/01/2014 8:29 PM, pekka.pan...@sofor.fi wrote: Hi My current values in my nginx configuration for ssl_protocols/ciphers what i use is this: ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers RC4:HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; What are todays recommendations for

"Primary script unknown" wp-login.php

2014-01-08 Thread nano
As subject says: I cannot access wp-admin due to above [error]. Otherwise, site functions as it should. See error log: 2014/01/09 04:31:23 [error] 35759#0: *5254 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: ipaddress, server: hostname, r

Re: Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread nano
I appreciate your responses Jonathan. Thank you for replying! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238867,238877#msg-238877 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread nano
Thank you again for the reply Jonathan, I'm sorry. This is not my application I am just trying to "mirror" it. Without losing hope for caching, is there a way I can cache the pages and only show the data to logged in clients? What would I have to do to make sure the user is logged in on the sit

Re: Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread nano
Thank you for the reply Jonathan. My intentions are not malicious. The site in question is http://turkopticon.differenceengines.com/ and to read reports on that site one has to be logged in. The site is incredibly slow and I had an idea to cache the review data so reports on "bad requesters" (mtur

Nginx accept set-cookie but hide it from the client?

2013-05-05 Thread nano
Hello, I have a reverse proxy setup on a website and I'm proxying logged in pages. Everything works except there is a vulnerability in my setup. I login to the site and I can cache the pages. I share these pages with everyone else. However there is a problem with how the set-cookie is passed ont

Re: [crit] 16665#0 unlink()

2013-05-03 Thread nano
Thank you for such a quick reply Maxim! You solved my problem, thank you very much. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238815,238824#msg-238824 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ngin

[crit] 16665#0 unlink()

2013-05-03 Thread nano
Hello, I'm using nginx 1.4.0 to proxy a website, and I cache responses. I haven't noticed any problems on the front end, but the error log has unlink() errors. 2013/05/03 12:53:42 [crit] 16665#0: unlink() "/usr/local/nginx/cache/8/9f/42da8f2662887b05cbb46fd5c9dac9f8" failed (2: No such file or di

Re: Headers set in http {} go missing after setting headers in location {}

2013-03-10 Thread nano
Thank you very much Francis. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237172,237192#msg-237192 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Headers set in http {} go missing after setting headers in location {}

2013-03-09 Thread nano
Accidentally pasted the headers twice. The config should look like this; http://pastie.org/private/lz9zjkmvd3drbo4ezsp3fg Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237172,237173#msg-237173 ___ nginx mailing list nginx@nginx.org http://ma

Headers set in http {} go missing after setting headers in location {}

2013-03-09 Thread nano
Here is my nginx configuration http://pastie.org/private/4lceuccm9twmuiozdjnzkg My nginx -V is: nginx version: nginx/1.2.7 built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) TLS SNI support enabled I noticed that when I had headers (add_header) in the http{ } block, those headers were not being