Server environment settings
WEB server
apache
No input file specified error on Godaddy virtual host
resolvent
cgi.fix_pathinfo = 1
nginx
Unable to log in to the background, "405, method not allowed"
resolvent
Unable to log in to the background, click the foreground link or "404, not found"
resolvent
location ~ .*\.php$
location ~ .*\.php(\/.*)*$
set $path_info ""; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { set $real_script_name $1; set $path_info $2; } fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param SCRIPT_NAME $real_script_name; fastcgi_param PATH_INFO $path_info;
cgi.fix_pathinfo = 1
Unable to realize pseudo static, failed to set in the background
resolvent
server { listen 80; server_name yourdomain.com; root /home/yourdomain/www/; index index.html index.htm index.php; if (!- e $request_filename) { rewrite ^(.*)$ /index.php$1 last; } location ~ .*\.php(\/.*)*$ { include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; } access_log logs/yourdomain.log combined; }
caddy
yoursite.com { tls [email protected] root /home/wwwroot/yoursite.com gzip fastcgi / 127.0.0.1:9000 php rewrite / { if {path} not_match (/usr/|/admin/) to /index.php{uri} } }