• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Enable Directory Index on Plesk 12 update 22

BTW, you can add in "Web Server Settings" of your domain in Plesk UI.
 
Hi! I am not sure, if I am right here.
PLESK 12.0.8.#23. When browsing a site www.site.com/index.php, the browser always downloads the file "index.php" instead of opening it in the browser. I thought that has to do with the DirectoryIndex entry. So I went to the domain menue and under my domain web server settings section index files I added index.html and index.php. Also restarted the apache deamon. But it does not work.

Anybody any ideas?

Many thanks for your help and suggestions!
 
Hi Alexander_Voelger,

no, you are not right ( in this thread ^^ ).

I suppose that you use NGINX and php5-fpm as well? Because this issue is mostly caused by some missing definitions in your location setting ( nginx ), or because your FastCGI ( php5-fpm ) process isn't up ( or wrong configured ) for that domain.

In order to add some additional nginx directions, you can always try the setting:

location ~ /$ {
index index.html index.htm index.php index.cgi index.xhtml index.shtml index.pl;
try_files $uri $uri/ /index.php?$args;
}

and/or as well:

if (!-e $request_filename) {
rewrite (.*) /index.php last;
}

Please make sure, that the setting:

include fastcgi_params;

is existent in your nginx.conf for that domain ( /var/www/vhosts/system/DOMAIN_OR_SUBDOMAIN.COM/conf )


Here is an often used example for your additional "vhost_nginx.conf" ( you can set this over the Plesk Control Panel as well, in your "webserver settings" - "Additional nginx settings" for a domain )

HTML:
    location ~ .php$ {
        fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
        fastcgi_index index.php;
        try_files $uri $uri/ /index.php?$args;
        fastcgi_pass "unix:/var/www/vhosts/system/DOMAIN_OR_SUBDOMAIN.COM/php-fpm.sock";
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        include /etc/nginx/fastcgi_params;
    }
 
Back
Top