Show all posts by user
Introduce yourselves
Try
rewrite ^/(.*)$ /index.php?r=$1?$args last;
by
Jim Ohlstein
-
How to...
Great!
Once you are more comfortable you should think about having nginx serve all static content including html. Then you can strip down the number of modules that Apache loads so it consumes less memory, or (better yet in my opinion) use nginx's built in fastcgi support and eliminate Apache altogether.
by
Jim Ohlstein
-
How to...
Your listen directives appear to be different. That may or may not matter depending on the version you have (see http://nginx.net/CHANGES bugfix for 0.7.51). Otherwise I'm stumped.
by
Jim Ohlstein
-
How to...
That is very odd. Are the two domains on the same IP?
by
Jim Ohlstein
-
How to...
I don't think (not sure) that the requests can be buffered. But if you are using tcp sockets, make sure that /proc/sys/net/ipv4/tcp_tw_recycle is set to 1. That may free up additional connections. You may be able to reduce the TIME_WAIT as well. You'd have to check your OS documentation.
by
Jim Ohlstein
-
How to...
Try adding "Host" header to each server config.
server {
listen 80;
server_name www.domain1.com;
# Main location
location / {
proxy_pass http://127.0.0.1:81/;
proxy_redirect off;
proxy_set_header Host $host;
}
# Static files location
location ~* \.(js|css|ico|jpg|jpeg|gif)$ {
by
Jim Ohlstein
-
How to...
If it works that's what counts.
Welcome to the club. :)
by
Jim Ohlstein
-
How to...
I'm not an expert, but try setting:
location / {
proxy_pass http://127.0.0.1:8000;
...
keepalive_timeout 0 0;
}
where http://127.0.0.1:8000 is the address:port of your erlang web server.
Nginx defaults to keep_alive of 75 seconds.
If that doesn't work, try adding:
add_header Connection close;
by
Jim Ohlstein
-
How to...
Can you post your nginx config file(s) please?
by
Jim Ohlstein
-
How to...
Igor Sysoev wrote:
> On Wed, May 13, 2009 at 10:59:13AM -0400, Jim Ohlstein wrote:
>
>
>> Igor Sysoev Wrote:
>> -------------------------------------------------------
>>
>>> On Wed, May 13, 2009 at 12:06:33AM -0400, Jim
>>> Ohlstein wrote:
>>>
>>>
>>>> Igor Sysoev Wrote:
>>>>
>>
by
Jim Ohlstein
-
Nginx Mailing List - English
Igor Sysoev Wrote:
-------------------------------------------------------
> On Wed, May 13, 2009 at 12:06:33AM -0400, Jim
> Ohlstein wrote:
>
> > Igor Sysoev Wrote:
> >
> --------------------------------------------------
> -----
> > > On Sat, May 09, 2009 at 03:02:53PM -0400, Jim
> > > Ohlstein wrote:
> > >
> > > > I
by
Jim Ohlstein
-
Nginx Mailing List - English
Igor Sysoev Wrote:
-------------------------------------------------------
> On Sat, May 09, 2009 at 03:02:53PM -0400, Jim
> Ohlstein wrote:
>
> > Is there any way to set the it just to cache
> image and other media files, but not text/html? I
> only see based on response in the Russian docs
> (best as I can understand). Is that something that
> can be added or
by
Jim Ohlstein
-
Nginx Mailing List - English
坏人 Wrote:
-------------------------------------------------------
> Jérôme Loyet Wrote:
> --------------------------------------------------
> -----
> > this is an ENGLISH mailing list. Please use
> > english so that everybody
> > here can understand what you want to say !!!
> >
> > ++ Jerome
> >
> > 2009/5/12 "
>
>
by
Jim Ohlstein
-
Nginx Mailing List - English
I understand that you want to help others. However, the "lingua franca" of the list is English and most of your efforts will not be understood. Since you are posting at the forum, I am happy to set up a Chinese language forum if there is a demand, however it will not be integrated with the mailing list.
Please take *that* discussion to the "Site Suggestions" forum and off th
by
Jim Ohlstein
-
Nginx Mailing List - English
I understand that it is in the sample config file. But you were worried about hosts being "at risk". I'm still not sure what you meant.
Nginx is not Apache and there are things that are done differently.
What many people do is to create a file and add a line to include it in every server block. In it you can have whatever you think needs to be in *every* virtual host and then one
by
Jim Ohlstein
-
How to...
No.
But what risk is there? You won't be using .htaccess files with nginx so there is no need to have them.
by
Jim Ohlstein
-
How to...
Igor,
Is there any way to set the it just to cache image and other media files, but not text/html? I only see based on response in the Russian docs (best as I can understand). Is that something that can be added or is planned?
by
Jim Ohlstein
-
Nginx Mailing List - English
That doesn't make any sense.
Maybe try turning off your backend for a moment and confirm that 80 is free with
# lsof -an | grep 80
Then start nginx and rerun the command and see if nginx has grabbed it?
by
Jim Ohlstein
-
How to...
Do you have something in /etc/nginx/sites-enabled/* that's trying to grab 80?
by
Jim Ohlstein
-
How to...
I'm not an expert by any means but you can try:
loctation /forums {
rewrite ^/forums$ /index.php last;
rewrite ^/forums/$ /index.php last;
rewrite "/forums/([-_a-zA-Z0-9]{3,30})$" /forums/$1/ last;
rewrite "/forums/([-_a-zA-Z0-9]{3,30})/(.*)$" /phpBB3/$2?access_name=$1 last;
}
It's possible someone on the phpBB boards has solved this. I
by
Jim Ohlstein
-
Migration from Other Servers
Nickolas Daskalou Wrote:
-------------------------------------------------------
> Nice zipcode and phone number too. Could be
> someone pretending to be
> Andrei/y and waiting to make millions off its sale
> when PHP-FPM takes over
> the world.
Could be. Too bad that the domain where php-fpm main page is at has the same registrant at the same address and the same DNS serve
by
Jim Ohlstein
-
Php-fpm Mailing List - English
I think what people were unhappy with was not your "vote" but your
statement that "If you are using nginx on Windows, then you are an
idiot. Go away and
use apache or IIS".
You should grow up.
That said, I agree, this has run its course.
Resi Cow wrote:
> Ha ha, you guys are so serious. Calm down.
>
> First, Igor doesn't have to listen to me, not did I
by
Jim Ohlstein
-
Nginx Mailing List - English
My goodness. I agree, this was a legitimate question/statement on Mike's part. I'll admit I am surprised. I use Windows on my desktop machine to run some native Windows apps for my business. I also run Linux on the same box for lots of other things. My laptop is a MacBook Pro. All of my servers run Linux. It works best for my purposes at this time. If I were to start over I might use FreeBSD but t
by
Jim Ohlstein
-
Nginx Mailing List - English
I hadn't seen the Wiki before either.
domain: php-fpm.com
reg_created: 2009-01-14 08:05:09
expires: 2010-01-14 08:05:09
created: 2009-01-14 09:05:10
changed: 2009-01-14 18:14:36
transfer-prohibited: yes
ns0: a.dns.gandi.net
ns1: b.dns.gandi.net
ns2: c.dns.gandi.net
owner-c:
nic-hdl: AN721-GANDI
owner-name: Andrey Nigmatulin
organisation: ~
person: Andrey Nigmatulin
a
by
Jim Ohlstein
-
Php-fpm Mailing List - English
Igor Sysoev wrote:
> On Mon, May 04, 2009 at 03:55:36PM +0000, Jim Ohlstein wrote:
>
>
>> Hits self in head and says "Dumkopf!".
>>
>> I always use default location.
>>
>> Does that explain why make install failed?
>>
>
> What do you mean by failed ? If this:
>
> # cp objs/nginx /usr/local/sbin
> cp: over
by
Jim Ohlstein
-
Nginx Mailing List - English
Hits self in head and says "Dumkopf!".
I always use default location.
Does that explain why make install failed?
------Original Message------
From: Igor Sysoev
Sender: owner-nginx@sysoev.ru
To: nginx@sysoev.ru
ReplyTo: nginx@sysoev.ru
Subject: Re: --conf-path does not work
Sent: May 4, 2009 11:40 AM
On Mon, May 04, 2009 at 11:30:12AM -0400, Jim Ohlstein wrote:
>
by
Jim Ohlstein
-
Nginx Mailing List - English
陈昌茂 Wrote:
-------------------------------------------------------
> nginx-0.6.36
>
> Linux test 2.6.18-53.el5 #1 SMP Wed Oct 10
> 16:34:19 EDT 2007 x86_64 x86_64
> x86_64 GNU/Linux
>
> Thanks.
>
> 2009/5/4 Jim Ohlstein
>
> >
> > ./configure --conf-path=PATH
> >> does not work
> >>
> >
> > I'm sure
by
Jim Ohlstein
-
Nginx Mailing List - English
Michael Shadle wrote:
> On Sun, May 3, 2009 at 5:06 PM, Mathew Davies
> <thepixeldeveloper@googlemail.com> wrote:
>
>
>> location ~ \.php$
>> {
>> fastcgi_pass 127.0.0.1:9000;
>> fastcgi_index index.php;
>> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
>> include fastcgi_params;
>> }
>> }
>>
by
Jim Ohlstein
-
Nginx Mailing List - English