diff --git a/src/freedombone-utils-webadmin b/src/freedombone-utils-webadmin index 70eb0e06d9eb53d6cde0eeb317c18894f3a656d3..032bfaaa80d0f9bb7f12af728c0ce6481477f902 100755 --- a/src/freedombone-utils-webadmin +++ b/src/freedombone-utils-webadmin @@ -398,6 +398,11 @@ function install_web_admin { echo " root /var/www/${local_hostname}/htdocs;"; echo ' index index.html;'; echo " error_page 405 = \$uri;"; + echo ' location ~ \.php {'; + echo ' include snippets/fastcgi-php.conf;'; + echo ' fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;'; + echo ' fastcgi_read_timeout 30;'; + echo ' }'; echo ' }'; echo ''; echo ' location /icons {'; @@ -434,6 +439,11 @@ function install_web_admin { echo " root /var/www/${local_hostname}/htdocs;"; echo ' index index.html;'; echo " error_page 405 = \$uri;"; + echo ' location ~ \.php {'; + echo ' include snippets/fastcgi-php.conf;'; + echo ' fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;'; + echo ' fastcgi_read_timeout 30;'; + echo ' }'; echo ' }'; echo ''; echo ' location /icons {';