Subversion Repositories oidplus

Rev

Rev 948 | Blame | Compare with Previous | Last modification | View Log | RSS feed


# To enable this configuration file in NGINX, you
# need to include this file in your master configuration file
# using the "include" command. You probably need
# to change "root" lines.

# /etc/nginx/nginx.conf
# .....
# http {
#       .....
#       server {
#               .....
#               include /var/www/html/oidplus/nginx.conf;
#       }
#       .....
# }
# .....

# When you are done, please verify that the file
# http://...../includes/edition.ini can't be
# read using your web browser.
# You should see the HTTP 403 error message.

# ---

# If you get HTTP error "502 Bad Gateway" with NGINX, or the error log message
# "upstream sent too big header while reading response header from upstream",
# then the following settings might solve the problem:

proxy_intercept_errors on;
fastcgi_buffers        16  16k;
fastcgi_buffer_size        32k;
proxy_buffer_size         128k;
proxy_buffers           4 256k;
proxy_busy_buffers_size   256k;

# HTTP 404 redirect

location ~ {
        try_files $uri $uri/ /index.php?h404=$uri&$args;
}

# Folder restrictions

location /userdata/ {
        root html;  # <-- You probably need to adjust this
        deny all;
}

location /res/ {
        root html;  # <-- You probably need to adjust this
        deny all;
}

location /dev/ {
        root html;  # <-- You probably need to adjust this
        deny all;
}

location /includes/ {
        root html;  # <-- You probably need to adjust this
        deny all;
}

location /setup/includes/ {
        root html;  # <-- You probably need to adjust this
        deny all;
}

location /plugins/viathinksoft/publicPages/100_whois/whois/cli/ {
        root html;  # <-- You probably need to adjust this
        deny all;
}