| | |
| | | if($conf['nginx']['installed'] == true){ |
| | | $command = 'usermod -a -G ispconfig '.$conf['nginx']['user']; |
| | | caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); |
| | | if(is_user('ispapps')){ |
| | | //if(is_user('ispapps')){ |
| | | // Allow the ispapps vhost access to /etc/squirrelmail |
| | | $command = 'usermod -a -G '.$conf['apache']['group'].' ispapps'; |
| | | caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); |
| | | } |
| | | //$command = 'usermod -a -G '.$conf['apache']['group'].' ispapps'; |
| | | //caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); |
| | | //} |
| | | if(is_group('ispapps')){ |
| | | $command = 'usermod -a -G ispapps '.$conf['nginx']['user']; |
| | | caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); |
| | |
| | | try_files $uri =404; |
| | | root /usr/share/; |
| | | include /etc/nginx/fastcgi_params; |
| | | # To access phpMyAdmin, the default user (like www-data on Debian/Ubuntu) must be used |
| | | # To access phpMyAdmin, the default user (like www-data on Debian/Ubuntu) must be used |
| | | fastcgi_pass 127.0.0.1:9000; |
| | | fastcgi_index index.php; |
| | | fastcgi_param SCRIPT_FILENAME $request_filename; |
| | | fastcgi_param PATH_INFO $fastcgi_script_name; |
| | | fastcgi_buffer_size 128k; |
| | | fastcgi_buffers 256 4k; |
| | | fastcgi_busy_buffers_size 256k; |
| | | fastcgi_temp_file_write_size 256k; |
| | | } |
| | | location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { |
| | | root /usr/share/; |
| | |
| | | fastcgi_pass 127.0.0.1:9000; |
| | | fastcgi_index index.php; |
| | | fastcgi_param SCRIPT_FILENAME $request_filename; |
| | | fastcgi_param PATH_INFO $fastcgi_script_name; |
| | | fastcgi_buffer_size 128k; |
| | | fastcgi_buffers 256 4k; |
| | | fastcgi_busy_buffers_size 256k; |
| | | fastcgi_temp_file_write_size 256k; |
| | | } |
| | | location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { |
| | | root /usr/share/; |
| | |
| | | fastcgi_pass 127.0.0.1:9000; |
| | | fastcgi_index index.php; |
| | | fastcgi_param SCRIPT_FILENAME $request_filename; |
| | | fastcgi_param PATH_INFO $fastcgi_script_name; |
| | | fastcgi_buffer_size 128k; |
| | | fastcgi_buffers 256 4k; |
| | | fastcgi_busy_buffers_size 256k; |
| | | fastcgi_temp_file_write_size 256k; |
| | | } |
| | | location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { |
| | | root /usr/share/; |
| | |
| | | fastcgi_pass 127.0.0.1:9000; |
| | | fastcgi_index index.php; |
| | | fastcgi_param SCRIPT_FILENAME $request_filename; |
| | | fastcgi_param PATH_INFO $fastcgi_script_name; |
| | | fastcgi_buffer_size 128k; |
| | | fastcgi_buffers 256 4k; |
| | | fastcgi_busy_buffers_size 256k; |
| | | fastcgi_temp_file_write_size 256k; |
| | | } |
| | | location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { |
| | | root /usr/share/; |