Skip to content
Snippets Groups Projects
Commit 80a97644 authored by Bob Mottram's avatar Bob Mottram
Browse files

Home directory in webadmin

parent 252d84e0
No related branches found
No related tags found
No related merge requests found
......@@ -1952,6 +1952,18 @@ function install_web_admin {
echo ' }';
echo ' }';
echo '';
echo ' location ^~ /home {';
echo ' client_max_body_size 200m;';
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/php${PHP_VERSION}-fpm.sock;";
echo ' fastcgi_read_timeout 30;';
echo ' }';
echo ' }';
echo '';
echo ' location ^~ /search {';
echo ' fastcgi_buffers 64 4K;';
echo ' port_in_redirect off;';
......@@ -2019,6 +2031,18 @@ function install_web_admin {
echo ' }';
echo ' }';
echo '';
echo ' location ^~ /home {';
echo ' client_max_body_size 200m;';
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/php${PHP_VERSION}-fpm.sock;";
echo ' fastcgi_read_timeout 30;';
echo ' }';
echo ' }';
echo '';
echo ' location ^~ /search {';
echo ' fastcgi_buffers 64 4K;';
echo ' port_in_redirect off;';
......@@ -2100,6 +2124,17 @@ function install_web_admin {
echo ' fastcgi_read_timeout 30;';
echo ' }';
echo ' }';
echo ' location ^~ /home {';
echo ' client_max_body_size 200m;';
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/php${PHP_VERSION}-fpm.sock;";
echo ' fastcgi_read_timeout 30;';
echo ' }';
echo ' }';
echo '}'; } >> "$nginx_file"
if [ ! -f "/etc/ssl/certs/${local_hostname}.crt" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment