skip to Main Content

Adding Server Block on Nginx for WildCard domains

I have 2 domains as D1 "abc.com" and D2 "def.com". I have configured D1 as following sever block on Nginx. server { listen 80; server_name *.abc.com,abc.com; root /var/www/abc/public; add_header X-Frame-Options "SAMEORIGIN"; add_header X-Content-Type-Options "nosniff"; index index.php; charset utf-8; location /…

VIEW QUESTION

Php – Changing the URL title while serving a PDF file

I have a simple PHP file download script, <?php $file = sprintf("/home/data/files/%d", intval($_GET['id'])); if (! file_exists($file)) { die("no such file"); } if (str_ends_with($_GET['name'], ".pdf")) { header("Content-Type: application/pdf"); } else { header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename="" . $_GET['name'] . """); }…

VIEW QUESTION

fpm-php + nginx + POST data

When sending a POST request, fpm-php chaotically returns either a normally processed PHP script <?=die("111");?> will return either “111” or a response of 200 and the body of the POST request itself, in this form: “rnd=1173943626&sessid=b2e74736d05a7d16efbfa99a603c66ad”. Nginx.conf without any specific…

VIEW QUESTION

How to setup MLflow Authentication docker

I want to configure MLflow Authentication to rw per user. My docker file looks like this: https://pastebin.com/yD9ACWzp In the nginx environment I added - MLFLOW_TRACKING_USERNAME=administrator - MLFLOW_TRACKING_PASSWORD=xxxxxxxxxx And I enabled authentication, but now I can't log in Many thanks for…

VIEW QUESTION
Back To Top
Search