Show all posts by user
Introduce yourselves
Page 1 of 1 Pages: 1
Results 1 - 8 of 8
My config looks like this:
server {
location /favicon.ico {
include caching.conf;
}
location /resources/ {
include caching.conf;
}
location /robots.txt {
include caching.conf;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Connection "";
prox
by
johann
-
Ideas and Feature Requests
This location
location = /favicon.ico {
include caching.conf;
}
With this in caching.conf
location ~ \.(jpg|png|jar|js|xml|css|sha1|md5|txt|pom|ogg|gif|mp3|base64|ico|zip|gz|kmz|bz2|sdf|JPG|pdf|ods|mm|hta|flv|dsk)$ {
expires max;
}
Fails with
Testing nginx configuration: nginx: location "\.(jpg|png|jar|js|xml|css|sha1|md5|txt|pom|ogg|gif|mp3|base64|ico|z
by
johann
-
Ideas and Feature Requests
Don't know the answer to this but try setting the level of the error log to debug. This helped me many times.
by
johann
-
Migration from Other Servers
Not sure I got this right, but could it be there is no way to negate a regular expression in a location block?
For example, with lighttpd, this setup proxies everything except some URLs:
$HTTP["host"] == "foo.com" {
$HTTP["url"] !~ "^/(favicon\.ico$|resources/|robots\.txt)" {
proxy.server = ( "" =>
(
( "host" =>
by
johann
-
Ideas and Feature Requests
I'm running several Tomcat 7 instances. Proxying was fairly easy though HTTP/1.1 with persistent connection took a bit to get right (use the debug error log to find out).
Here's part of my configuration:
http {
upstream tomcat3 {
server 127.0.0.1:8081;
keepalive 1;
}
}
server {
listen [::]:81;
server_name fnuh.com;
root /var/www/$host;
location / {
pr
by
johann
-
Migration from Other Servers
Hello,
I run a couple of sites, including a fairly popular online converter site (ca. 15 TB traffic/month) and I'm now migrating from lighttpd to nginx on a new server that I'm setting up.
Migrating isn't so easy though, which is why I joined this forum. :-)
Looking forward to using nginx.
by
johann
-
New Member Introductions