Press "Enter" to skip to content

Nginx configuration for php application

Sharing is caring!

Nginx is most used web server in web development.

To work with php and nginx, we need php-fpm.

PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites.

Linux and windows have their own way of installing these applications. But after you install it , you will need to configure it. So, after successful installation of both of these application, use the below snippet.

This little nginx configuration that works with laravel, WordPress or any other php web application. For single page application convert .php to html and remove lower location block.

Everything is awesome.

Be First to Comment

    Leave a Reply

    Your email address will not be published.