On 7 March 2013 17:06, Francis Daly <francis@daoine.org> wrote: > On Thu, Mar 07, 2013 at 09:30:01AM +0000, Tom Barrett wrote: > > Hi there, > Thanks for reading :) > I'm doing some work with PayPal integration. > > How does nginx talk to your PayPal integration system? I think perhaps my use of the word 'integration' was a little grandiose. The general server setupby miradev - Nginx Mailing List - English
Hi I'm doing some work with PayPal integration. My server block looks like this: server { server_name dev01.localmap.net dev01.devsite.co.uk; .. } The work is being done in under 'dev01.devsite.co.uk' domain. However, for link backs from PayPal, it is working out that it should be ' dev01.localmap.net'. If I switch the two around in the server block, then PayPal picks that up. How is PayPby miradev - Nginx Mailing List - English
Is it possible to have each server{} block write to it's own cache directory? Or otherwise identify cached pages by server{} block? The aim is to make it easy to clear all cached pages for a specific site on a box hosting multiple sites. On 1 January 2013 20:29, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Tue, Jan 01, 2013 at 09:39:32AM -0500, oleksandr-shb wrote: &by miradev - Nginx Mailing List - English
Vi Ktor Wrote: ------------------------------------------------------- > Webmin/Virtualmin control panel for Nginx > http://github.com/rrouse/nginx-webmin/ How do you install/add it to Virtualmin?by miradev - Nginx Mailing List - English
I would like to add caching to various wordpress installations (some bloggy, some not). There are no caching plugins installed, as I'd like nginx to handle the caching. The current setup is fairly basic: server { listen 67.67.67.67:80; server_name www.miradev.com miradev.com; root /home/httpd/wordpress/www.miradev.com; index index.php index.html index.htm; accessby miradev - Nginx Mailing List - English
I would like to add caching to various wordpress installations (some bloggy, some not). There are no caching plugins installed, as I'd like nginx to handle the caching. The current setup is fairly basic: server { listen 67.67.67.67:80; server_name www.miradev.com miradev.com; root /home/httpd/wordpress/www.miradev.com; index index.php index.html index.htm; accessby miradev - How to...
I'm trying to monitor / measure / collect usage data on nginx, and have decided to try collectd. I have the nginx stub configured, and working. I've got collectd installed, and running, with the nginx plugin uncommented and configured to poke the nginx stub. I also have the 'collection3' scripts installed: > ls /var/www/collection3/bin graph.cgi index.cgi json.cgi I'm quite cby miradev - How to...
Let me just start with a 'thank you' to you all for your spirited replies. Seriously. I would dearly like to answer you all individually, but I'm not sure that'd be sensible :) We're a small outfit, with me as the only permanent IT person (development, admin, support e.t.c). The relevant production setup is Rackspace managed Redhat. The requirement I am looking for is a small footprint solutby miradev - Nginx Mailing List - English
mike Wrote: ------------------------------------------------------- > Use php-fpm instead :) This would require re-compiling PHP, which I am not prepared to do unless critical. Too many other potential head-aches from this.by miradev - Nginx Mailing List - English
Apologies if this is too off topic. My problem is not directly related to nginx. We've been running nginx + spawn-fcgi for 6 months without any issues. Until one morning I come in and all our sites are down because there were no php-cgi processes running. Obviously I'm keen to not have this happen again. I could make use of something like monit to monitor the php-cgi processes, but even a few mby miradev - Nginx Mailing List - English
Is there a a way to do a server{} dump (like apache -S / httpd -t -D DUMP_VHOSTS)?by miradev - How to...
Rackspace's network setup means that public IPs are not visible locally. This means that if I happen to use a domain name that resolves to the same machine as he box, it requires manually adding to /etc/hosts. Usually as localhost. Not wanting to duplicate myself, I was hoping to setup a particular service under a different port and proxying from the public IP to the localhost. But I am missingby miradev - How to...
I need to build a config that serves only image files. Any other request is a 404 (or other error, or maybe a 1 pixel png). Presumably actually checking the files themselves is not possible (certainly not fast), so it would have to be based on file extension? Assuming this to be true, then I will have a whitelist of suffixes. I'd like to make enforce the headers on these. My google-fu is notby miradev - How to...
I am silly, it is my own fault. I set the wrong root value in my PHP location{} block. Apologies for the noise.by miradev - Nginx Mailing List - English
Hi I have the following redirect working for a wordpress install: rewrite ^/([^/]+)/product/([^/]+)/?$ http://$host/$1/index.php/product?prodname=$2 redirect; The 'obvious' transformation that I have tried is: rewrite ^/([^/]+)/product/([^/]+)/?$ /$1/index.php/product?prodname=$2 last; But this results in a WP 404 page. What nginx-fu am I missing?by miradev - Nginx Mailing List - English
I am revisiting my multi setup. The idea is to map http://<CLIENT>.wp.mysite.net/<DOMAIN>/ to /var/www/wordpress/<CLIENT>/devel/<DOMAIN>/ Here is my current config: server { listen 10.0.0.1:80; server_name .wp.mysite.net; error_log /var/log/nginx/wordpress/devel/generic-error.log; error_page 404 /no_such_event.html; sby miradev - How to...
Fleshgrinder Wrote: [..] > According to Igor Sysoev you could try also the > following: > > location / { > error_page 404 = //blog/index.php?q=$uri; > } What is the significance of the double slash? Just to avoid infinite loop?by miradev - How to...
There is an nginx memcached module. http://wiki.nginx.org/NginxHttpMemcachedModule But it seems to have very specific usage. Perhaps contact the author to discuss?by miradev - Nginx Mailing List - English
Nuno Magalhães Wrote: ------------------------------------------------------- > Greetings, [..] > - free and open-source [..] > I've been > experimenting around with a > few but they always lack something. You get what you pay for. linux + nginx + fcgi + wordpress + mysql = fast, cheap, low memory footprint (small scale) websites, provision thereofby miradev - Nginx Mailing List - English
Maxim Dounin Wrote: ------------------------------------------------------- > Hello! [ .. ] > > The nginx access log file shows a 502 response, and Apache doesn't register a hit. > > > > Nginx error log: "upstream prematurely closed connection while reading response header from upstream"] > > Apache log: " child pid 5566 exit signal Segmentationby miradev - Nginx Mailing List - English
I'm stuck trying to find the culprit for an apache segfault. I have nginx set up on one server for 2 types of site; 'normal' apache sites and wordpress fcgi sites. The normal apache sites have started to fail on file uploads via the html file form field. Here is an example config proxying onto apache: Domain specific MYSITE.conf: server { server_name www.MYSITE.co.uk; access_logby miradev - Nginx Mailing List - English
Thanks Jim. I fiddled with the .php handling to make nginx know a bit more about the path_info, and came up with this: location / { root /my/root; index index.php index.html index.htm; rewrite ^/product/(.+)$ /index.php/product?prodname=$1 last; try_files /system/maintenance.html $uri $uri/ /index.php?q=$uri&$args; } location ~by miradev - How to...
Jim Ohlstein Wrote: ------------------------------------------------------- > If it's written with the space ( > "http://mysite.com/products/green chair" ) nginx > will not accept it. I didn't know that. But even without the space, my setup still does not work (e.g. 'http://mysite.com/products/train'). The request is passed onto fcgi, as I get a WP page, but the contentby miradev - How to...
I have a pretty standard WP config. server { listen localhost:80; server_name mysite.com; access_log /var/log/nginx/myaccess.log; error_log /var/log/nginx/myerror.log; location / { root /var/www/mysite.com; index index.php index.html index.htm; # this serves static files that exist without running other rewrite testsby miradev - How to...
batrick Wrote: ------------------------------------------------------- > I have run into a similar problem. I wanted to set > up a number of virtual hosts that each share the > same configuration except, of course, for the > domain name and path. So my plan was to set some > environment variables, and then include the > template configuration file. My particular set upby miradev - Nginx Mailing List - English
Brent Bloxam Wrote: > > Have I misunderstood? > > Yes, you assumed error_log was the same as > access_log. They are not. > access_log is part of the Log module while > error_log is part of the main > module. error_log (at least in 0.7.59) does not > support variables in the > path. You are right, I missed that completely. Strangely this still fits thby miradev - Nginx Mailing List - English
eaonflux Wrote: ------------------------------------------------------- > well i had this problem also, but that didnt had > anything to do with nginx. > i forgot to install php_cli but i am running on > ubuntu vps, for debugging purpose if you have > linuxbox with atleast ssh acces > try to excute php file locally just to see if your > prob isnt locally. > >by miradev - How to...
Frank Louwers Wrote: ------------------------------------------------------- > Can you give an example of two urls and the > docroot you'd want them to > use? These are test/dev sites where clients view sample themes, copy and plugins. What they want is to be able to do is see them in action without affecting their 'live' site.. So these are all hosted on a single 'dev' domain.by miradev - Nginx Mailing List - English
From http://wiki.nginx.org/NginxHttpLogModule The log file path can contain variables (version >=0.7.4) .. nginx -v nginx version: nginx/0.7.59 Config snippet: set $client $host; if ($client ~ "^(*).admin.mysite.com"){ set $client $1; } root /var/www/wordpress/$client/admin; location / { ... access_log /var/log/nginx/wordpress/admin/$clientby miradev - Nginx Mailing List - English
Frank Louwers Wrote: ------------------------------------------------------- > > This is what we do for a customer: this allows > them to create new > domains/projects just by making a new directory. > With passenger and > php-fpm and this setup, he doesn't need to > restart/reload *anything* > to start a new website. > > > server { >by miradev - Nginx Mailing List - English