• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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