• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved file not found for html + JS

WhiteTiger

Basic Pleskian
In the domain I've a Joomla website and it's working.
In its sub domain I an an old website built with a generator of htm pages and menus in javascript.
In local this is working, but called from the sub domain it replies "file not found".

I did not understand if there is any configuration of Plesk to manage for HTML websites or if the problem is another.

Thanks in advance for any advice.
 
Hi WhiteTiger,

each (sub)domain has it's own "Apache & nginx Settings", where you are able to setup the default "Index files". The standart settings are:
Code:
index index.html index.cgi index.pl index.php index.xhtml index.htm index.shtml
Pls. consider to adjust it to your unique custom content and pls. don't forget, that IF you use ".htaccess" - files as well, that with the webserver - combination "apache+nginx", you might need additional nginx directives. ;)
 
I've these settings for index files: index.htm index.html
About the additional nginx directives, I know only settings used for Wordpress.

Code:
if (!-e $request_filename){
   rewrite ^(.*)$ /index.php break;
}
# enable gzip compression
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain text/javascript application/javascript application/x-javascript text/xml text/css;
gzip_vary on;
# end gzip configuration
location ~* .(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
   expires max; log_not_found off;
}
 
Hi WhiteTiger,

your answer indicates, that you don't use additional ".htaccess" - files for your subdomain with the issues. In this case, pls. consider to post the corresponding apache + nginx log - files from the subdomain, in order to be able to investigate your issue(s)/error(s)/problem(s).
 
Back
Top