Are you sure it's got uwsgi built in? If it's from a different repo / not up to date, then it may well not. nginx -V should answer that. On Mon, 2013-06-24 at 17:25 -0400, Josh Haimson wrote: > Hi all, > > > I'm trying to configure nginx 1.1.19 on an ubuntu server with uwsgi. > It works fine on my ubuntu dev machine with the same exact version of > nginx, but for some reasonby GreenGecko - Nginx Mailing List - English
On Tue, 2013-06-25 at 00:20 +0300, wishmaster wrote: > > --- Original message --- > From: "Reinis Rozitis" <r@roze.lv> > Date: 24 June 2013, 23:00:48 > > > > > 2013/06/24 22:03:05 34189#0: *1 open() > > > "/usr/local/etc/nginx/authpw" failed (13: Permission denied) > > > > > > # ls -lo ./authpw > > > -rby GreenGecko - Nginx Mailing List - English
fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $documeby GreenGecko - Nginx Mailing List - English
On Thu, 2013-06-20 at 22:31 -0400, Schiz0 wrote: > Hello list, > > > I use php-fpm via fastcgi to handle my PHP scripts. I have that > working successfully. PHP-FPM has a feature where it displays a status > page, as mentioned here: > http://php.net/manual/en/install.fpm.configuration.php#pm.status-path > > > I'd like to be able to access this through nginx. I triby GreenGecko - Nginx Mailing List - English
If it's a linux server, look at logrotate. This will keep old versions, and can also zip them up... being text files they compress very well. hth, Steve On 2013-06-18 13:46, Paul N. Pace wrote: > Thank you Steve for nginx -t, and Sajan was correct, I had a syntax > error in a server block. > > However, while I was troubleshooting I noticed my log files getting > rather huge. I kby GreenGecko - Nginx Mailing List - English
On Mon, 2013-06-17 at 16:34 +1000, Daniel Black wrote: > > ----- Original Message ----- > > I'm having some trouble getting the nginx plugin working for munin. > > I've added the following to nginx config and restarted: > > > > location /nginx_status { > > stub_status on; > > access_log off; > > allow 127.0.0.1; > > deny all; > > } >by GreenGecko - Nginx Mailing List - English
Hello! On Sat, 2013-06-15 at 19:39 -0700, Paul N. Pace wrote: > I have a server that I set up to run several domains from and it has > worked great and without issue for about 6 months. > > I have another server that I had set up and was only running one > domain from it and I just added a second domain. For some reason, this > second server does not want to serve two domains,by GreenGecko - Nginx Mailing List - English
Are they presented as .js, .css etc to the client browser? If so, then this is sufficient. Steve On Fri, 2013-06-14 at 08:28 +0530, Silver Moon wrote: > hi > > > this is not sufficient. > > > in my application for example, js, css and images are generated > dynamically from php scripts. and there are multiple scripts to > generate such content. > > > thby GreenGecko - Nginx Mailing List - English
Is there a simple way of getting nginx to search for the index when given a bare directory as URL? eg in a server block... index index.php index.html index.htm; when passed an URL of http://www.example.com/sub where there is no location /sub {} block it looks for http://www.example.com/sub/index.php etc... Cheers, Steve -- Steve Holdoway BSc(Hons) MNZCS http://www.greengeckoby GreenGecko - Nginx Mailing List - English
Is there a simple config I can use to check for an index.php in subfolders? It was my understanding that if I used index index.php; in the server block, and try_files $uri $uri/ /index.php; in location / {} that it would look for $uri/index.php. But I do seem to be misunderstanding. Help! Steve -- Steve Holdoway BSc(Hons) MNZCS http://www.greengecko.co.nz Linkedin: http://www.linkedinby GreenGecko - Nginx Mailing List - English
On Mon, 2013-06-03 at 23:17 -0400, Travis Maxwell wrote: > Whenever I submit a long post from within wordpress, I get the > following error: > > 2013/06/04 03:04:19 12248#0: *491 open() "/var/lib/nginx/tmp/client_body/0000000008" failed (13: Permission denied) > It works fine if the post isn't that long, but submitting a long one > throws a 500 error on the front end,by GreenGecko - Nginx Mailing List - English
OK, I leave you to it. However, asynchronously spawning subprocesses *will* allow you to parallelise the process. I'd call it design, rather than a workaround, but there you go (: Steve On Sun, 2013-05-26 at 22:38 -0400, B.R. wrote: > One way or another, even if an external script is called, PHP will > need to wait for the scripts completion, making the parallelization > impossible orby GreenGecko - Nginx Mailing List - English
Surely, you're still serialising the transfer with a loop? On Sun, 2013-05-26 at 22:11 -0400, B.R. wrote: > Thanks for your answer. > > I didn't go into specifics because my problem doesn't rely at the > application-level logic. > > What you describe is what my script does already. > > > However in this particular case I have 16 files weighting each a few > MB wby GreenGecko - Nginx Mailing List - English
Write a script that lists the remote files, then checks for the existence of the file locally, and copy it if it doesn't exist? That way no internal loop is used - use a different exit code to note whether there was one copied, or there were none ready. That way you scale for a single file transfer. There's nothing to be gained from looping internally - well performance-wise that is. Steve On Sby GreenGecko - Nginx Mailing List - English
So, you need to ensure all files can only be deleted by the owner, all files created in the directory are in the same group as the directory and, to the best of my knowledge, setuid is meaningless. Ah, I see that it's a freebsd machine... setgid is the default functionality on that OS. This may work, but a basic understanding of file permissions will produce a more workable solution. Who runby GreenGecko - Nginx Mailing List - English
The scheme is available as... $scheme On Thu, 2013-05-09 at 14:45 -0400, Daniel Griscom wrote: > ... bump? > > (thanks, > Dan) > > > At 9:32 AM -0400 5/8/13, Daniel Griscom wrote: > >I'm an nginx newbie, and need use use it as a front end for a > >website that also handles websocket connections. I have the > >configuration set up so that requests to a sby GreenGecko - Nginx Mailing List - English
On Mon, 2013-05-06 at 00:14 +0100, henrique matias wrote: > > brings me the error: Starting nginx: nginx: "proxy_pass" > cannot have URI part in location given by regular expression, or > inside named location, or inside "if" statement, or inside > "limit_except" block in /etc/nginx/nginx.conf:121 > nginx: configuration file /etc/nginx/nginx.confby GreenGecko - Nginx Mailing List - English
Have you added cgi.fix_pathinfo=0 into /etc/php5/fpm/php.ini and restarted php? Steve On Fri, 2013-05-03 at 21:44 -0400, zakaria wrote: > Hi, > > I must be missing something obvious here. > I rerun my ubuntu configuration script and suddenly my nginx setup not > working correctly anymore. > > Here my relevant nginx config: > -------------------------------------------by GreenGecko - Nginx Mailing List - English
At a guess, /var or /var/www isn't readable by www-data Steve On 22/04/2013, at 7:50 AM, "Paul N. Pace" <paulnpace@gmail.com> wrote: > I have set up a server on Rackspace using Ubuntu 12.04 and the nginx stable PPA. > > Using the default root location of /usr/share/nginx/html the > index.html file is displayed when I call the public IP address of the > server. &gby GreenGecko - Nginx Mailing List - English
Try telnetting to port 80 on 192.168.0.3 and .4 to check they're listening, and that www.anyway.com resolves correctly... On Sun, 2013-04-21 at 08:29 +0200, Jörg Kastning wrote: > Hello all. > > > I'm new to this maillinglist as to nginx as well. I setup a nginx to > run as a loadbalancer with just adding the following lines to > my /etc/nginx/nginx_conf. This config works fby GreenGecko - Nginx Mailing List - English
Hi Folks, I've got a magento site under development, and just want it to be password protected until it goes live. No problem I thought... add in the auth_basic/auth_basic_user_file entries to the location / block. However, when I do that, I get a password request for the upload... 2013/04/11 05:12:40 9866#0: *31 no user/password was provided for basic authentication, client: Mmy IP>, servby GreenGecko - Nginx Mailing List - English
Folks, I'm sharing processing load across 3 remote servers, and am having a terrible time getting it balanced. Here's the config upstream backend { server 192.168.162.218:9000 fail_timeout=30 max_fails=3 weight=1 ; # Engine 1 server 192.168.175.5:9000 fail_timeout=30 max_fails=3 weight=1; # Engine 2 server 192.168.175.213:9000 fail_timeout=30 max_fails=3 weight=1 ; # Engine 3 } Whenby GreenGecko - Nginx Mailing List - English
Hi, On Thu, 2013-03-28 at 21:44 -0700, Praveen Yarlagadda wrote: > Hi there! > > > I'm playing around with nginx and I'm running into a problem related > to image uploading. I have nginx as a load balancer and java server > (jetty, spring based) as the backend server. When I upload an image > (JPEG) using POST method via nginx, the quality gets dropped a lot. > Please taby GreenGecko - Nginx Mailing List - English
On Thu, 2013-03-21 at 01:48 -0400, geopcgeo wrote: > Thanks for your updates. We are able to proxypass to another domain. But > the issue is domain’s sub directories are not working fine. > That is in > > server { > listen 80; > server_name geotest.com; > proxy_set_header Host geotest.com; > proxy_set_header X-Real-IP $remote_addr; > proxy_set_header X-Forwarded-Foby GreenGecko - Nginx Mailing List - English
On Wed, 2013-03-20 at 22:47 -0400, toddlahman wrote: > I have tried both ways to redirect my static files to a CDN (content > delivery network), but both ways result in the message "too many redirects." > Can anyone tell me what I am doing wrong here? > > location ~* ^.+.(jpe?g|gif|css|png|js|ico)$ { > rewrite ^ http://cdn.mydomain.com$request_uri? permanent; &gby GreenGecko - Nginx Mailing List - English
On 09/03/13 16:51, moke110007 wrote: > Nobody reply. > Tested,iphash and weight,support balance. > Over. > > Last time I used it, weight wasn't supported on iphash so I just used multiple entries to weight instead. Steve _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginxby GreenGecko - Nginx Mailing List - English
On Thu, 2013-03-07 at 12:49 -0800, Grant wrote: > I'm serving images and dynamic .html pages via apache on port 80. I'd > like to have nginx to serve the images. How can this be done since > both apache and nginx need to serve requests on port 80? > > - Grant > Set apache up as a proxy server for dynamic html behind the nginx server. (Or do like I do, and drop apache completby GreenGecko - Nginx Mailing List - English
Why not just use the wp config examples in the docs? Both Wordpress and nginx offer them. Steve On 4/03/2013, at 7:38 AM, GASPARD kévin <list-reader@koshie.fr> wrote: > Thanks for your reply. > >> On Sun, Mar 03, 2013 at 01:52:48PM +0100, GASPARD kévin wrote: >> >> Hi there, >> >>> Using nginx 1.2.1 on Debian Wheezy 64 bits. >>> >&by GreenGecko - Nginx Mailing List - English
It's my understanding the $remote_user is available. Sorry, a poor example. Could have used one that answers your question directly... Steve On Tue, 2013-02-26 at 16:23 -0500, B.R. wrote: > Thanks, I learned something there. > > But does the auth_basic module allows you to load the username in a > Nginx variable? > From what I understand everything is processed internally. >by GreenGecko - Nginx Mailing List - English
You can pass environment vars to PHP no problem... Eg: if you set up geoip in nginx.conf geoip_country /usr/share/GeoIP/GeoIP.dat; this makes $geoip_country_code available to your nginx config. If you then set fastcgi_param GEOIP_COUNTRY_CODE $geoip_country_code; then $_SERVER['GEOIP_COUNTRY_CODE'] is then available to php. This can be done for any variable set within nginx. hth, Stveby GreenGecko - Nginx Mailing List - English