| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung |
| server:nginx [2010/10/09 10:59] – swordfish | server:nginx [2025/01/25 16:56] (aktuell) – Externe Bearbeitung 127.0.0.1 |
|---|
| <code bash> | <code bash> |
| cd /opt | cd /opt |
| wget http://nginx.org/download/nginx-0.8.52.tar.gz | wget http://nginx.org/download/nginx-1.0.5.tar.gz |
| tar xzf nginx-0.8.52.tar.gz | tar xzf nginx-1.0.5.tar.gz |
| cd nginx-0.8.52 | cd nginx-1.0.5 |
| </code> | </code> |
| |
| wget http://wiki.nginx.org/images/1/11/Nginx_upstream_hash-0.3.1.tar.gz | wget http://wiki.nginx.org/images/1/11/Nginx_upstream_hash-0.3.1.tar.gz |
| tar xzf Nginx_upstream_hash-0.3.1.tar.gz | tar xzf Nginx_upstream_hash-0.3.1.tar.gz |
| patch -p0 < /opt/nginx-0.8.52/nginx_upstream_hash-0.3.1/nginx.patch | patch -p0 < /opt/nginx-1.0.5/nginx_upstream_hash-0.3.1/nginx.patch |
| </code> | </code> |
| |
| Configure: | Configure: |
| | |
| | Default: |
| | <code bash> |
| | ./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_stub_status_module --with-poll_module |
| | </code> |
| | |
| | SSL: |
| | <code bash> |
| | ./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_stub_status_module --with-poll_module --with-http_ssl_module |
| | </code> |
| |
| Loki: | Loki: |
| <code bash> | <code bash> |
| ./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --add-module=/opt/nginx-0.8.52/nginx_upstream_hash-0.3.1 --with-http_stub_status_module --with-http_realip_module --with-poll_module --with-http_ssl_module --with-http_geoip_module | ./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --add-module=/opt/nginx-1.0.5/nginx_upstream_hash-0.3.1 --with-http_stub_status_module --with-http_realip_module --with-poll_module --with-http_ssl_module --with-http_geoip_module |
| </code> | </code> |
| |
| Magni: | Magni: |
| <code bash> | <code bash> |
| ./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --add-module=/opt/nginx-0.8.52/nginx_upstream_hash-0.3.1 --with-poll_module --with-http_ssl_module --with-http_stub_status_module | ./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --add-module=/opt/nginx-0.8.53/nginx_upstream_hash-0.3.1 --with-poll_module --with-http_ssl_module --with-http_stub_status_module |
| </code> | </code> |
| |
| <code bash> | <code bash> |
| ./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_stub_status_module --with-http_realip_module --with-poll_module --with-http_ssl_module --with-http_geoip_module | ./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_stub_status_module --with-http_realip_module --with-poll_module --with-http_ssl_module --with-http_geoip_module |
| </code> | |
| |
| Test: | |
| <code bash> | |
| ./configure --prefix=/usr --user=www-data --group=www-data --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client-body --http-proxy-temp-path=/var/cache/nginx/proxy --http-fastcgi-temp-path=/var/cache/nginx/fastcgi --with-http_stub_status_module --with-poll_module | |
| </code> | </code> |
| |
| mkdir /var/cache/nginx/ | mkdir /var/cache/nginx/ |
| </code> | </code> |
| | |
| | {{:server:nginx.init|}} |