Difference between revisions of "IT-SDK-HTML"

From wiki.samerhijazi.net
Jump to navigation Jump to search
(.htaccess)
Line 6: Line 6:
 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
</pre>
 
</pre>
 +
 +
<pre class="code">
 +
htpasswd -c /home/username/example.com/.htpasswd user1
 +
chmod 644 .htpasswd
 +
nano .htaccess
 +
--------------------------------------------------
 +
#Protect Directory
 +
AuthName "Dialog prompt"
 +
AuthType Basic
 +
AuthUserFile /home/username/example.com/.htpasswd
 +
Require valid-user
 +
--------------------------------------------------
 +
</pre>
 +
 
=Streaming=
 
=Streaming=
 
<pre class="code">
 
<pre class="code">

Revision as of 01:36, 11 November 2023

.htaccess

  • Allways use https
RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
htpasswd -c /home/username/example.com/.htpasswd user1
chmod 644 .htpasswd
nano .htaccess
--------------------------------------------------
#Protect Directory
AuthName "Dialog prompt"
AuthType Basic
AuthUserFile /home/username/example.com/.htpasswd
Require valid-user
--------------------------------------------------

Streaming

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
  <audio controls>
    <source src="./001.mp3" type="audio/mpeg">
  </audio>
  <p>
  <audio controls>
    <source src="./quran.m3u" type="audio/mpegurl"> # Works just in Mobil-Version
  </audio>
</body>
</html>