Tag Archives: nginx

nginx config for yii2 advanced

Questions: I am configuring nginx for a single domain yii2 app that has three subprojects: backend, frontend and api. I have managed to apply a github sample (provided below as configuration 1) for backend and frontend sub-projects, but i am having trouble getting the /api subproject running. I have tried the solution in https://stackoverflow.com/questions/43045477/nginx-config-for-multiple-yii2-advanced-project-locations-deploy-development amongst… Read More »

Failed to reload nginx.service: Interactive authentication required

Questions: I am working on project using symfony 3, the project run on nginx server and i am trying to reload the configuration files with the following command: “systemctl reload nginx” from the controller. /** * @Route(“/testReloadConfig”) */ public function testReloadConfigAction(Request $request){ $output = []; $result = null; $cmd = ‘systemctl reload nginx 2>&1’; exec($cmd,… Read More »

I can't configure multiple nginx server blocks

Questions: I recently installed nginx and php7.0 on my raspberry pi 3 (Raspbian Stretch) and I couldn’t configure the server configuration files. Here is information of nginx and php: $ sudo nginx -v nginx version: nginx/1.10.3 $ sudo php -v PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS ) Copyright (c) 1997-2017 The… Read More »