Hi, I have set up a website on Ubuntu 20.04,ISPConfig and NGINX server. The website home page is loading fine. But as soon as I try to open any webpage other than homepage, it shows 404 Not Found message. Due to this none of the pages are viewable other than the homepage. I installed perfect server using automated script Code: wget -O - https://get.ispconfig.org | sh -s -- --use-nginx --use-php=7.4,8.0 --use-ftp-ports=21-22 --lang=en --no-quota --unattended-upgrades Any idea how i can resolve this?
Most likely the cms that you installed needs additional Nginx rules, which CMS does the site uses? Your issue is neither related to the auto-installer nor ISPConfig. Unlike apache servers, which use .htaccess files that ship with most CMS systems, an Nginx server requires an additional rewrite config for most cms and shop system types. If you are not familiar with Nginx and its rewrite syntax and don't want to invest quite some time time to learn it, then you better stay with apache and do not use Nginx.
Thanks Till for the response. The site use Drupal 9 CMS. At first i thought the automated script get everything sorted out. But your response gave me a clue to deal with rewrite config. I've added the following in the options tab now the site works fine. Code: # Make sure files with the following extensions do not get loaded by nginx because nginx would display the source code, and these files can contain PASSWORDS! location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ { deny all; } # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac). location ~ /\. { deny all; access_log off; log_not_found off; } location / { try_files $uri $uri/ /index.php?$args; } location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ { expires max; log_not_found off; } Regards,