Does anyone have Nginx up and running? If so, could you please post your /etc/nginx/nginx.conf and /etc/php.ini?
Unfortunately, the Nginx OpenWrt wiki is either incomplete or something vital to the config has changed between AA and DD.
Currently, I'm getting the output of /www/cgi-bin/luci when I navigate to the WebGUI:
#!/usr/bin/lua require "luci.cacheloader" require "luci.sgi.cgi" luci.dispatcher.indexcache = "/tmp/luci-indexcache" luci.sgi.cgi.run()
I am able to utilize uhttpd to access the WebGUI [uhttpd utilizes 443, Nginx 8443], and I'm leaning towards a cgi option missing from the Nginx config, but as to what that might be, I'm not certain.
nginx.conf
No errors are contained within error.log, so Nginx is up and running without issue.
user nobody nogroup;
error_log /var/log/nginx/error.log;
worker_processes 2;
events { worker_connections 1024; }
http {
include mime.types;
index index.php index.html index.htm;
default_type text/html;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
ssl_protocols TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:!aNULL:!eNULL:!EXPORT:!LOW:!DES:!MD5:!PSK:!RC4:!3DES:!EXP:!SRP:!DSS;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 30m;
ssl_prefer_server_ciphers on;
server {
listen 8080;
server_name 192.168.200.60;
return 301 https://$server_name$request_uri;
add_header X-Frame-Options "SAMEORIGIN";
}
server {
listen 8443 ssl;
server_name 192.168.200.60;
root /www;
ssl_dhparam dhparam.pem;
ssl_certificate nginx.crt;
ssl_certificate_key nginx.key;
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload;";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 32k;
fastcgi_buffers 4 32k;
client_body_timeout 10;
client_header_timeout 10;
send_timeout 60;
output_buffers 1 32k;
postpone_output 1460;
fastcgi_busy_buffers_size 32k;
fastcgi_temp_file_write_size 32k;
location ~ \.php$ {
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS on;
fastcgi_param modHeadersAvailable true;
if (-f $request_filename) {
fastcgi_pass 127.0.0.1:1026;
}
}
location ~* \.(?:css|js)$ {
try_files $uri /index.php$uri$is_args$args;
add_header Cache-Control "public, max-age=7200";
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload;";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
}
}
}
php.ini
[PHP]
zend.ze1_compatibility_mode = Off
engine = On
precision = 12
y2k_compliance = On
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 100
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 8M
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = "EGPCS"
request_order = "GP"
register_globals = Off
register_long_arrays = Off
register_argc_argv = On
auto_globals_jit = On
post_max_size = 8M
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root = "/www"
user_dir =
extension_dir = "/usr/lib/php"
enable_dl = On
cgi.force_redirect = 1
cgi.redirect_status_env = "yes"
cgi.fix_pathinfo = 1
fastcgi.logging = 1
file_uploads = On
upload_tmp_dir = "/tmp"
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
extension = ctype.so
extension = curl.so
;extension = dom.so
;extension = exif.so
;extension = ftp.so
extension = gd.so
;extension = gmp.so
;extension = hash.so
;extension = iconv.so
;extension = json.so
;extension = ldap.so
extension = mbstring.so
extension = mcrypt.so
;extension = mysql.so
extension = openssl.so
;extension = pcre.so
extension = pdo.so
;extension = pdo-mysql.so
;extension = pdo-pgsql.so
;extension = pdo_sqlite.so
;extension = pgsql.so
extension = session.so
;extension = soap.so
extension = sockets.so
;extension = sqlite.so
;extension = sqlite3.so
extension = tokenizer.so
extension = xml.so
;extension = xmlreader.so
;extension = xmlwriter.so
[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 4M
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket =
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[Session]
session.save_handler = files
session.save_path = "/tmp"
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = On
session.bug_compat_warn = On
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 4
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
[soap]
soap.wsdl_cache_enabled = 1
soap.wsdl_cache_dir = "/tmp"
soap.wsdl_cache_ttl = 86400
soap.wsdl_cache_limit = 5
[ldap]
ldap.max_links = -1
[opcache]
opcache.max_accelerated_files = 200
opcache.enable_cli = 1
opcache.enable = 1
(Last edited by JW0914 on 21 Jun 2016, 21:20)