Mostrando postagens com marcador web. Mostrar todas as postagens
Mostrando postagens com marcador web. Mostrar todas as postagens

Block folder access - Nginx

 location /phpmyadmin {
  deny all;
  return 403;
}

location /phpmyadmin {

  allow 192.168.1.0/24;
  deny all;
  return 403;
}

Text file on the fly for user to download using php


Here's the code for generating a text file on the file for user to download.
Make sure you don't have any output before this code, otherwise it will be shown on the downloaded file also.


<php? //Generate text file on the fly

   header("Content-type: text/plain");
   header("Content-Disposition: attachment; filename=test.txt");

   $str="test";

   echo $str;
  
 ?>



HTTP redirect page


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="refresh" content="0; URL='https://example.com'" />
</head>
<body>
  </body>
</html>



Corrigir erro NATS no Segura

  ### erro Nats orbit nats stop orbit nats setup orbit services reload orbit services restart all ls -lh /var/orbini/system/incdt/ 

Mais vistos