Welcome! Log In Create A New Profile

Advanced

Re: Newbie questions about nginx (moving from apache)

May 27, 2011 12:44PM
On Fri, May 27, 2011 at 12:19:47PM -0400, pk899 wrote:
> thanks for this. but before I try all this on a production server,
> couple questions:
>
> 1. if this works with NGINX on port 81, can this work in the future on
> port 80? So will nginx and apache both be on port 80? I doubt it but
> want to confirm.

Apache may listen on 127.0.0.1:80, while nginx may listen on *:80.

> 2. secondly, do you have a production-ready sample of how to set up for
> static serving? in apache for example, we set max-age, expires, gzip,
> cache-control etc for static files and this is very handy. i read the
> wiki manual for nginx and there's a lot of options in nginx too (quite
> impressive actually) but i would love to see a production recommended
> sample of commands.

location /static/ {
root ...
expires 30d;
gzip on;
gzip_static on;
}


--
Igor Sysoev

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

Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 04:14AM

Re: Newbie questions about nginx (moving from apache)

Igor Sysoev May 27, 2011 04:26AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 04:28AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 12:19PM

Re: Newbie questions about nginx (moving from apache)

Igor Sysoev May 27, 2011 04:36AM

Re: Newbie questions about nginx (moving from apache)

Igor Sysoev May 27, 2011 12:44PM

Re: Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 12:59PM

Re: Newbie questions about nginx (moving from apache)

pk899 May 27, 2011 11:54PM

Re: Newbie questions about nginx (moving from apache)

Thomas Love May 28, 2011 09:24AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 09:31AM

Re: Newbie questions about nginx (moving from apache)

Thomas Love May 28, 2011 09:58AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 10:28AM

Re: Newbie questions about nginx (moving from apache)

Thomas Love May 28, 2011 09:32AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 09:55AM

Re: Newbie questions about nginx (moving from apache)

Thomas Love May 28, 2011 10:06AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 10:18AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 28, 2011 10:20AM

Re: Newbie questions about nginx (moving from apache)

Maxim Dounin May 28, 2011 10:34AM

Re: Newbie questions about nginx (moving from apache)

pk899 May 29, 2011 01:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 312
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready