Skip to content

Tag: nginx

I installed ionCube but it is not working yet

I have a Ubuntu server 22.04 and I have installed PHP 8.1.2 fpm, MySQL 8, and nginx After I installed WordPress and active a new theme (Harika) then I get this error: Then I installed the ionCube from the ionCube wizard and now it is installed on my server: But it is not working and when I browse my wordpress

NginX: catch all file outside of root dir, with exceptions

I’m building a site running NginX / PHP and want all access to be processed by /private/routes.php. But I also want to add some exceptions to this for css/js-files and the odd php file in the public directory (and sub dirs). Folder / file structure: My current NginX config: The above config works but ha…

How can I put multiple paths into the same domain in nginx?

I want to connect domain.com/c to /var/www/a/c and domain.com/b to /var/www/b. And I wrote nginx sites-available file like following: But I see 404 when I enter domain.com/b. I tried using alias instead of root but I got the same result. How can I do? Answer It is because your location ~ .php$ { … } use…

NGINX/FastCGI config issues causing 404s

I’m currently trying to configure a WordPress Multisite using NGINX. The NGINX config test passes: But I simply get a File Not Found. page when I load the site. From my config: And from my nginx error.log: My docroot is /var/www/html and the logs seem to show requests are being sent to the right place: …