Skip to content
Advertisement

Tag: nginx

How redirect from /file.php to /file on nginx?

I’m currently hiding the .php extension from the urls on my nginx server with this configuration: This is working perfectly, but how can I make nginx not allow adding the .php extension?. In my example if you manually delete the .php it works but if you add it it remains permanent in the url. Answer To redirect those requests permanently

how to setup a single nginx server with multiple php-fpm docker containers

Nginx is running on my server (not a docker image) to proxy the subdomain requests to my docker containers. Having an additional nginx container for each image works well as follows: docker-compose.yml site.conf /etc/nginx/sites-available/dev.domain.co.uk But seems wasteful to have an additional instance of nginx for each php site. How can I route the server instance of nginx directly to each

How to run PHP files properly on Ubuntu with Nginx?

I have “php” folder and also phpmyadmin folder in /var/www/html direction, and when I’m trying to open localhost/phpmyadmin/index.php or localhost/php/index.php in browser, I get the following error: and also browser suggests me to download file. I installed mysql, php 7.4, nginx and phpmyadmin aswell, have no idea why it isn’t working. I use Lubuntu distribution. I guess it’s obvios, but

Laravel routes causing 404 Error on live server

I have a laravel app developed on my localhost and working perfectly. I am trying to deploy it onto an AWS Lightsail instance using nginx on Ubuntu 20.04. I have uploaded my laravel app and changed the nginx root directory to laravelapp/public. The main index page (landing page) is working fine but none of my routes are working (i.e. /login,

Why the session destroyed every page load in mobile browsers?

My problem is that I have a website and when I refresh the a page, the session get destroyed. This means I lost my cart, my wishlist, etc… It happens in Safari and Firefox too, but on my PC the session stays there. This is not an incognito tab/window, I not deleting my cookies and/or session data between refreshes and

Advertisement