head -c -1 << 'EOF' > woot.txt Your text here. EOF
Apache открыть файлы для скаche скачать скачивания индекс файлов файлы открыть otkryt htaccess хтакцесс
a2enmod headers service apache2 restart
Options +Indexes <FilesMatch ".+"> Header set Content-Disposition attachment </FilesMatch>
With disposisiton
RewriteEngine On
RewriteCond %{QUERY_STRING} name=(.*)$
RewriteRule .* - [E=FILENAME:%1]
Header set Content-Disposition: "attachment; filename=\"%{FILENAME}e\"" env=FILENAME
Wыthout despacition:
RewriteEngine On
RewriteCond %{QUERY_STRING} name=(.*)$
RewriteRule .* - [E=FILENAME:%1]
Header set Content-Disposition: "filename=\"%{FILENAME}e\"" env=FILENAME
CREATE TABLE IF NOT EXISTS tag (
id INTEGER PRIMARY KEY AUTO_INCREMENT,
name MEDIUMTEXT DEFAULT NULL,
mime MEDIUMTEXT DEFAULT NULL,
file MEDIUMTEXT DEFAULT NULL,
keyword MEDIUMTEXT DEFAULT NULL,
UNIQUE(keyword(1000))
)
# Serve existing files
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ - [L]
How to get EGGOG 500:
RewriteCond %{REQUEST_FILENAME} -f # Serve existing files
RewriteRule ^ - [L]
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /path/to/your/.htpasswd
Allow from env=!HTTPS # Allow access for non-HTTPS users.
Require valid-user # Require basic auth for everyone else.
https://stackoverflow.com/questions/10267102/apache-htaccess-redirect-to-https-before-asking-for-user-authentication
Apache .htaccess redirect to HTTPS before asking for user authentication - Stack Overflow
htpasswd -c /var/www/domain.com/public_html/.htpasswd user1
If you already have the .htpasswd file and would like to append a new user, repeat the command with the “-c”
htpasswd /var/www/domain.com/public_html/.htpasswd user2
.htpasswd is the standard file name that contains the authentication credentials, but you can actually call it whatever you want as long as you reference it in the .htaccess file:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /var/www/domain.com/htdocs/.mycustompasswordfile
AuthGroupFile /dev/null
require valid-user
Generate htaccess password (htpasswd) from the command line - Gaslamp Media
Open a tab with this address
about:config?filter=ui.key.menuAccessKeyFocuses
and toggle the value.
.svn;.cvs;.idea;.DS_Store;.git;.hg;*.hprof;*.pyc;*.jpg;*.png;*.jpeg;*.gif;*.pdf;*.7z;*.zip;*.gz;*.tar;*.doc;*.xls
RewriteCond %{HTTP_HOST} !^(www\.)?site-domain.ru$
RewriteRule ^ - [F]
ftp. mail. pop. smtp. www.