Hallo,
leider komme ich mit den Hilfen im Forum auch nicht mehr weiter.
Ich habe die contao-manager.phar hochgeladen und in contao-manager.phar.php umbennant.
Wen ich diese nun aufrufen will, bekomme ich immer einen Error 404. Eine andere php-Datei (info.php) im selben Verzeichnis mit denselben Rechten wird ohne Probleme ausgeführt. Meine php-Version ist 5.6.
Anbei der Code der nginx-Konfiguration
Code:
server {
listen 80;
server_name test.domain.eu test.www.domain.eu;
root /var/www/enseve-www/www/test.domain.eu/web;
access_log /var/log/nginx/test.domain.eu_access.log;
error_log /var/log/nginx/test.domain.eu_error.log;
index app.php index.html index.htm index.php;
include global/contao4.conf;
location ~ ^/(app|app_dev|config|install|info|contao-manager\.phar)\.php(/|$) {
try_files $uri =404;
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm-enseve-www.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}
und die global/contao4.conf:
Code:
location / {
try_files $uri $uri/ /app.php?$uri&$args;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~* \.(tpl|html5|xhtml)$ {
deny all;
}
location ~ /\. {
deny all;
}
location ~* (/system/logs|/system/bin|/system/config) {
deny all;
}
Hat jemand eine Idee wo der Fehler liegt.
Viele Grüße Jens
Lesezeichen