server block conflict
zuckbin
nginx-forum at nginx.us
Tue Mar 4 10:23:22 UTC 2014
hi,
got multiples server block for different domains, but it seem for
fastcgi_param PHP_VALUE; they are in conflict all together
here an exemple:
server{
server_name aaa;
...
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
server{
server_name bbb;
...
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
include disable_functions;
}
}
here content of disable_functions
fastcgi_param PHP_VALUE "disable_functions=allow_url_include,
allow_url_fopen, eval, base64_decode, php_uname, getmyuid, getmypid,
passthru, leak, listen, diskfreespace, tmpfile, link, ignore_user_abord,
shell_exec, dl, set_time_limit, exec, system, highlight_file, source,
show_source, fpaththru, virtual, proc_open, proc_close, proc_get_status,
proc_nice, proc_terminate, phpinfo,
pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
posix_ctermid, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid,
posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin,
posix_getpgid, posix_getpgrp, posix_getpid, posix_getppid, posix_getpwnam,
posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty,
posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid,
posix_setpgid, posix_setsid, posix_setuid, posix_times, posix_ttyname,
posix_uname";
the problem is on server aaa, it use disable functions; but i don't want
i had clear my cache, restart nginx.
don't know why server aaa user properties of server bbb
thanks for your help.
Bye
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248063,248063#msg-248063
More information about the nginx
mailing list