• 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 404 Server Error on slugs

Martin_2352

New Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.62 Update Nr. 2
Hallo,

I updated a plesk installation with about 20 Websites (joomla 3.9 / wordpress) from Ubuntu 18.04 to 22.04.

Unfortunately I get an error 404 on slugs of every website. The websites are partly an old joomla 3.9 but also current wordpress versions.
Only a freshly added website works fine. I tried the
Code:
plesk repair
command, but it didn't help.

An example in the logs is:

Code:
2097909#0: *25107 open() "/var/www/vhosts/URL/websites/URL/slug" failed (2: No such file or directory)                nginx-Fehler

Do you know how I can fix this? I don't think there is any data missing as the error message indicates because a full backup restore was performed.

Thanks!
 
From what I understand, the issue occurs only on the internal pages. Please try adding an .htaccess file for WordPress-based websites following this guide. If that sorts the issue, you can find the default .htaccess rule for Joomla here.
 
Yes it only occours on internal pages, the index page works fine.
I tried both guides but unfortunately it didn't help. The content of the .htaccess in the WP guide was already present in the .htaccess file of the website. I also replaced the entire content but it didn't help.
 
Waaait ... that's an nginx error. htaccess won't help there because nginx doesn't touch htaccess.
Were those websites mistakenly set to nginx only instead of nginx proxy to apache?
 
Waaait ... that's an nginx error. htaccess won't help there because nginx doesn't touch htaccess.
Were those websites mistakenly set to nginx only instead of nginx proxy to apache?
I had to disable the nginx "proxy mode" in "Apache and nginx" or I got a
Code:
Server Error 502 Bad Gateway
on the index page
 
If I turn off custom error documents and activate proxy mode, I get "502 Bad Gateway nginx" (?)
If I then activate proxy mode again and click on slugs, I get "404 Not Found nginx"

The link solved the issue both for joomla and wordpress!

Thank you very much!
 
You're welcome!

It's not directly a Plesk issue per say but they could add better support/documentation for handling CMS platforms on Nginx-only scenarios which would shortcut the aggravation that you went through.

Sebahat's solution would work if requests were proxied to Apache while Mow astutely observed that this was a Nginux-only configuration which requires some additional steps to get WordPress/Joomla working.
 
Back
Top