• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue After migration tool using for nodejs server

ergunaksoy

New Pleskian
Server operating system version
Debian 11
Plesk version and microupdate number
latest
After I migrated my nodejs server with migration tool of plesk, it gives this error :


AH01276: Cannot serve directory /var/www/vhosts/domain.com/httpdocs/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.shtml) found, and server-generated directory index forbidden by Options directive

Node.js is installed, and in the previous plesk host, node.js web was running successfully, what could be a problem here?
 
Hello first,
Understanding the Error:

  • An Apache Web server could not find a suitable file to serve as the default page in this directory.
  • It's not finding any files with the extensions listed (index.html, index. cgi, etc.)
  • It is also prevented from automatically generating a directory list by the configuration.
Troubleshooting Steps:

  1. Review Server Configuration:
  • DirectoryIndex directive: Ensure index.js is included in the DirectoryIndex directive for your domain's configuration, usually found in Apache virtual host files (/etc/apache2/sites-enabled/*.conf). Add index.js if missing.
  • Options directive: Check for Options -Indexes or similar directives that might be preventing directory listings. If necessary, remove or modify them.
  1. Verify Node.js Application Structure:
    • Confirm that index.js is present in the /var/www/vhosts/domain.com/httpdocs/ directory.
    • Ensure the file is readable by the web server user (usually www-data or apache).
    • If your application uses a different entry point file, adjust the DirectoryIndex directive accordingly.
  2. Check Node.js Handler Configuration:
    • Ensure the Node.js handler is properly assigned in Plesk for your domain.
    • Review the handler configuration to verify it points to the correct Node.js application file or directory.
  3. Test Node.js Functionality:
    • Try accessing a specific Node.js route (e.g., domain.com/test-route) to isolate whether the issue is with the default index file or Node.js itself.
    • If routes work but the index file doesn't double-check the index file path and permissions.
Hope this is helpful.
 
Back
Top