Urtech.id

Learning By Doing


Configure Different User Per Virtual Host on Nginx

For security reasons, you shouldn’t run all your NGINX virtual hosts with the same user. If you run all your websites with the same user ( www-data or nginx ), a PHP call to " system() / passthru() / exec() " will have access to all websites! Nginx will not protect you against this. PHP is just an example, but any popular web-server language has similar calls. As a hacker, you can “ls ..” to navigate through all websites and “cp / echo / mv ” to write your own code in any fi...

Tito Santana

Solving Nginx: 413 – Request Entity Too Large Error and Solution

The error “413 – Request Entity Too Large” indicates that web server configured to restrict large file size. Nginx can be set to allow the maximum size of the client request body using client_max_body_size directive. If the size of a request exceeds the configured value, the 413 (Request Entity Too Large) error returned to the client.You need to configure both nginx and php to allow upload size.1. Nginx ConfigurationTo fix this issue edit your nginx.conf. Open the Terminal or login ...

Tito Santana