Hello! ISPConfig Version: 3.2.11p1 installed (with Nginx). We installed Joomla 5. In Administartor area everything works fine. But all links from Homepage lead to 404 Error (Links: Create an account, Forgot your password?, etc.) If I create a new article in Joomla I can see the link on the Homepage, but it also leads to 404 (The requested URL was not found on this server.) That's what I see in error log: "/var/www/joomla5.demo.example.com/web/index.php/component/users/registration" failed (20: Not a directory) Any suggestions how to solve this? Thank you.
You must add Nginx directives for Joomla in the Nginx directives field of the website. Nginx does not support the Apache .htaccess files, so you must add the necessary config in Nginx syntax for the site. If you are not familiar with Nginx, you might have better used the Apache web server, which is easier to use and more beginner-friendly.
Thank you very much! You were right. I replaced this auto-generated by ISPConfig Nginx snippet: location ~ \.php$ { try_files /a0d4078b99f8f06626f802aa5da76f4a.htm @php; } location @php { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/lib/php7.4-fpm/web2.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_intercept_errors on; } to this: location / { try_files $uri $uri/ /index.php?$args; } location ~ .php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/lib/php7.4-fpm/web2.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } And not 404 error has gone. Links work as expected. Have a good day.
I hope you did not edit the nginx config file manually, as your manual change will get reverted. never edit the files manually, as stated in my post above, use the Nginx directives field of the website. Try adding just this to the nginx directives field: Code: location / { try_files $uri $uri/ /index.php?$args; } If you want to add different FastCGI parents in addition to the ones already included, use the ##merge## directive. You can find examples in the forum and in the ISPconfig manual.
Thank you very much for your help! I confirm - it worked. Added to Options -> nginx Directives Code: location / { try_files $uri $uri/ /index.php?$args; }