hi! (sorry for my bad english) i have a URL like this: http://www.domain.com/resize.php?pic=images/elements/imagename.jpg&type=300crop that php checks if that image exists and serves, if not, creates image on disk with the size specified in the type parameter and returns it. what I wanted is to check if the image exists on disk at that size, with nginx, so run only resize.php whenby pepejose - How to...
thanks for answering maxim. then it not makes sense to use *: 80 in this case?? the following is correct? THANK YOU! ## DEFAULT SERVER FOR ALL NETWORK INTERFACES ## server { listen 127.0.0.1:80 default_server; listen 192.168.1.1:80 default_server; listen public_ip:80 default_server; server_name _; return 444; } ## HANDLE ONLY LAN ## server { listen 192.168.1.1:80; seby pepejose - Nginx Mailing List - English
This makes it valid? why wildcard *: 80 not working properly? thanks!!!!! server { listen 127.0.0.1:80 default_server; listen 192.168.1.1:80 default_server; listen public_ip:80 default_server; server_name _; return 444; } server { listen 192.168.1.1:80; server_name phpmyadmin; } server { listen 127.0.0.1:80; listen 192.168.1.1:80; listen public_ip:80; server_name www.siby pepejose - Nginx Mailing List - English
hello (sorry for my bad english) in the following example, nginx do bind on all interfaces because exists a "listen *: 80" right? OK, so I want to do the following, nginx listens on all interfaces (localhost, LAN and Internet) but some virtualhost only respond to some interfaces. The problem I have is that requests do not process the block server as it should. www.site.com reby pepejose - Nginx Mailing List - English
ok RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} -d RewriteRule . - RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 RewriteRule . index.php if (!-e $request_filename) { rewrite ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 last; rewrite ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 last; rewrite ^. index.php last; } }by pepejose - Nginx Mailing List - English
well, I can activate the module in apache and set the rules directly into the virtualhost configuration without reading the htaccess but also load a module to do something that I can do in nginx, thus could not serve static content directly nginx because I need to rewrite the url before reaching apache :(by pepejose - Nginx Mailing List - English
but then I would have to activate the mod rewrite in apache not? I did not want to activate it but if not do it with nginx ... I know that with nginx works perfectly but I am unable to configure the rules correctly on nginx thank you very much for the helpby pepejose - Nginx Mailing List - English
this is my config, I forgot to put it, sorry ###### blogs.domain.com ###### server{ listen *:80; server_name blogs.domain.com; root /xx/xxxx/xx/blogs/; index index.php index.html index.htm; #rules mod rewrite wordpress ???????? #Proxy the PHP scripts to Apache listening on 127.0.0.1:8080 lby pepejose - Nginx Mailing List - English
hi I have read many forums and tried many settings and I can not get it to work, I need help I swear I've tried many rules combination and settings these are the rules for apache for wordpress 2.8.6, but I need to do the rewrite in nginx (proxy reverse, in front of apache) RewriteEngine On RewriteBase / #uploaded files RewriteRule ^(.*/)?files/$ index.php RewriteCond %{REQUESTby pepejose - Nginx Mailing List - English
>>If you are proxy to apache, you don't need rewrite in nginx but only >>rules in .htaccess for apache. set up nginx for static content only. Yes, but this way I have to load the mod_rewrite apache and I want to load only the necessary modules on apache. >> - rewrite ^.*/files/(.*) /wp-content/blogs.php?file=$1; >> - if (!by pepejose - Nginx Mailing List - English
I can not fix it, this is my actual setup, i tried everything I found on google server{ listen *:80; server_name subdomain.domain.com; root /xx/xxx/xxxx/; index index.php index.html index.htm; #necessary if using a multi-site plugin server_name_in_redirect off; #necessary if running Nginx behind a reverse-proxy port_in_by pepejose - Nginx Mailing List - English
cdan18po Wrote: ------------------------------------------------------- > everything is now working verysmoothly > now...thanks for the great help you gave... > thanks WTF?! with this: server { listen *:80; server_name _ ""; #default return 444; } and "telnet host port" + "Ctrl-D" I can not catch requests witby pepejose - Nginx Mailing List - English
I use nginx 0.7.61 (with patch to fix VU#180065) I read this in the wiki << Since nginx 0.7.12, an empty server name is supported, to catch the requests without "Host" header. >> however, I get this error "the first server name must not be empty" then I can not catch these requests thanksby pepejose - Nginx Mailing List - English
>>It may be browser that has started an images >>download and has stopped the connection, because user has clicked on a link. I thought that in this case, the response was HTTP 499 [ NGINX_HTTP_CLIENT_CLOSED_REQUEST ] with this in the configuration file, the behavior would be the same? server { server_name ""; return 444; } thanks.by pepejose - Nginx Mailing List - English
> Igor Sysoev Wrote: > ------------------------------------------------------- > > > Anyway, these bad requests are caused 400 error > much early than "return 444". > > > -- > Igor Sysoev > http://sysoev.ru/en/ then, in the wiki says this "The basic name of server is used in an HTTP redirects, if no Host header was in clientby pepejose - Nginx Mailing List - English
pepejose Wrote: ------------------------------------------------------- > telnet ip port > > access.log > > MyIP _ - [06/Oct/2009:16:46:06 +0200] "\x03" 400 > 166 "-" "-" "-" > > error.log > > 2009/10/06 16:46:06 5452#0: *524221 client sent > invalid method while reading client request line, > client: MyIby pepejose - Nginx Mailing List - English
telnet ip port access.log MyIP _ - [06/Oct/2009:16:46:06 +0200] "\x03" 400 166 "-" "-" "-" error.log 2009/10/06 16:46:06 5452#0: *524221 client sent invalid method while reading client request line, client: MyIP, server: _, request: "" thanks for your help!by pepejose - Nginx Mailing List - English
pepejose Wrote: ------------------------------------------------------- > hello again! jeje > > well, I've been watching the logs again and the > report of Logwatch, now with nginx as reverse > proxy in front of apache I have in one hour 441 > "NULL 400 Bad Requests" made by 45 ips aprox > > example: > > 17 connections: same ip, same second &by pepejose - Nginx Mailing List - English
hello again! jeje well, I've been watching the logs again and the report of Logwatch, now with nginx as reverse proxy in front of apache I have in one hour 441 "NULL 400 Bad Requests" made by 45 ips aprox example: 17 connections: same ip, same second IP _ - [01/Oct/2009:09:44:40 +0200] "-" 400 0 "-" "-" "-" IP _ - [01/Oct/2009:09:44:4by pepejose - Nginx Mailing List - English
thank you very much for helping! X-Accel-Redirect header seems to work correctly ;) I still have some things to fix but overall I'm very happy with the performance of nginx as frontend of apache.by pepejose - Nginx Mailing List - English
Jeff Waugh Wrote: ------------------------------------------------------- > > > > -- In the first case X-Accel-Redirect not > working because the image is in > > memory? -- If I change the second case to: > > > > header("Content-type: image/jpeg"); > header("X-Accel-Redirect: /$image"); > > readfile($image); > > >by pepejose - Nginx Mailing List - English
hi! (sorry for my english) that header only be used with files that are on the hard disk, true ? because I have a script to resize the size of some images with php, in the script i use... getimagesize($image) , then, depending on the size: 1) $thumb=ImageCreateTrueColor($new_x,$new_y) $im=@imagecreatefromjpeg($image); imagecopyresampled($thumb,$im,0,0,0,0,$new_x,$new_y,$old_x,$old_y)by pepejose - Nginx Mailing List - English
Maxim Dounin Wrote: ------------------------------------------------------- > Hello! > > On Mon, Sep 28, 2009 at 10:44:26AM -0400, pepejose > wrote: > > > I have to worry about? Logwatch says A total of > XXX sites probed the server and > > if I look at those ip access log I see Error 400 > > No, there is nothing to worry about. Such errors >by pepejose - Nginx Mailing List - English
I have to worry about? Logwatch says A total of XXX sites probed the server and if I look at those ip access log I see Error 400 thank you very much!by pepejose - Nginx Mailing List - English
hi i have several errors in my access_log IP _ - [28/Sep/2009:15:56:33 +0200] "-" 400 0 "-" "-" "-" why these errors occur? thanks!!!!!!by pepejose - Nginx Mailing List - English
Hi I use this rules with apache mod_rewrite RewriteEngine On RewriteBase / #uploaded files RewriteRule ^(.*/)?files/$ index.php RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME} -d RewriteRule . - RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 Rewritby pepejose - Nginx Mailing List - English
hi, I can not look now because I have just apache, and I can not put nginx now but when I can, I look and I put here the error. thank you very muchby pepejose - Nginx Mailing List - English
UP! UP! and the problem with large images with "proxy_buffering on"? (http://www.eglx.com/J/bug.JPG) I have to increase the size of the buffers or configure something else? greetingsby pepejose - Nginx Mailing List - English
Michael Shadle Wrote: ------------------------------------------------------- > On Wed, Sep 2, 2009 at 7:50 AM, pepejose wrote: > > this should work. > > header("Content-type: image/gif"); > header("X-Accel-Redirect: $pic"); > exit(); > > However note that $pic needs to be the relative > image path, not the > full file path on theby pepejose - Nginx Mailing List - English
hello, (sorry for my English) I'm testing nginx as a proxy in front of apache. this is my config file.... user apache apache; worker_processes 1; #log levels [ debug | info | notice | warn | error | crit ] error_log /usr/local/nginx/logs/error.log notice; pid /usr/local/nginx/logs/nginx.pid; events { worker_connections 1024; } http{ includeby pepejose - Nginx Mailing List - English