Tag: nginx
How do I change the port nginx uses?
by on Jun.16, 2011, under Server Maintenance
Hello,
I would like to change the port nginx uses to 8080 or something like that. how do I do this?
Thanks in advance!
How do i get rid on this “Welcome to nginx” screen when i go to my commonly used websites?
by on Dec.08, 2010, under Server Maintenance
Every time i go to any my most commonly used websites it says “Welcome to nginx”. I haven’t even ever heard of nginx until this started happening recently.
How do i get rid on this “Welcome to nginx” screen when i go to my commonly used websites?
Nginx Maillist: Re: reverse proxy cache design
by on Nov.08, 2010, under Server Maintenance
>can you make them all be active/active?
would like to make them active/active, but how? should i cascade two
nginx instances, the first as loadbalancer the second as reverse proxy.
how to configure direct server return in this situation?
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,147654,147864#msg-147864
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Nginx Maillist: quick start on writing a module?
by on Jun.17, 2010, under Server Maintenance
I’d like to convert an apache module I’ve written to work
under nginx. can somebody loan me a clue for getting started?
Background
———-
The logic is pretty simple:
1. based on the input URI, determine what file will be
sent. this will possibly involved a (cached) db lookup.
2a. set these headers:
Content-disposition:
ETag:
X-mod_asset-version: (my custom header)
2b. set mime type.
3. allow nginx to send the bytes of the file. Hopefully
it will handle these headers:
Last-Modified:
Content-Length:
Accept-Ranges:
Content-Range:
Content-Length:
Questions
———
For 2b, this is the proper way?
r->headers_out.content_type.len = sizeof(“image/gif”) – 1;
r->headers_out.content_type.data = (u_char *) “image/gif”;
is there a special way to malloc the .data so that it
will be freed automatically when the request is complete?
For 3, should I be using X-Accel-Redirect?
add_header(“X-Accel-Redirect: /protected/iso.img”);
If so, then I can simply set my headers and pass along to the next
phase?
Any simple example modules I can use as a starting point?
Many TIA!!
Mark
–
Mark Harrison
Pixar Animation Studios
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Installing Nginx on CentOS 5
by admin on Jan.25, 2009, under Server Maintenance
yum install pcre
yum install pcre-devel
yum install openssl-devel
yum install zlib
tar xzvf nginx-0.X.XX.tar.gz (get latest stable version)
yum install gcc
./configure –sbin-path=/sbin/nginx –conf-path=/usr/local/nginx/nginx.conf –pid-path=/usr/local/nginx/nginx.pid –with-http_ssl_module –with-md5=auto/lib/md5 –with-sha1=auto/lib/sha1
make
make install
This will get you off with a nginx server. Then, you have to configure your conf file and setup some start-up scripts, etc.