you need to specify full URI for redirection rewrite ^/(([^/\ ]+/)*)/+([^\ ]*) http://yoursitehere.com/$1$3? permanent;by edogawaconan - Migration from Other Servers
Sorry, don't forget to add the auth to php block too or anyone can bypass the auth when accessing php filesby edogawaconan - Nginx Mailing List - English
Put the .php block before that location ~ ^/phpmyadmin/(.*\.php)$ { alias /home/httpd/html/phpmyadmin/$1; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; fastcgi_param SCRIPT_FILENAME $request_filename; } location ~ ^/phpmyadmin($|/.*) { alias /home/httpd/html/phpmyadmin$1; index index.php index.html index.htm; auth_basic "by edogawaconan - Nginx Mailing List - English
On Sat, Jul 18, 2009 at 8:44 PM, e123e123e123<nginx-forum@nginx.us> wrote: > location /phpmyadmin/ { > alias /home/httpd/html/phpmyadmin/; > index index.php index.html index.htm; > auth_basic       "Restricted"; > auth_basic_user_file  /home/httpd/html/phpmyadmin/.htpasswd; > } location ~ ^/phpmyadmin($|/.*) { alias /by edogawaconan - Nginx Mailing List - English
On Sat, Jul 18, 2009 at 3:20 AM, Dick Middleton<dick@fouter.net> wrote: > Edho P Arief wrote: >> >> location ~ ^/phpmyadmin/(.*\.php)$ { >> Â alias /home/httpd/html/phpmyadmin/$1; >> Â fastcgi_pass ...; >> Â fastcgi_index ...; >> Â include ...; >> Â fastcgi_param SCRIPT_FILENAME $request_filename; > > <DOCS> > The alias dby edogawaconan - Nginx Mailing List - English
On Fri, Jul 17, 2009 at 11:48 PM, e123e123e123<nginx-forum@nginx.us> wrote: > Dear Friends : > > I can run php , but have php problem when using alias folder , all *.php file display below text : > --------------------------- > No input file specified. > --------------------------- > but all html file all are no problem. > > pls help  and advise , i justby edogawaconan - Nginx Mailing List - English
On Wed, Jul 8, 2009 at 12:47 AM, Leechael Yim<yanleech@gmail.com> wrote: > <code lang="nginx"> > if (-f $request_filename) { > Â Â Â fastcgi_pass 127.0.0.1:9000; > } > </code> > OR: > <code lang="nginx"> > if (!-f $request_filename) { > Â Â Â return 404; > } > fastcgi_pass 127.0.0.1:9000; > </code>by edogawaconan - Nginx Mailing List - English
On Sat, Jul 4, 2009 at 9:33 PM, Mathew Davies<thepixeldeveloper@googlemail.com> wrote: > Hi, > > With Andrei not working on the project anymore I'm considering moving back > to using spawn-fcgi. The new patches are barely tested (it compiles so it's > fine doesn't cut it) and I assume no one is actually working on the code. > > Is there a disadvantage for me if Iby edogawaconan - Php-fpm Mailing List - English
On Thu, Jul 2, 2009 at 10:06 AM, AMP Admin<admin@ampprod.com> wrote: > I don't understand. Â How do we make the "no maintenance checks"? Â sorry, I'm > still learning. > > If we want everything but privacypolicy.php, images directory and promo > directory to go to maintenance how would that look? > > It seems that this puts the entire site in maintenanceby edogawaconan - Nginx Mailing List - English
On Sat, Jun 27, 2009 at 3:37 PM, Michael Shadle<mike503@gmail.com> wrote: > Only help we need is > a) funding > b) C programming to keep it up to date and extend the features > c) influence (getting it out there, making it important for PHP to include) > documentation? -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.orgby edogawaconan - Php-fpm Mailing List - English
On Fri, Jun 26, 2009 at 1:52 AM, pservit<pservit@gmail.com> wrote: > > http://php-fpm.org/downloads/freebsd-port/php-5.2.10-fpm-0.5.11.tar.gz > any work on this to get into official ports tree? -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.orgby edogawaconan - Php-fpm Mailing List - English
On Tue, Jun 23, 2009 at 10:09 PM, lankelan<nginx-forum@nginx.us> wrote: > How to solve this error? > > Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3276,3298#msg-3298 > > > log please? -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.orgby edogawaconan - Nginx Mailing List - English
On Mon, Jun 22, 2009 at 12:37 PM, leakhina<nginx-forum@nginx.us> wrote: > Hi everyone, > > I'm very new with Nginx, and now I want to use Nginx to generate new url from the url user passed. > Example: > User type to browser like http://us.domain.com, and I want Nginx generates to http://www.domain.com/?portal=us or http://domain.com/?portal=us. > > How can I rewriby edogawaconan - Nginx Mailing List - English
On Sun, Jun 21, 2009 at 8:21 PM, Kevin Castiglione<kevincastiglione@gmail.com> wrote: > On Sat, Jun 20, 2009 at 10:30 PM, Edho P Arief <edhoprima@gmail.com> wrote: >> >> On Sun, Jun 21, 2009 at 12:19 PM, Edho P Arief<edhoprima@gmail.com> wrote: >> > >> > here it is >> > Â Â Â Â server { >> > Â Â Â Â Â Â Â Â listby edogawaconan - Nginx Mailing List - English
On Sun, Jun 21, 2009 at 12:19 PM, Edho P Arief<edhoprima@gmail.com> wrote: > > here it is > Â Â Â Â server { > Â Â Â Â Â Â Â Â listen 80; > Â Â Â Â Â Â Â Â server_name ~(.*)\.([^\.]*)\.([^\.]*)$; > Â Â Â Â Â Â Â Â set $domain $2.$3; > Â Â Â Â Â Â Â Â rewrite ^.* http://$domain$request_uri permanent; > Â Â Â Â } > make sby edogawaconan - Nginx Mailing List - English
On Sun, Jun 21, 2009 at 12:04 PM, Edho P Arief<edhoprima@gmail.com> wrote: > On Sun, Jun 21, 2009 at 4:17 AM, Kevin > Castiglione<kevincastiglione@gmail.com> wrote: >> On Sat, Jun 20, 2009 at 2:15 PM, Kevin Castiglione >> <kevincastiglione@gmail.com> wrote: >>> >>> On Fri, Jun 19, 2009 at 11:17 PM, Edho P Arief <edhoprima@gmail.com>by edogawaconan - Nginx Mailing List - English
On Sun, Jun 21, 2009 at 4:17 AM, Kevin Castiglione<kevincastiglione@gmail.com> wrote: > On Sat, Jun 20, 2009 at 2:15 PM, Kevin Castiglione > <kevincastiglione@gmail.com> wrote: >> >> On Fri, Jun 19, 2009 at 11:17 PM, Edho P Arief <edhoprima@gmail.com> >> wrote: >>> >>> On Sat, Jun 20, 2009 at 12:44 PM, Kevin >>> Castigliby edogawaconan - Nginx Mailing List - English
On Sat, Jun 20, 2009 at 12:44 PM, Kevin Castiglione<kevincastiglione@gmail.com> wrote: > hi > if any one goes to > XXX.aaa.com/bbb > > i want to do a permanent redirect to > aaa.com/bbb > > > any suggestions on how to do this? > thank you > server { listen 80; server_name *.aaa.com; rewrite ^.* http://aaa.com$uri; } -- O< asby edogawaconan - Nginx Mailing List - English
On Fri, Jun 19, 2009 at 10:53 PM, Christopher Smith<cbsmith@xman.org> wrote: > It always strikes me as odd when people want this functionality (and Apache is proof that they do). It seems far easier to employ such restrictions at write/create time, or at least offline, rather than as part of the read. > what are you suggesting to prevent people from symlinking to root from theirby edogawaconan - Nginx Mailing List - English
On Fri, Jun 19, 2009 at 9:18 PM, Avleen Vig<avleen@gmail.com> wrote: > It's not possible. Trying to do so would be a major performance hit. > With a feature like this, nginx would have to call stat() on every element > in the path to make sure it's not a symlink. > So instead of one stat() on > /usr/local/www/domain/htdocs/dir/foo/bar/index.html, nginx would have to do &by edogawaconan - Nginx Mailing List - English
On Fri, Jun 19, 2009 at 9:28 PM, Kevin Castiglione<kevincastiglione@gmail.com> wrote: > 2009/6/19 Igor Sysoev <is@rambler-co.ru> >> >> On Fri, Jun 19, 2009 at 05:54:06AM -0700, Kevin Castiglione wrote: >> >> > > Probably, you need >> > > >> > > Â fastcgi_param SCRIPT_FILENAME >> > > /home/app/work/flock/$hostby edogawaconan - Nginx Mailing List - English
On Fri, Jun 19, 2009 at 3:33 PM, Edho P Arief<edhoprima@gmail.com> wrote: > On Fri, Jun 19, 2009 at 3:30 PM, Edho P Arief<edhoprima@gmail.com> wrote: >> 2009/6/18 Igor Sysoev <is@rambler-co.ru>: >> php_params: >> fastcgi_pass 127.0.0.1:8000; >> fastcgi_index index.php; >> fastcgi_param SCRIPT_FILENAME $request_filename; >> include fasby edogawaconan - Nginx Mailing List - English
On Fri, Jun 19, 2009 at 8:36 PM, Jim Ohlstein<nginx-forum@nginx.us> wrote: > > Failed to compile on CentOS 5.3 (tried on 32 and 64 bit test servers). > > /usr/local/src/php-5.2.10/sapi/cgi/cgi_main.c:1341:30: error: fpm/fpm_autoconf.h: No such file or directory > /usr/local/src/php-5.2.10/sapi/cgi/cgi_main.c: In function 'zm_info_cgi': > /usr/local/src/php-5.2.10/sapiby edogawaconan - Php-fpm Mailing List - English
On Fri, Jun 19, 2009 at 3:30 PM, Edho P Arief<edhoprima@gmail.com> wrote: > 2009/6/18 Igor Sysoev <is@rambler-co.ru>: >> On Wed, Jun 17, 2009 at 09:57:41AM +0700, Edho P Arief wrote: >> >>> How do I make this work? >>> >>> location ~ /~someapp(.*)$ { alias /home/someapp/root$1; try_files $uri >>> /~someapp/err404.htm; } >>by edogawaconan - Nginx Mailing List - English
2009/6/18 Igor Sysoev <is@rambler-co.ru>: > On Wed, Jun 17, 2009 at 09:57:41AM +0700, Edho P Arief wrote: > >> How do I make this work? >> >> location ~ /~someapp(.*)$ { alias /home/someapp/root$1; try_files $uri >> /~someapp/err404.htm; } >> >> The try_files never catch the $uri (nor $1) and returns 500 (redirection cycle) >> >>by edogawaconan - Nginx Mailing List - English
On Fri, Jun 19, 2009 at 12:18 PM, Kevin Castiglione<kevincastiglione@gmail.com> wrote: > On Thu, Jun 18, 2009 at 8:55 PM, Edho P Arief <edhoprima@gmail.com> wrote: >> >> On Fri, Jun 19, 2009 at 7:26 AM, Kevin >> Castiglione<kevincastiglione@gmail.com> wrote: >> > Â Â Â Â Â Â Â Â Â Â Â fastcgi_pass backend_flock; >> > >> > Âby edogawaconan - Nginx Mailing List - English
On Fri, Jun 19, 2009 at 7:26 AM, Kevin Castiglione<kevincastiglione@gmail.com> wrote: > Â Â Â Â Â Â Â Â Â Â Â fastcgi_pass backend_flock; > > Â Â Â Â Â Â Â Â Â Â Â - fastcgi_param SCRIPT_FILENAME /$host$fastcgi_script_name; + fastcgi_param SCRIPT_FILENAME /$host/$host$fastcgi_script_name; -- O< ascii ribbon campaign - stop html mail - www.asciiribbon.orgby edogawaconan - Nginx Mailing List - English
On Thu, Jun 18, 2009 at 3:05 AM, Rt Ibmer<rtibmx@yahoo.com> wrote: > > Is there a way to create a variable in the config file that I can set to true or false (or 1 or 2, etc) and then make my location blocks do an IF operation based on that var to take different actions in the block. > > For instance this is what I currently have: > > Â location ~* /maindir/area1 { &by edogawaconan - Nginx Mailing List - English
On Thu, Jun 18, 2009 at 10:10 PM, Kevin Castiglione<kevincastiglione@gmail.com> wrote: > 2009/6/18 Igor Sysoev <is@rambler-co.ru> >> >> Also, this >> >>    if ($http_x_forwarded_for ~ "(?:^|,)\s*(\d+\.\d+\.\d+\.\d+)\s*$") { >>      set  $addr  $1; >>    } >> >>    fastcgi_param REMOTE_Aby edogawaconan - Nginx Mailing List - English
2009/6/18 Igor Sysoev <is@rambler-co.ru>: > On Wed, Jun 17, 2009 at 09:57:41AM +0700, Edho P Arief wrote: > >> How do I make this work? >> >> location ~ /~someapp(.*)$ { alias /home/someapp/root$1; try_files $uri >> /~someapp/err404.htm; } >> >> The try_files never catch the $uri (nor $1) and returns 500 (redirection cycle) >> >>by edogawaconan - Nginx Mailing List - English