NGINX subdomain template problem

Bug #1283102 reported by hayrettin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Easy Hosting Control Panel for Ubuntu
New
Undecided
Unassigned

Bug Description

As of EHCP 0.30.9:

On nginx new subdomain template in server section and php subsection the template like

   location ~ .php$ {
  fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME {homedir}$fastcgi_script_name;
                fastcgi_param PHP_ADMIN_VALUE "open_basedir={homedir}:/tmp:/usr/share/php:/usr/share/pear";
                include fastcgi_params;
        }

Due to this configuration it is not working. The corrected version which worked for me like this:

location ~ \.php$ {
               root {homedir};
        try_files $uri = 404;
        fastcgi_pass 127.0.0.1:9000;
               fastcgi_index index.php;
               fastcgi_param SCRIPT_FILENAME {homedir}$fastcgi_script_name;
               fastcgi_param PHP_ADMIN_VALUE "open_basedir={homedir}:/tmp:/usr/share/php:/usr/share/pear";
               include fastcgi_params;
       fastcgi_read_timeout 300;
        }

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.