-
Notifications
You must be signed in to change notification settings - Fork 137
NGINX
Jon Crain edited this page May 7, 2020
·
8 revisions
Be sure to install these packages: apt-get install nginx php7.4 php7.4-fpm php7.4-xml php7.4-ldap php7.4-mbstring php7.4-zip unzip zip php-sqlite3 libcurl3-dev
Assuming you have setup the proper symbolic link in the webroot:
ln -s /path/to/munkireport/public /var/www/html/munkireport
root /var/www/html/munkireport;
index index.php index.html;
location / {
try_files $uri $uri/ =404;
}
# pass PHP scripts to FastCGI server
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
Assuming you have setup the proper symbolic link in the webroot:
ln -s /path/to/munkireport/public /path/to/web/root/report
The following location block should work to serve MunkiReport out of the /report
subdirectory:
root /path/to/web/root;
location /report {
autoindex on;
location ~* \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME /media/Data/$fastcgi_script_name;
}
}
If you receive the following error:
ERROR: https://xxx.xxx.com/index.php?/report/check_in failed, HTTP returncode 413 (request too large)
Edit the client_max_body_size
in your NGINX config:
client_max_body_size 25MB;
- General Upgrade Procedures
- How to Upgrade Versions
- Troubleshooting Upgrades
- Migrating sqlite to MySQL