@Alexander Ebert It still not working, this is the output from the Nginx test:
Code
array (
'USER' => 'web2',
'HOME' => '/var/www/clients/client1/web2',
'FCGI_ROLE' => 'RESPONDER',
'QUERY_STRING' => 'v=1',
'REQUEST_METHOD' => 'GET',
'CONTENT_TYPE' => '',
'CONTENT_LENGTH' => '',
'SCRIPT_FILENAME' => '/var/www/htf.be/web/test2.php',
'SCRIPT_NAME' => '/test2.php',
'REQUEST_URI' => '/test2.php/foo/bar.php?v=1',
'DOCUMENT_URI' => '/test2.php/foo/bar.php',
'DOCUMENT_ROOT' => '/var/www/htf.be/web',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_SOFTWARE' => 'nginx/1.6.2',
'REMOTE_ADDR' => '192.168.0.121',
'REMOTE_PORT' => '53804',
'SERVER_ADDR' => '192.168.0.100',
'SERVER_PORT' => '80',
'SERVER_NAME' => 'htf.be',
'REDIRECT_STATUS' => '200',
'HTTP_HOST' => 'htf.be',
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0',
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_LANGUAGE' => 'nl,en-US;q=0.7,en;q=0.3',
'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
'HTTP_COOKIE' => 'PHPSESSID=b7g1r7j3evok6h88g044u6inl7',
'HTTP_CONNECTION' => 'keep-alive',
'ORIG_SCRIPT_FILENAME' => '/var/www/htf.be/web/test2.php/foo/bar.php',
'PATH_TRANSLATED' => '/var/www/htf.be/web',
'PHP_SELF' => '/test2.php',
'REQUEST_TIME_FLOAT' => 1414666024.606817,
'REQUEST_TIME' => 1414666024,
)
Alles anzeigen
path_info fix is set to '1', if its '0' the shows a 403 forbidden for 'test2.php/foo/bar.php?v=1'
Current Vhost, corrected with your example:
Code
server {
listen *:80;
server_name htf.be *.htf.be;
root /var/www/htf.be/web;
index index.html index.htm index.php index.cgi index.pl index.xhtml;
error_page 400 /error/400.html;
error_page 401 /error/401.html;
error_page 403 /error/403.html;
error_page 404 /error/404.html;
error_page 405 /error/405.html;
error_page 500 /error/500.html;
error_page 502 /error/502.html;
error_page 503 /error/503.html;
recursive_error_pages on;
location = /error/400.html {
internal;
}
location = /error/401.html {
internal;
}
location = /error/403.html {
internal;
}
location = /error/404.html {
internal;
}
location = /error/405.html {
internal;
}
location = /error/500.html {
internal;
}
location = /error/502.html {
internal;
}
location = /error/503.html {
internal;
}
error_log /var/log/ispconfig/httpd/htf.be/error.log;
access_log /var/log/ispconfig/httpd/htf.be/access.log combined;
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
location / {
index index.php;
}
location ~ (?U)\.php(/.*$|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/lib/php5-fpm/web2.sock;
fastcgi_index index.php;
fastcgi_intercept_errors on;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location /stats/ {
index index.html index.php;
auth_basic "Members Only";
auth_basic_user_file /var/www/clients/client1/web2/web/stats/.htpasswd_stats;
}
location ^~ /awstats-icon {
alias /usr/share/awstats/icon;
}
}
Alles anzeigen