2010年9月30日星期四

Re: Keep getting 502 Bad Gateway

I persume you are using php-fpm, try using the static process manager mode.

On Fri, Oct 1, 2010 at 1:34 PM, illusime <nginx-forum@nginx.us> wrote:
> Hi,
>
> I have set up a drupal site using nginx. But after a few weeks it will
> get 502 bad gateway error on the site. I'm still at the testing stage
> and my site doesn't receive any traffic but keeps going down. After I
> reboot the server it became alright but after a few days the error will
> come back. Any ideas what is wrong?
>
> Error log file:
> [error] 7563#0: *6 connect() failed (111: Connection refused) while
> connecting to upstream, client: ip, server: mysite.com, request: "GET /
> HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mysite.com"
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,135848,135848#msg-135848
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Keep getting 502 Bad Gateway

Hi,

I have set up a drupal site using nginx. But after a few weeks it will
get 502 bad gateway error on the site. I'm still at the testing stage
and my site doesn't receive any traffic but keeps going down. After I
reboot the server it became alright but after a few days the error will
come back. Any ideas what is wrong?

Error log file:
[error] 7563#0: *6 connect() failed (111: Connection refused) while
connecting to upstream, client: ip, server: mysite.com, request: "GET /
HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mysite.com"

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,135848,135848#msg-135848


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: FRiCKLE pres. ngx_postgres

Version 0.7 is now available at:
http://labs.frickle.com/nginx_ngx_postgres/

GitHub repository is available at:
http://github.com/FRiCKLE/ngx_postgres

Changes:
2010-09-30 VERSION 0.7
* Add option to send original response body with error responses
set by "postgres_rewrite" directive.

2010-08-25
* Fix error that could lead to failed connection to the database.

* Log more details on failed connection to the database.

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

general protection 64bit

Hello Nginx Mailing list,

As of recent seeing errors filling up my dmesg lately was wondering if
anyone has seen something similar to this in there dmesg

nginx[21958] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[19035] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[20665] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[21998] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[21445] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[18957] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[18408] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[21821] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[21246] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[19564] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[22000] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[21716] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[21331] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[19344] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[21444] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[22231] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[21818] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[22049] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[21820] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[22050] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[22337] general protection rip:408caa rsp:7fffe6203850 error:0
nginx[20814] general protection rip:408caa rsp:7fffe6203850 error:0


Version and Compile Options i have for nginx

[root@ nginx]# nginx -V
nginx version: nginx/0.7.65
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
configure arguments: --prefix=/usr/local --sbin-path=/usr/local/sbin
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--pid-path=/var/run/nginx/nginx.pid --lock-path=/var/run/nginx/nginx.lck
--with-http_flv_module --with-http_stub_status_module
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/tmp/nginx-http-tmp
--http-proxy-temp-path=/var/tmp/nginx-proxy-tmp
--http-fastcgi-temp-path=/var/tmp/nginx-fastcgi-tmp
--add-module=./nginx_mod_h264_streaming-2.2.7
--add-module=./ngx_http_secure_download

Anyone suggestions as to what i should check for?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,135733,135733#msg-135733


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Logging Connection termination reason

Hi,

i do have problems with some clients downloading a adobe flex rsl file
(application/x-swz) - I see a lot of requests with different/invalid
$body_bytes_sent values - however the file in the zone cache directory
is expected to be always the same size.

To isolate the probelm i would need to debug the termination reason -
this could be - a client aborted the download (timeout, connection reset
by peer, whatever) or the connection was terminated regular (eof).

The only option i have found so far is running the error_log in
debug_http mode - which causes the webserver to suffer due to the amount
of diskio.

Is there a way to log which side has terminated the connection or the
reason for terminating the connection ?
Is there a way to have error_log mode for a specific url ?

regards
Georg

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: proxy_cache: Activity vs. Validity

Apologies: The working configuration did have proxy_cache_valid buried
in some included file, so my post was pointless.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,135262,135607#msg-135607


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Another error message

Anyone care to define this for me:
cache file "/data/nginx/e1/8d705dee12e9a7c91f9b0053364235e1.0045301114"
is too small

Possible solutions? Config settings? Results?

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

2010年9月29日星期三

Re: Unmanaged VPS Beginner: Setting up OS/Nginx/PHP/etc

On Wed, Sep 29, 2010 at 11:18 PM, <bthreesix@gmail.com> wrote:
> How do I check to see if MySQL and PHP are on the serv? and how do i check if m
> On Sep 29, 2010, at 5:05 PM, António P. P. Almeida wrote:

I'm sorry, but this isn't the forum for free general technical support
of Debain systems. If your unmanaged hosting vendor won't help you
with this, you need to do a lot of reading, or use a *managed* hosting
provider and pay for it.
--
RPM

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: Unmanaged VPS Beginner: Setting up OS/Nginx/PHP/etc

a friend of mine told me to try apt-get update and apt-get upgrade b4 i saw this response and i did both.. seems it updated pretty much everything..
cat /etc/debian_version = 5.0.6
nginx -v = nginx/0.8.37
mysql -V = mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (x86_64) using readline 5.2

php -v doesnt seem to be returning anything so I'm guessing I dont have it installed.. should I start over or does the way I upgraded not matter?
I know MySQL is a requirement for some of the things ill be using.. whats the difference with MariaDB? I'm not adding sites yet until I'm done with this server stuff but thanks for the info ill try that script when i get to that part


How do I check to see if MySQL and PHP are on the serv? and how do i check if m
On Sep 29, 2010, at 5:05 PM, António P. P. Almeida wrote:

> On 30 Set 2010 00h19 WEST, bthreesix@gmail.com wrote:
>
>> [1 <multipart/alternative (7bit)>] [1.1 <text/plain; us-ascii
>> (quoted-printable)>] I decided to go with an unmanaged VPS but I
>> don't understand the basics so I'm a little lost.. right now my
>> panel looks like this
>> http://img291.imageshack.us/img291/8550/screenshot05c.jpg
>>
>> and I did install Debian 5 and Nginx using the "Reinstall OS"
>> feature inside the VPS Panel but I'm not sure if I have the latest
>> version of Debian 5 or Nginx. I haven't had too much luck in the
>> Nginx forum or in the IRC channel so I'm asking here
>>
>> My Questions are:
>>
>> 1. How do I check the versions of Debian-5 and the Nginx that are
>> installed? If I have to upgrade them, is there anywhere I can go
>> to find out how?
>
> Debian 5. Check the release. The current release number is in
> /etc/debian_version
>
> cat /etc/debian_version
>
> Alternatively, if you have the lsb-release package installed:
> lsb_release -d gives you the Debian version, release and codename.
> The current is: 5.0.6 (lenny).
>
> For nginx, if you used the package from Lenny (quite old) you can find
> out which package you have installed with: dpkg -s nginx
>
>> 2. After I figure out if i have the latest versions for number 1,
>> how do I install PHP / MySQL / phpMyAdmin?
>
> Get the version from dotdeb is the latest 5.2.x. Or 5.3.x if go that route.
>
> http://www.dotdeb.org/instructions/
>
> I suggest MariaDB instead of the standard MySQL: http://ourdelta.org/debian
>
> I advise against installing phpmyadmin. There are exploits and holes
> being found every other day for it. Instead I suggest you use the
> console over SSH.
>
>> 3. How do I add other sites without a control panel?
>
> Create a configuration for each site (virtual host) in
> /etc/nginx/sites-available and enable it. Currently Debian has no
> script in the nginx package (any version) for emulating the
> a2ensite/a2dissite Apache utility. I wrote a small Bash script for
> that. It's referenced in the Wiki and also you can get it from
> http://github.com/perusio/nginx_ensite.
>
> After enabling each host, reload nginx. The new site is up.
>
>> I don't expect 1 person to answer everythin.. I just need help.. its
>> been 2 days now and I haven't beena ble to figure anythin out so any
>> help at all is appreciated
>
> Check this: http://library.linode.com/
>
> Also run a firewall and secure your machine as much as possible. These
> guides have everything you need follow them and you'll be clear from
> dangerous dark woods.
>
> --- appa
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: Unmanaged VPS Beginner: Setting up OS/Nginx/PHP/etc

On 30 Set 2010 00h19 WEST, bthreesix@gmail.com wrote:

> [1 <multipart/alternative (7bit)>] [1.1 <text/plain; us-ascii
> (quoted-printable)>] I decided to go with an unmanaged VPS but I
> don't understand the basics so I'm a little lost.. right now my
> panel looks like this
> http://img291.imageshack.us/img291/8550/screenshot05c.jpg
>
> and I did install Debian 5 and Nginx using the "Reinstall OS"
> feature inside the VPS Panel but I'm not sure if I have the latest
> version of Debian 5 or Nginx. I haven't had too much luck in the
> Nginx forum or in the IRC channel so I'm asking here
>
> My Questions are:
>
> 1. How do I check the versions of Debian-5 and the Nginx that are
> installed? If I have to upgrade them, is there anywhere I can go
> to find out how?

Debian 5. Check the release. The current release number is in
/etc/debian_version

cat /etc/debian_version

Alternatively, if you have the lsb-release package installed:
lsb_release -d gives you the Debian version, release and codename.
The current is: 5.0.6 (lenny).

For nginx, if you used the package from Lenny (quite old) you can find
out which package you have installed with: dpkg -s nginx

> 2. After I figure out if i have the latest versions for number 1,
> how do I install PHP / MySQL / phpMyAdmin?

Get the version from dotdeb is the latest 5.2.x. Or 5.3.x if go that route.

http://www.dotdeb.org/instructions/

I suggest MariaDB instead of the standard MySQL: http://ourdelta.org/debian

I advise against installing phpmyadmin. There are exploits and holes
being found every other day for it. Instead I suggest you use the
console over SSH.

> 3. How do I add other sites without a control panel?

Create a configuration for each site (virtual host) in
/etc/nginx/sites-available and enable it. Currently Debian has no
script in the nginx package (any version) for emulating the
a2ensite/a2dissite Apache utility. I wrote a small Bash script for
that. It's referenced in the Wiki and also you can get it from
http://github.com/perusio/nginx_ensite.

After enabling each host, reload nginx. The new site is up.

> I don't expect 1 person to answer everythin.. I just need help.. its
> been 2 days now and I haven't beena ble to figure anythin out so any
> help at all is appreciated

Check this: http://library.linode.com/

Also run a firewall and secure your machine as much as possible. These
guides have everything you need follow them and you'll be clear from
dangerous dark woods.

--- appa


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: Unmanaged VPS Beginner: Setting up OS/Nginx/PHP/etc

thx alot for the help Kon.. the thing is im so new im not sure where nginx -v would actually go... im new to pretty much everything on the unmanaged side.. Ive logged into root b4 and used the command line.. but with an unmanaged vps im not 2 sure where i log in or any of that

Thanks again

On Sep 29, 2010, at 4:27 PM, Kon Wilms wrote:

> On Wed, Sep 29, 2010 at 4:19 PM, <bthreesix@gmail.com> wrote:
>> 1. How do I check the versions of Debian-5 and the Nginx that are installed?
>> If I have to upgrade them, is there anywhere I can go to find out how?
>
> nginx -v
>
>> 2. After I figure out if i have the latest versions for number 1, how do I
>> install PHP / MySQL / phpMyAdmin?
>
> Use php-fpm. It may already be installed - ps aux |grep php-fpm. If it
> isn't, you need to compile php with fpm support and deploy some
> service scripts (see the nginx wiki), and configure nginx to use it
> via location directives.
>
>> 3. How do I add other sites without a control panel?
>
> By editing the nginx config files. Nginx by default is not as nicely
> laid out as apache for multiple sites. You will have to consult the
> nginx wiki and take an approach along the lines of include
> /usr/local/nginx/sites-enabled/* in your main http base config, along
> with writing a few scripts to provision new domains.
>
> Cheers
> Kon
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: Unmanaged VPS Beginner: Setting up OS/Nginx/PHP/etc

On Wed, Sep 29, 2010 at 4:19 PM, <bthreesix@gmail.com> wrote:
> 1. How do I check the versions of Debian-5 and the Nginx that are installed?
> If I have to upgrade them, is there anywhere I can go to find out how?

nginx -v

> 2. After I figure out if i have the latest versions for number 1, how do I
> install PHP / MySQL / phpMyAdmin?

Use php-fpm. It may already be installed - ps aux |grep php-fpm. If it
isn't, you need to compile php with fpm support and deploy some
service scripts (see the nginx wiki), and configure nginx to use it
via location directives.

> 3. How do I add other sites without a control panel?

By editing the nginx config files. Nginx by default is not as nicely
laid out as apache for multiple sites. You will have to consult the
nginx wiki and take an approach along the lines of include
/usr/local/nginx/sites-enabled/* in your main http base config, along
with writing a few scripts to provision new domains.

Cheers
Kon

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Unmanaged VPS Beginner: Setting up OS/Nginx/PHP/etc

I decided to go with an unmanaged VPS but I don't understand the basics so I'm a little lost.. right now my panel looks like this http://img291.imageshack.us/img291/8550/screenshot05c.jpg

and I did install Debian 5 and Nginx using the "Reinstall OS" feature inside the VPS Panel but I'm not sure if I have the latest version of Debian 5 or Nginx. I haven't had too much luck in the Nginx forum or in the IRC channel so I'm asking here

My Questions are:

1. How do I check the versions of Debian-5 and the Nginx that are installed? If I have to upgrade them, is there anywhere I can go to find out how?
2. After I figure out if i have the latest versions for number 1, how do I install PHP / MySQL / phpMyAdmin?
3. How do I add other sites without a control panel?

I don't expect 1 person to answer everythin.. I just need help.. its been 2 days now and I haven't beena ble to figure anythin out so any help at all is appreciated

Thanks!

Doubt about ssl_verify_client

Hi,

I'm writing a Rails app and using nginx+passenger to serve it and I'm implementing "Client Certificate Authentication". For that purpose I need to setup the server using the directive "ssl_verify_client" and "ssl_client_certificate". The problem is that I only need this configuration to happen on some specific URI (like "/client_auth") and I don't know how to do that.
Seems that I can't put the directives enclosed by a "location /client_auth { ... }". And if I put the directives at the server level, then every HTTPS request will look for the client cert (the browser prompts for it) and I don't want to bother users with that because this feature is only needed if you reach the mentioned URI.

I'd appreciate any help on this.

Thanks,

--
Ariel Diaz Bermejo
http://www.linkedin.com/in/adiazbermejo


Re: force last-modified with SSI enabled?

Looks like browsers won't send If-Modified-Since unless a Last-Modified is set :(

Will look at using Apache for this particular sub-set of content.

Thanks,
Fima

Re: force last-modified with SSI enabled?

Will browsers send an If-Modified when an Expires is set? Hm .. need to take a look.

Thanks,
Fima

On Wed, Sep 29, 2010 at 12:01 PM, Alex Sergeyev <asergeyev@dyn.com> wrote:
Sorry that it's completely different of what you expect but I offer to
not use it at all in this case.

My workaround is to send Expires header and Cache-Control: max-age.
IMO this is good enough without making complicated work to answer with
"last modified".

Or send real "old one" like Facebook does:
http://redbot.org/?uri=http%3A%2F%2Fstatic.ak.fbcdn.net%2Frsrc.php%
2FzEX21%2Fhash%2F75j4m1ms.png


There is no good in sending "actual" last modified timestamp to client.
It was designed to make intellectual caching but only makes things
confusing.

Alex.




On Wed, 2010-09-29 at 11:22 -0700, Fima Leshinsky wrote:
> Is there a way to get nginx to send a last-modified of the "master"
> object when SSI is enabled outside of the: add_header Last-Modified
> "blah" directive? Open to any and all work arounds.
>
>
> Thanks in advance.
>
>
> Fima
>
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx



_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: force last-modified with SSI enabled?

Sorry that it's completely different of what you expect but I offer to
not use it at all in this case.

My workaround is to send Expires header and Cache-Control: max-age.
IMO this is good enough without making complicated work to answer with
"last modified".

Or send real "old one" like Facebook does:
http://redbot.org/?uri=http%3A%2F%2Fstatic.ak.fbcdn.net%2Frsrc.php%
2FzEX21%2Fhash%2F75j4m1ms.png

There is no good in sending "actual" last modified timestamp to client.
It was designed to make intellectual caching but only makes things
confusing.

Alex.


On Wed, 2010-09-29 at 11:22 -0700, Fima Leshinsky wrote:
> Is there a way to get nginx to send a last-modified of the "master"
> object when SSI is enabled outside of the: add_header Last-Modified
> "blah" directive? Open to any and all work arounds.
>
>
> Thanks in advance.
>
>
> Fima
>
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

force last-modified with SSI enabled?

Is there a way to get nginx to send a last-modified of the "master" object when SSI is enabled outside of the: add_header Last-Modified "blah" directive? Open to any and all work arounds.

Thanks in advance.

Fima


force last-modified with SSI?

Is there a way to get nginx to send a last-modified response header on
an object that has SSI enabled? Open to any and all work-arounds.

Thanks in advance.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,135456,135456#msg-135456


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: upload module 2.2.0

Thanks for your help, i will try it tomorrow.


>
> -C might simplify things a bit as well.
>
> ----- Valery Kholodkov <valery+nginxen@grid.net.ru> wrote:
> >
> > ----- Elena Zwetkow <ezwetkow@gmx.de> wrote:
> > >
> > > Hello Valery Kholodkov,
> > >
> > > this sounds really good. Do you know if there is a way to
> > > send a byte range with curl or some other command line tool?
> >
> > -H command line switch.
> >
> > >
> > > Best regards
> > >
> > > Elena Zwetkow
> > >
> > >
> > > -------- Original-Nachricht --------
> > > > Datum: Mon, 27 Sep 2010 21:19:38 +0200
> > > > Von: Valery Kholodkov <valery+nginxen@grid.net.ru>
> > > > An: nginx@nginx.org
> > > > Betreff: upload module 2.2.0
> > >
> > > >
> > > > Greetings!
> > > >
> > > > This release of upload module opens a new branch and new feature:
> > > > resumable uploads.
> > > >
> > > > Resumable uploads were tested on Mail.ru's file exchange service:
> > > > files.mail.ru
> > > >
> > > > They were very kind to publish sources of their Silverlight uploader
> > > > that could be used with this version of upload module:
> > > >
> > > > http://github.com/dmitry-dedukhin/MrUploader
> > > >
> > > > You also can use protocol specification to create your own resumable
> > > > uploader on your favorite language:
> > > > http://www.grid.net.ru/nginx/resumable_uploads.en.html
> > > >
> > > > Changes in version 2.2.0:
> > > > * Added feature: resumable uploads
> > > > * Added feature: allow to use $variables in "upload_pass"
> directive
> > > > (Piotr Sikora)
> > > > * Added feature: allow module's directives inside if statements
> (David
> > > > Backeus)
> > > > * Added feature: directive upload_tame_arrays and ability to do
> some
> > > > magic with php arrays
> > > >
> > > > Please see this page for details:
> > > > http://www.grid.net.ru/nginx/upload.en.html
> > > >
> > > > --
> > > > Best regards,
> > > > Valery Kholodkov
> > > >
> > > >
> > > > _______________________________________________
> > > > nginx mailing list
> > > > nginx@nginx.org
> > > > http://nginx.org/mailman/listinfo/nginx
> > >
> > > --
> > > GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99
> Euro/mtl.!*
> > > http://portal.gmx.net/de/go/dsl
> > >
> > > _______________________________________________
> > > nginx mailing list
> > > nginx@nginx.org
> > > http://nginx.org/mailman/listinfo/nginx
> >
> > --
> > --
> > Regards,
> > Valery Kholodkov
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://nginx.org/mailman/listinfo/nginx
>
> --
> --
> Regards,
> Valery Kholodkov
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx

--
GRATIS: Spider-Man 1-3 sowie 300 weitere Videos!
Jetzt freischalten! http://portal.gmx.net/de/go/maxdome

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: Newbie: Trying to ssl-wrap Plone4 using non-standard port

On Wed, Sep 29, 2010 at 07:32:43AM +0200, Johannes Graumann wrote:
> mat h wrote:

[Re-arranging for readability]

> >>>> The server now hold a virgin buildout of Plone4, listening on 8080.
> >>>> I want to wrap that zope/plone cnnetion into ssl using NGINX

> >>>> location / {
> >>>> proxy_pass http://localhost:8080;
> >>>> }

> >>>> This gets me to Plone4's "Plone is up and running. * Your Plone site
> >>>> has not been added yet ..." age just fine, but clicking the button
> >>>> "Create a new Plone Site" redirects me to localhost:8080, which
> >>>> unsurprisingly doesn't work.

> >> location / {
> >> proxy_pass http://localhost:8080;
> >> proxy_redirect http://localhost:8080/ /;
> >> }

> >> But when trying to move on from plone's default start page (at
> >> https://h1616679.stratoserver.net:442/), I still end at
> >> http://localhost:8080/@@plone-addsite?site_id=Plone, which keeps not
> >> working ...

> > try using 127.0.0.1 instead of localhost.
>
> Thanks. Trying to go beyond the start age I now get stuck with a failing
> http://127.0.0.1:8080/@@plone-addsite?site_id=Plone ...

That looks like plone is generating a redirect url based on the provided
(to it) scheme://host:port

In fact, the returned html page includes the content

base href="http://127.0.0.1:8080/"
action="http://127.0.0.1:8080/@@plone-addsite"
href="http://127.0.0.1:8080/manage_main"

so it's not just in the http headers (where nginx should adjust them)
that things need changing.

Configure plone not to generate full urls within its output, and it
should all Just Work. (The urls should probably be site-relative,
starting with "/".)

Failing that, in nginx, you can set proxy_set_header (see
http://wiki.nginx.org/NginxHttpProxyModule for details) to send the
host:port that the the client sent, to plone. I don't know how to send
the scheme of https in a way that plone will automagically read, though.

If you really really want to, and don't care for efficiency, you could try
a sub_filter (http://wiki.nginx.org/HttpSubModule) to replace the string
"http://127.0.0.1:8080/" with the string "/" in all content generated
by plone. But it'd be much better just to configure plone to leave out
the unnecessary parts in the first place.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: upload module 2.2.0

-C might simplify things a bit as well.

----- Valery Kholodkov <valery+nginxen@grid.net.ru> wrote:
>
> ----- Elena Zwetkow <ezwetkow@gmx.de> wrote:
> >
> > Hello Valery Kholodkov,
> >
> > this sounds really good. Do you know if there is a way to
> > send a byte range with curl or some other command line tool?
>
> -H command line switch.
>
> >
> > Best regards
> >
> > Elena Zwetkow
> >
> >
> > -------- Original-Nachricht --------
> > > Datum: Mon, 27 Sep 2010 21:19:38 +0200
> > > Von: Valery Kholodkov <valery+nginxen@grid.net.ru>
> > > An: nginx@nginx.org
> > > Betreff: upload module 2.2.0
> >
> > >
> > > Greetings!
> > >
> > > This release of upload module opens a new branch and new feature:
> > > resumable uploads.
> > >
> > > Resumable uploads were tested on Mail.ru's file exchange service:
> > > files.mail.ru
> > >
> > > They were very kind to publish sources of their Silverlight uploader
> > > that could be used with this version of upload module:
> > >
> > > http://github.com/dmitry-dedukhin/MrUploader
> > >
> > > You also can use protocol specification to create your own resumable
> > > uploader on your favorite language:
> > > http://www.grid.net.ru/nginx/resumable_uploads.en.html
> > >
> > > Changes in version 2.2.0:
> > > * Added feature: resumable uploads
> > > * Added feature: allow to use $variables in "upload_pass" directive
> > > (Piotr Sikora)
> > > * Added feature: allow module's directives inside if statements (David
> > > Backeus)
> > > * Added feature: directive upload_tame_arrays and ability to do some
> > > magic with php arrays
> > >
> > > Please see this page for details:
> > > http://www.grid.net.ru/nginx/upload.en.html
> > >
> > > --
> > > Best regards,
> > > Valery Kholodkov
> > >
> > >
> > > _______________________________________________
> > > nginx mailing list
> > > nginx@nginx.org
> > > http://nginx.org/mailman/listinfo/nginx
> >
> > --
> > GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 Euro/mtl.!*
> > http://portal.gmx.net/de/go/dsl
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://nginx.org/mailman/listinfo/nginx
>
> --
> --
> Regards,
> Valery Kholodkov
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx

--
--
Regards,
Valery Kholodkov

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: fastcgi statistics at nginx

> Please, is there a way to see how many active requests I have to fastcgi ?

You can get some statistics from FPM itself like:

accepted conn: 129
pool: www
process manager: dynamic
idle processes: 20
active processes: 0
total processes: 20

when setting the pm.status_path variable in fpm config.

For example:

pm.status_path = /status


Then you should configure nginx to pass the location to php backend:

location /status {
fastcgi_pass ...
# whatever else you have
}


rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

proxy_cache: Activity vs. Validity

Hi,

I am new to nginx (and to caching proxies), and I'd like to make sure I
use the Proxy module correctly. As far as I understand, the following
directive

proxy_cache_path /data/nginx/cache/one levels=1
keys_zone=one:10m inactive=10m max_size:500m;

asks nginx to cache a certain page for 10 minutes. If it is not
requested again within that time span, the page is removed from the
cache. I assume that without the inactive parameter, pages remain in the
cache until either the maximum zone size (10 MB) or the maximum cache
size (500 MB) is reached.

Now I wonder how the proxy_cache_valid contributes to the caching
mechanism. The wiki
(http://wiki.nginx.org/NginxHttpProxyModule#proxy_cache_valid) says that
there is no persistent caching without proxy_cache_valid – but what
does that mean exactly? A configuration without proxy_cache_valid works
(pages are cached, and cached pages are sent back to the client), so
what is different with proxy_cache_valid?

Also, how does proxy_cache_valid relate to the inactive parameter above?
If, for example, I set proxy_cache_valid for for any response to 10
minutes, but the inactive parameter to 20 minutes, cached pages will
remain in the cache for 10 minutes after they have become invalid (i.e.
if the page is requested 15 minutes after the initial request, the
existing cache entry is ignored). If this assumption is correct, it
probably makes no sense to set the inactive parameter to a higher value
than proxy_cache_valid.

Best regards,
Jan

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,135262,135262#msg-135262


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

2010年9月28日星期二

Re: Newbie: Trying to ssl-wrap Plone4 using non-standard port

mat h wrote:

> try using 127.0.0.1 instead of localhost.

Thanks. Trying to go beyond the start age I now get stuck with a failing
http://127.0.0.1:8080/@@plone-addsite?site_id=Plone ...

Joh

>
> On Wed, Sep 29, 2010 at 4:20 AM, Johannes Graumann
> <johannes_graumann@web.de> wrote:
>> Igor Sysoev wrote:
>>
>>> On Tue, Sep 28, 2010 at 07:17:13PM +0200, Johannes Graumann wrote:
>>>
>>>> Hello,
>>>>
>>>> I have a domain (www.graumannschaft.org) that points to a non-standard
>>>> ssl- port on a server I rent (h1616679.stratoserver.net:442), as 443 is
>>>> taken by an unrelated Apache instance.
>>>> The server now hold a virgin buildout of Plone4, listening on 8080.
>>>> I want to wrap that zope/plone cnnetion into ssl using NGINX and hsve
>>>> so fa the following:
>>>>
>>>> server {
>>>> listen 442;# Custom port as the standard 443 is taken by kolab
>>>> server_name www.graumannschaft.org;
>>>> # SSL is using KOLAB generated credentials
>>>> ssl on;
>>>> ssl_certificate /kolab/etc/kolab/cert.pem;
>>>> ssl_certificate_key /kolab/etc/kolab/key.pem;
>>>> ssl_session_timeout 5m;
>>>> ssl_protocols SSLv3 TLSv1;
>>>> ssl_ciphers
>>>> ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
>>>> ssl_prefer_server_ciphers on;
>>>> location / {
>>>> proxy_pass http://localhost:8080;
>>>> }
>>>> }
>>>>
>>>> This gets me to Plone4's "Plone is up and running. * Your Plone site
>>>> has not been added yet ..." age just fine, but clicking the button
>>>> "Create a new Plone Site" redirects me to localhost:8080, which
>>>> unsurprisingly doesn't work.
>>>> I'm obviously lacking rewriting, but whatever I have tried along the
>>>> lines of googled examples (which mostly rely n already up and running
>>>> plone sites and plone's VirtulHostMonster), has not worked.
>>>>
>>>> Can someone lease nudge me into the right direction?
>>>
>>> location / {
>>> proxy_pass http://localhost:8080;
>>> proxy_redirect http://localhost:8080/ /;
>>> }
>>>
>> Thanks! I have now
>>
>> server {
>> listen 442;# This is a custom port as the standard 443 is taken by
>> kolab server_name www.graumannschaft.org h1616679.stratoserver.net;
>> # SSL is using KOLAB generated credentials
>> ssl on;
>> ssl_certificate /kolab/etc/kolab/cert.pem;
>> ssl_certificate_key /kolab/etc/kolab/key.pem;
>> ssl_session_timeout 5m;
>> ssl_protocols SSLv3 TLSv1;
>> ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3 +EXP;
>> ssl_prefer_server_ciphers on;
>> location / {
>> proxy_pass http://localhost:8080;
>> proxy_redirect http://localhost:8080/ /;
>> }
>> }
>>
>> But when trying to move on from plone's default start page (at
>> https://h1616679.stratoserver.net:442/), I still end at
>> http://localhost:8080/@@plone-addsite?site_id=Plone, which keeps not
>> working ...
>>
>> Thanks for any hint, Joh
>>
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://nginx.org/mailman/listinfo/nginx
>>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Fw: Re: How to configure Nginx as IMAP/POP3 reverse proxy - IBM Lotus Domino Server

Sorry, should be problem with SMTP and not IMAP

--- On Wed, 9/29/10, Juliana The <jul_the@yahoo.com> wrote:

From: Juliana The <jul_the@yahoo.com>
Subject: Re: How to configure Nginx as IMAP/POP3 reverse proxy - IBM Lotus Domino Server
To: nginx@nginx.org
Date: Wednesday, September 29, 2010, 12:19 AM

Hi..
 
Now the POP3 already running.
But still have problem with SMTP
 
nginx.conf
 
user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
error_log /usr/local/nginx/logs/error.log;
#pid logs/nginx.pid;
pid /usr/local/nginx/logs/nginx.pid;
 
events {
worker_connections 1024;
multi_accept on;
}
mail {
auth_http 127.0.0.1:80/auth;
auth_http_timeout 6000;
smtp_auth plain;
pop3_auth plain;
imap_auth plain;
pop3_capabilities "TOP" "USER";
imap_capabilities "IMAP4rev1" "UIDPLUS";
 
server {
listen 110;
protocol pop3;
proxy on;
}
server {
listen 143;
protocol imap;
proxy on;
}
server {
listen 25;
protocol smtp;
proxy on;
}
}
http {
include mime.types;
default_type application/octet-stream;
perl_modules perl/lib;
perl_require mailauth.pm;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
#location /auth {
location /auth {
perl mailauth::handler;
}
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
 
 
mailauth.pm
 
package mailauth;
use nginx;
our $auth_ok;
our $mail_server_ip={"192.168.221.1"};
our $protocol_ports={};
$domino="192.168.221.1";
$protocol_ports->{'pop3'}=110;
$protocol_ports->{'imap'}=143;
$protocol_ports->{'smtp'}=25;
sub handler {
my $r=shift;
$auth_ok=1;
if ($auth_ok==1){
$r->header_out("Auth-Status", "OK") ;
$r->header_out("Auth-Server", $domino);
$r->header_out("Auth-Port", $protocol_ports->{$r->header_in("Auth-Protocol")});
$r->header_out("Auth Plain",$r->header_in("Auth Plain"));
} else {
$r->header_out("Auth-Status", "Invalid login or password") ;
}
$r->send_http_header("text/html");
return OK;
}
1;


--- On Sun, 9/26/10, Maxim Dounin <mdounin@mdounin.ru> wrote:

From: Maxim Dounin <mdounin@mdounin.ru>
Subject: Re: How to configure Nginx as IMAP/POP3 reverse proxy - IBM Lotus Domino Server
To: nginx@nginx.org
Date: Sunday, September 26, 2010, 11:49 AM

Hello!

On Sun, Sep 26, 2010 at 02:24:21AM -0700, Juliana The wrote:

>
> Hi all,
> I'm newbie with nginx.
> I have IBM Lotus Domino Server as an email server with IP Address 192.168.221.1
> and Linux installed Nginx as IMAP/POP3 reverse proxy with IP Address 192.168.221.130
> I've configured nginx.conf like below :
> #user nobody;
> worker_processes 1;
> error_log /usr/local/nginx/logs/error.log;
> pid /usr/local/nginx/logs/nginx.pid;
> events {
> worker_connections 1024;
> multi_accept on;
> }
> mail {
> auth_http 192.168.221.1:81; #Domino server with http proxy (81)

This is obviously wrong as there is no URI of auth script.

http://wiki.nginx.org/MailAuthModule

> auth_http_timeout 6000;
> pop3_auth "plain";
> pop3_capabilities "TOP" "USER";
> imap_capabilities "IMAP4rev1" "UIDPLUS";
> server {
> listen 110;
> protocol pop3;
> proxy on;
> }
> server {
> listen 143;
> protocol imap;
> proxy on;
> }
> }
> When I tried telnet from client pc to Nginx, I get this response :
> C:\> telnet 192.168.221.130 110
> +OK POP3 ready
> C:\> telnet 192.168.221.130 143
> +OK IMAP4 ready
> I also can telnet from NGINX server to Domino and get this response :
> [root@centostest ~]# telnet 192.168.221.1 81
> Trying 192.168.221.1...
> Connected to 192.168.221.1 (192.168.221.1).
> Escape character is '^]'.
> [root@centostest ~]# telnet 192.168.221.1 110
> Trying 192.168.221.1...
> Connected to 192.168.221.1 (192.168.221.1).
> Escape character is '^]'.
> +OK Lotus Notes POP3 server version Release 8.5.1 ready on JULMAIL/JTHE.
> [root@centostest ~]# telnet 192.168.221.1 143
> Trying 192.168.221.1...
> Connected to 192.168.221.1 (192.168.221.1).
> Escape character is '^]'.
> * OK Domino IMAP4 Server Release 8.5.1 ready Sun, 26 Sep 2010 13:56:39 +1000
>  
> Does anyone can help how to configure nginx to get response like below :
> When I telnet from client to 192.168.221.130 110
> C:\> telnet 192.168.221.130 110
> +OK Lotus Notes POP3 server version Release 8.5.1 ready on JULMAIL/JTHE.
> When I telnet from client to 192.168.221.130 143
> C:\> telnet 192.168.221.130 143
> * OK Domino IMAP4 Server Release 8.5.1 ready Sun, 26 Sep 2010 13:56:39 +1000

No, you can't change server greeting lines in nginx.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx


Re: How to configure Nginx as IMAP/POP3 reverse proxy - IBM Lotus Domino Server

Hi..
 
Now the POP3 already running.
But still have problem with IMAP.
 
nginx.conf
 
user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
error_log /usr/local/nginx/logs/error.log;
#pid logs/nginx.pid;
pid /usr/local/nginx/logs/nginx.pid;
 
events {
worker_connections 1024;
multi_accept on;
}
mail {
auth_http 127.0.0.1:80/auth;
auth_http_timeout 6000;
smtp_auth plain;
pop3_auth plain;
imap_auth plain;
pop3_capabilities "TOP" "USER";
imap_capabilities "IMAP4rev1" "UIDPLUS";
 
server {
listen 110;
protocol pop3;
proxy on;
}
server {
listen 143;
protocol imap;
proxy on;
}
server {
listen 25;
protocol smtp;
proxy on;
}
}
http {
include mime.types;
default_type application/octet-stream;
perl_modules perl/lib;
perl_require mailauth.pm;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name localhost;
#location /auth {
location /auth {
perl mailauth::handler;
}
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
 
 
mailauth.pm
 
package mailauth;
use nginx;
our $auth_ok;
our $mail_server_ip={"192.168.221.1"};
our $protocol_ports={};
$domino="192.168.221.1";
$protocol_ports->{'pop3'}=110;
$protocol_ports->{'imap'}=143;
$protocol_ports->{'smtp'}=25;
sub handler {
my $r=shift;
$auth_ok=1;
if ($auth_ok==1){
$r->header_out("Auth-Status", "OK") ;
$r->header_out("Auth-Server", $domino);
$r->header_out("Auth-Port", $protocol_ports->{$r->header_in("Auth-Protocol")});
$r->header_out("Auth Plain",$r->header_in("Auth Plain"));
} else {
$r->header_out("Auth-Status", "Invalid login or password") ;
}
$r->send_http_header("text/html");
return OK;
}
1;


--- On Sun, 9/26/10, Maxim Dounin <mdounin@mdounin.ru> wrote:

From: Maxim Dounin <mdounin@mdounin.ru>
Subject: Re: How to configure Nginx as IMAP/POP3 reverse proxy - IBM Lotus Domino Server
To: nginx@nginx.org
Date: Sunday, September 26, 2010, 11:49 AM

Hello!

On Sun, Sep 26, 2010 at 02:24:21AM -0700, Juliana The wrote:

>
> Hi all,
> I'm newbie with nginx.
> I have IBM Lotus Domino Server as an email server with IP Address 192.168.221.1
> and Linux installed Nginx as IMAP/POP3 reverse proxy with IP Address 192.168.221.130
> I've configured nginx.conf like below :
> #user nobody;
> worker_processes 1;
> error_log /usr/local/nginx/logs/error.log;
> pid /usr/local/nginx/logs/nginx.pid;
> events {
> worker_connections 1024;
> multi_accept on;
> }
> mail {
> auth_http 192.168.221.1:81; #Domino server with http proxy (81)

This is obviously wrong as there is no URI of auth script.

http://wiki.nginx.org/MailAuthModule

> auth_http_timeout 6000;
> pop3_auth "plain";
> pop3_capabilities "TOP" "USER";
> imap_capabilities "IMAP4rev1" "UIDPLUS";
> server {
> listen 110;
> protocol pop3;
> proxy on;
> }
> server {
> listen 143;
> protocol imap;
> proxy on;
> }
> }
> When I tried telnet from client pc to Nginx, I get this response :
> C:\> telnet 192.168.221.130 110
> +OK POP3 ready
> C:\> telnet 192.168.221.130 143
> +OK IMAP4 ready
> I also can telnet from NGINX server to Domino and get this response :
> [root@centostest ~]# telnet 192.168.221.1 81
> Trying 192.168.221.1...
> Connected to 192.168.221.1 (192.168.221.1).
> Escape character is '^]'.
> [root@centostest ~]# telnet 192.168.221.1 110
> Trying 192.168.221.1...
> Connected to 192.168.221.1 (192.168.221.1).
> Escape character is '^]'.
> +OK Lotus Notes POP3 server version Release 8.5.1 ready on JULMAIL/JTHE.
> [root@centostest ~]# telnet 192.168.221.1 143
> Trying 192.168.221.1...
> Connected to 192.168.221.1 (192.168.221.1).
> Escape character is '^]'.
> * OK Domino IMAP4 Server Release 8.5.1 ready Sun, 26 Sep 2010 13:56:39 +1000
>  
> Does anyone can help how to configure nginx to get response like below :
> When I telnet from client to 192.168.221.130 110
> C:\> telnet 192.168.221.130 110
> +OK Lotus Notes POP3 server version Release 8.5.1 ready on JULMAIL/JTHE.
> When I telnet from client to 192.168.221.130 143
> C:\> telnet 192.168.221.130 143
> * OK Domino IMAP4 Server Release 8.5.1 ready Sun, 26 Sep 2010 13:56:39 +1000

No, you can't change server greeting lines in nginx.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: Newbie: Trying to ssl-wrap Plone4 using non-standard port

try using 127.0.0.1 instead of localhost.

On Wed, Sep 29, 2010 at 4:20 AM, Johannes Graumann
<johannes_graumann@web.de> wrote:
> Igor Sysoev wrote:
>
>> On Tue, Sep 28, 2010 at 07:17:13PM +0200, Johannes Graumann wrote:
>>
>>> Hello,
>>>
>>> I have a domain (www.graumannschaft.org) that points to a non-standard
>>> ssl- port on a server I rent (h1616679.stratoserver.net:442), as 443 is
>>> taken by an unrelated Apache instance.
>>> The server now hold a virgin buildout of Plone4, listening on 8080.
>>> I want to wrap that zope/plone cnnetion into ssl using NGINX and hsve so
>>> fa the following:
>>>
>>> server {
>>>     listen   442;# Custom port as the standard 443 is taken by kolab
>>>     server_name  www.graumannschaft.org;
>>>     # SSL is using KOLAB generated credentials
>>>     ssl  on;
>>>     ssl_certificate  /kolab/etc/kolab/cert.pem;
>>>     ssl_certificate_key  /kolab/etc/kolab/key.pem;
>>>     ssl_session_timeout  5m;
>>>     ssl_protocols  SSLv3 TLSv1;
>>>     ssl_ciphers
>>>     ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
>>>     ssl_prefer_server_ciphers   on;
>>>     location / {
>>>         proxy_pass http://localhost:8080;
>>>     }
>>>   }
>>>
>>> This gets me to Plone4's "Plone is up and running. * Your Plone site has
>>> not been added yet ..." age just fine, but clicking the button "Create a
>>> new Plone Site" redirects me to localhost:8080, which unsurprisingly
>>> doesn't work.
>>> I'm obviously lacking rewriting, but whatever I have tried along the
>>> lines of googled examples (which mostly rely n already up and running
>>> plone sites and plone's VirtulHostMonster), has not worked.
>>>
>>> Can someone lease nudge me into the right direction?
>>
>>      location / {
>>          proxy_pass      http://localhost:8080;
>>          proxy_redirect  http://localhost:8080/ /;
>>      }
>>
> Thanks! I have now
>
> server {
>  listen   442;# This is a custom port as the standard 443 is taken by kolab
>  server_name  www.graumannschaft.org h1616679.stratoserver.net;
>  # SSL is using KOLAB generated credentials
>  ssl  on;
>  ssl_certificate  /kolab/etc/kolab/cert.pem;
>  ssl_certificate_key  /kolab/etc/kolab/key.pem;
>  ssl_session_timeout  5m;
>  ssl_protocols  SSLv3 TLSv1;
>  ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3 +EXP;
>  ssl_prefer_server_ciphers   on;
>  location / {
>        proxy_pass      http://localhost:8080;
>        proxy_redirect  http://localhost:8080/ /;
>  }
> }
>
> But when trying to move on from plone's default start page (at
> https://h1616679.stratoserver.net:442/), I still end at
> http://localhost:8080/@@plone-addsite?site_id=Plone, which keeps not working
> ...
>
> Thanks for any hint, Joh
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: nginx-0.8.52

Its working now. Thanks!

--
omega13a
Owner and Founder of UFT
http://www.fedtrek.com


On 09/28/2010 02:48 PM, Maxim Dounin wrote:
> Hello!
>
> On Tue, Sep 28, 2010 at 11:13:23AM -0700, Brandon Amaro wrote:
>
>
>> adding --with-ld-opts="-Wl,-E" cave me the following error:
>>
>> ./configure: error: invalid option "--with-ld-opts=-Wl,-E"
>>
> Sorry, it should be --with-ld-opt=... (without 's').
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: maximum number of file descriptors

On Wed, Sep 29, 2010 at 00:27, Piotr Sikora <piotr.sikora@frickle.com> wrote:
> Hi,
>
>>> The default limit on ubuntu is 1024.
>>> How can I increase this limit?
>>
>> That's not nginx-specific, maybe you wanna ask in the ubuntu forums
>> (or, better, Debian)?
>
> Actually, it is:
> worker_rlimit_nofile XXXX;

If you set worker_rlimit_nofile XXXX to 2048 you're still gonna hit
that 1024 system limit (assuming Ubuntu) and this directive is only
for worker processes, not the master process (according to a link the
OP provided, quoting Igor).

The first link on the search i provided points to how to increase the
system limit for specific users (like www and similar, used by the OS
to run the httpd).

Regards,
Nuno

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: maximum number of file descriptors

Hi,

> Igor said that worker_rlimit_nofile is not enough:
> http://nginx.org/pipermail/nginx/2008-April/004596.html

It works for me just fine.

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: maximum number of file descriptors

On Wed, Sep 29, 2010 at 1:27 AM, Piotr Sikora <piotr.sikora@frickle.com> wrote:
Hi,


The default limit on ubuntu is 1024.
How can I increase this limit?

That's not nginx-specific, maybe you wanna ask in the ubuntu forums
(or, better, Debian)?

Actually, it is:
worker_rlimit_nofile XXXX;

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >

Igor said that worker_rlimit_nofile is not enough:
http://nginx.org/pipermail/nginx/2008-April/004596.html





_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: maximum number of file descriptors

2010/9/29 Nuno Magalhães <nunomagalhaes@eu.ipp.pt>
Hi

On Tue, Sep 28, 2010 at 23:06, pablo platt <pablo.platt@gmail.com> wrote:
> The default limit on ubuntu is 1024.
> How can I increase this limit?

That's not nginx-specific, maybe you wanna ask in the ubuntu forums
(or, better, Debian)?
Or, better yet, try a search engine first:
http://lmgtfy.com/?q=linux+webserver+maximum+file+descriptor

If you'll read my question you'll see that it is related to nginx.
lmgtfy was funny years ago. The fact that you are still using it is a bit sad.

If someone else can answer my question I'll appreciate it.
 

HTH,
Nuno

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: maximum number of file descriptors

Hi,

>> The default limit on ubuntu is 1024.
>> How can I increase this limit?
>
> That's not nginx-specific, maybe you wanna ask in the ubuntu forums
> (or, better, Debian)?

Actually, it is:
worker_rlimit_nofile XXXX;

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: How I easily serve all files from a directory ?

I figured it out:

I found a directive:
  autoindex on;

    server {
        listen       8222;
        server_name  localhost;
        autoindex on;

Thanks me!

On Tue, Sep 28, 2010 at 3:44 PM, Audrey Lee <audrey.lee.is.me@gmail.com> wrote:
Hello nginx people,

is it easy to configure nginx so that it will serve html for a directory?
I want the html to  list all files in that directory.

My directory would be like this:

nginx/html/mydir/

And I would fill it with files like:
my.html
our.txt
your.jpg
their.pdf


I would see links to those files.

I think apache has this feature but I dont want to use apache.

Here is an example of what I am looking for:


thanks!


How I easily serve all files from a directory ?

Hello nginx people,

is it easy to configure nginx so that it will serve html for a directory?
I want the html to  list all files in that directory.

My directory would be like this:

nginx/html/mydir/

And I would fill it with files like:
my.html
our.txt
your.jpg
their.pdf


I would see links to those files.

I think apache has this feature but I dont want to use apache.

Here is an example of what I am looking for:


thanks!

Re: maximum number of file descriptors

Hi

On Tue, Sep 28, 2010 at 23:06, pablo platt <pablo.platt@gmail.com> wrote:
> The default limit on ubuntu is 1024.
> How can I increase this limit?

That's not nginx-specific, maybe you wanna ask in the ubuntu forums
(or, better, Debian)?
Or, better yet, try a search engine first:
http://lmgtfy.com/?q=linux+webserver+maximum+file+descriptor

HTH,
Nuno

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

maximum number of file descriptors

Hi

I'm using nginx for long polling requests.
Each user will have at least one hanging request in addition to requesting static files when needed.
I understand that each connection needs a file descriptor.
The default limit on ubuntu is 1024.
How can I increase this limit?
Do I need to change something on ubuntu or just in nginx config?
Does worker_rlimit_nofile what I'm looking for or does it only set the limit per worker and I'll still hit the master process limit?
http://wiki.nginx.org/NginxHttpMainModule#worker_rlimit_nofile

Thanks

Re: nginx-0.8.52

Hello!

On Tue, Sep 28, 2010 at 11:13:23AM -0700, Brandon Amaro wrote:

> adding --with-ld-opts="-Wl,-E" cave me the following error:
>
> ./configure: error: invalid option "--with-ld-opts=-Wl,-E"

Sorry, it should be --with-ld-opt=... (without 's').

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

fastcgi statistics at nginx

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Please, is there a way to see how many active requests I have to fastcgi ?

Something like that:

fastcgi.active-requests: 0
fastcgi.backend.fcgi-php.0.connected: 10127
fastcgi.backend.fcgi-php.0.died: 0
fastcgi.backend.fcgi-php.0.disabled: 0
fastcgi.backend.fcgi-php.0.load: 0
fastcgi.backend.fcgi-php.0.overloaded: 0
fastcgi.backend.fcgi-php.1.connected: 93855
fastcgi.backend.fcgi-php.1.died: 0
fastcgi.backend.fcgi-php.1.disabled: 0
fastcgi.backend.fcgi-php.1.load: 0
fastcgi.backend.fcgi-php.1.overloaded: 0
fastcgi.backend.fcgi-php.load: 1
fastcgi.requests: 399355

Stub Status Module does not do that :(


Thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkyiSJ4ACgkQNRQApncg294KCgCg339t7QfAJ/y5EJtGwlmzK/iu
ktkAl2EO3+do3edYlu2NHa1/iuLh6Ko=
=Giyr
-----END PGP SIGNATURE-----

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: spaces in URI

Works like a champ! Thanks for your help.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,97031,135070#msg-135070


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: Newbie: Trying to ssl-wrap Plone4 using non-standard port

Igor Sysoev wrote:

> On Tue, Sep 28, 2010 at 07:17:13PM +0200, Johannes Graumann wrote:
>
>> Hello,
>>
>> I have a domain (www.graumannschaft.org) that points to a non-standard
>> ssl- port on a server I rent (h1616679.stratoserver.net:442), as 443 is
>> taken by an unrelated Apache instance.
>> The server now hold a virgin buildout of Plone4, listening on 8080.
>> I want to wrap that zope/plone cnnetion into ssl using NGINX and hsve so
>> fa the following:
>>
>> server {
>> listen 442;# Custom port as the standard 443 is taken by kolab
>> server_name www.graumannschaft.org;
>> # SSL is using KOLAB generated credentials
>> ssl on;
>> ssl_certificate /kolab/etc/kolab/cert.pem;
>> ssl_certificate_key /kolab/etc/kolab/key.pem;
>> ssl_session_timeout 5m;
>> ssl_protocols SSLv3 TLSv1;
>> ssl_ciphers
>> ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
>> ssl_prefer_server_ciphers on;
>> location / {
>> proxy_pass http://localhost:8080;
>> }
>> }
>>
>> This gets me to Plone4's "Plone is up and running. * Your Plone site has
>> not been added yet ..." age just fine, but clicking the button "Create a
>> new Plone Site" redirects me to localhost:8080, which unsurprisingly
>> doesn't work.
>> I'm obviously lacking rewriting, but whatever I have tried along the
>> lines of googled examples (which mostly rely n already up and running
>> plone sites and plone's VirtulHostMonster), has not worked.
>>
>> Can someone lease nudge me into the right direction?
>
> location / {
> proxy_pass http://localhost:8080;
> proxy_redirect http://localhost:8080/ /;
> }
>
Thanks! I have now

server {
listen 442;# This is a custom port as the standard 443 is taken by kolab
server_name www.graumannschaft.org h1616679.stratoserver.net;
# SSL is using KOLAB generated credentials
ssl on;
ssl_certificate /kolab/etc/kolab/cert.pem;
ssl_certificate_key /kolab/etc/kolab/key.pem;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3 +EXP;
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://localhost:8080;
proxy_redirect http://localhost:8080/ /;
}
}

But when trying to move on from plone's default start page (at
https://h1616679.stratoserver.net:442/), I still end at
http://localhost:8080/@@plone-addsite?site_id=Plone, which keeps not working
...

Thanks for any hint, Joh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: spaces in URI

On Tue, Sep 28, 2010 at 02:14:09PM -0400, cgarver wrote:

> As I have other countries like Canada to deal with, it can get rather
> unwieldy doing every permutation of case. What about something like
> this:
>
> rewrite (?i)^/us(.*)$ /us$1;
> location ^~ /us {
> proxy_pass http://backendcms/;
> proxy_set_header Host xxx.xxx.xxx;
>
> It seems to be allowing www.xxxx.xxx/uS/ to work. Not sure if there
> will be any pitfalls later...

Then

rewrite (?i)^/us(.*)$ /us$1 last;
rewrite (?i)^/ca(.*)$ /ca$1 last;


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: spaces in URI

As I have other countries like Canada to deal with, it can get rather
unwieldy doing every permutation of case. What about something like
this:

rewrite (?i)^/us(.*)$ /us$1;
location ^~ /us {
proxy_pass http://backendcms/;
proxy_set_header Host xxx.xxx.xxx;

It seems to be allowing www.xxxx.xxx/uS/ to work. Not sure if there
will be any pitfalls later...

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,97031,135058#msg-135058


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: nginx-0.8.52

adding --with-ld-opts="-Wl,-E" cave me the following error:

./configure: error: invalid option "--with-ld-opts=-Wl,-E"

--
omega13a
Owner and Founder of UFT
http://www.fedtrek.com


On 09/28/2010 11:02 AM, Brandon Amaro wrote:
> Output of perl -V:
>
> Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
>
> Platform:
> osname=linux, osvers=2.6.32-44.el6.x86_64,
> archname=i386-linux-thread-multi
> uname='linux x86-16.phx2.fedoraproject.org 2.6.32-44.el6.x86_64 #1
> smp wed jul 7 15:47:50 edt 2010 i686 i686 i386 gnulinux '
> config_args='-des -Doptimize=-O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -Dccdlflags=-Wl,--enable-new-dtags
> -DDEBUGGING=-g -Dversion=5.10.1 -Dmyhostname=localhost
> -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc.
> -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr/local
> -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib/perl5
> -Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5
> -Darchlib=/usr/lib/perl5 -Dvendorarch=/usr/lib/perl5
> -Dinc_version_list=5.10.0 -Darchname=i386-linux-thread-multi
> -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid
> -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog
> -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005
> -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto
> -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto
> -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto
> -Dscriptdir=/usr/bin
> -Dotherlibdirs=/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi:/usr/local/lib/perl5/site_perl/5.10.0:/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl:/usr/lib/perl5/site_perl'
>
> hint=recommended, useposix=true, d_sigaction=define
> useithreads=define, usemultiplicity=define
> useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
> use64bitint=undef, use64bitall=undef, uselongdouble=undef
> usemymalloc=n, bincompat5005=undef
> Compiler:
> cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE
> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
> optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
> -mtune=atom -fasynchronous-unwind-tables',
> cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
> -fstack-protector -I/usr/local/include'
> ccversion='', gccversion='4.4.4 20100630 (Red Hat 4.4.4-10)',
> gccosandvers=''
> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
> ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
> alignbytes=4, prototype=define
> Linker and Libraries:
> ld='gcc', ldflags =' -fstack-protector -L/usr/local/lib'
> libpth=/usr/local/lib /lib /usr/lib
> libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
> perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
> libc=/lib/libc-2.12.so, so=so, useshrplib=true, libperl=libperl.so
> gnulibc_version='2.12'
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
> ccdlflags='-Wl,--enable-new-dtags -Wl,-rpath,/usr/lib/perl5/CORE'
> cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
> -fasynchronous-unwind-tables -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
> Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
> PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
> USE_ITHREADS
> USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
> Built under linux
> Compiled at Sep 7 2010 12:15:21
> @INC:
> /usr/local/lib/perl5
> /usr/local/share/perl5
> /usr/lib/perl5
> /usr/share/perl5
> /usr/lib/perl5
> /usr/share/perl5
> /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
> /usr/local/lib/perl5/site_perl/5.10.0
> /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/site_perl
> .
> Output of perl -MExtUtils::Embed -e ldopts:
>
> -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib/perl5/CORE
> -fstack-protector -L/usr/local/lib -L/usr/lib/perl5/CORE -lperl
> -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
>
> Output of nginx -V:
>
> nginx version: nginx/0.8.52
> built by gcc 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC)
> TLS SNI support enabled
> configure arguments: --user=nginx --group=nginx
> --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx
> --conf-path=/etc/nginx/nginx.conf
> --error-log-path=/var/log/nginx/error.log
> --http-log-path=/var/log/nginx/access.log
> --http-client-body-temp-path=/var/lib/nginx/tmp/client_body
> --http-proxy-temp-path=/var/lib/nginx/tmp/proxy
> --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
> --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx
> --with-http_ssl_module --with-http_realip_module
> --with-http_addition_module --with-http_sub_module
> --with-http_dav_module --with-http_flv_module
> --with-http_gzip_static_module --with-http_stub_status_module
> --with-http_perl_module --with-mail --with-mail_ssl_module
> --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
> -mtune=atom -fasynchronous-unwind-tables'
> --add-module=/root/rpmbuild/BUILD/nginx-0.8.52/nginx-upstream-fair
>
> I'll try recompiling with the --with-ld-opts="-Wl,-E" in a couple of
> minutes.
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx

Re: nginx-0.8.52

Output of perl -V:

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

Platform:
osname=linux, osvers=2.6.32-44.el6.x86_64,
archname=i386-linux-thread-multi
uname='linux x86-16.phx2.fedoraproject.org 2.6.32-44.el6.x86_64 #1
smp wed jul 7 15:47:50 edt 2010 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -Dccdlflags=-Wl,--enable-new-dtags
-DDEBUGGING=-g -Dversion=5.10.1 -Dmyhostname=localhost
-Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dprefix=/usr
-Dvendorprefix=/usr -Dsiteprefix=/usr/local
-Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib/perl5
-Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5
-Darchlib=/usr/lib/perl5 -Dvendorarch=/usr/lib/perl5
-Dinc_version_list=5.10.0 -Darchname=i386-linux-thread-multi
-Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid
-Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005
-Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto
-Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto
-Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto
-Dscriptdir=/usr/bin
-Dotherlibdirs=/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi:/usr/local/lib/perl5/site_perl/5.10.0:/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi:/usr/lib/perl5/vendor_perl:/usr/lib/perl5/site_perl'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.4.4 20100630 (Red Hat 4.4.4-10)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.12.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.12'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags='-Wl,--enable-new-dtags -Wl,-rpath,/usr/lib/perl5/CORE'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Sep 7 2010 12:15:21
@INC:
/usr/local/lib/perl5
/usr/local/share/perl5
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl5
/usr/share/perl5
/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/site_perl
.
Output of perl -MExtUtils::Embed -e ldopts:

-Wl,--enable-new-dtags -Wl,-rpath,/usr/lib/perl5/CORE -fstack-protector
-L/usr/local/lib -L/usr/lib/perl5/CORE -lperl -lresolv -lnsl -ldl -lm
-lcrypt -lutil -lpthread -lc

Output of nginx -V:

nginx version: nginx/0.8.52
built by gcc 4.4.4 20100630 (Red Hat 4.4.4-10) (GCC)
TLS SNI support enabled
configure arguments: --user=nginx --group=nginx
--prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx
--with-http_ssl_module --with-http_realip_module
--with-http_addition_module --with-http_sub_module
--with-http_dav_module --with-http_flv_module
--with-http_gzip_static_module --with-http_stub_status_module
--with-http_perl_module --with-mail --with-mail_ssl_module
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables'
--add-module=/root/rpmbuild/BUILD/nginx-0.8.52/nginx-upstream-fair

I'll try recompiling with the --with-ld-opts="-Wl,-E" in a couple of
minutes.

--
omega13a
Owner and Founder of UFT
http://www.fedtrek.com

On 09/28/2010 10:05 AM, Maxim Dounin wrote:
> Hello!
>
> On Tue, Sep 28, 2010 at 12:43:55AM -0700, Brandon Amaro wrote:
>
>
>> On 09/28/2010 12:10 AM, Igor Sysoev wrote:
>>
>>> Changes with nginx 0.8.52 28 Sep 2010
>>>
>>> *) Bugfix: nginx used SSL mode for a listen socket if any listen option
>>> was set; the bug had appeared in 0.8.51.
>>>
>>>
>>>
>> The problem I had with 0.8.51 wasn't solved with 0.8.52. After
>> upgrading I get this message when ever I try to restart nginx:
>>
>> Starting nginx: Can't load '/usr/lib/perl5/auto/nginx/nginx.so' for
>> module nginx: /usr/lib/perl5/auto/nginx/nginx.so: undefined symbol:
>> ngx_http_core_module at /usr/lib/perl5/XSLoader.pm line 70.
>> at /usr/lib/perl5/nginx.pm<http://nginx.pm> line 54
>> Compilation failed in require.
>> BEGIN failed--compilation aborted.
>> [alert]: perl_parse() failed: 255
>>
> This looks like the problem with embedded perl you have enabled.
> For some reason it wasn't able to resolve symbol which should be
> defined in nginx itself.
>
> This may either indicate that your perl installation is somewhat
> screwed up (e.g. missed or out-of-sync something like "perl-dev"
> package as it's common on linux systems) or nginx doesn't play
> well enough while embedding perl.
>
> Could you please show what "perl -V" and "perl -MExtUtils::Embed -e ldopts"
> prints on your system? Showing "nginx -V" output is also good
> idea.
>
> I'm able to reproduce the problem by manually removing -Wl,-E from
> "perl -MExtUtils::Embed -e ldopts" output. Not sure though if
> it's ok for perl to don't report it on systems which generally
> need it. Anyway, you may try adding --with-ld-opts="-Wl,-E" to
> nginx configure to see if it helps.
>
>
>> Though this time it added something about the configuration file
>> test failing...<oO> I'm using Fedora Core 13 and had no problems
>> with nginx 0.8.50 .
>>
> Nothing related changed since 0.8.50. Most likely it's your system
> changes (e.g. perl upgrade) in-between caused the problem.
>
>
>> Here's the Source RPM I made for nginx 0.8.52: http://www.fedtrek.com:81/staff/omega13a/rpms/SRPMS/nginx-0.8.52-1.fc13.omega13a.src.rpm
>>
> I'm in doubt if anybody here will/may help you with your srpm.
> Reproducing the problem with normal configure/make by hand is
> always preferred.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx