Ubuntu 16.04 通过引用this和this 进行设置。
我可以在 上看到欢迎使用 CI 页面http://x.x.x.x/index.php,但是当我添加测试控制器并转到http://x.x.x.x/index.php/test404 时我收到了 404 响应。我也没有使用域,而只是使用 IP。
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 2;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# …Run Code Online (Sandbox Code Playgroud)