redmine Cannot serve directory /opt/redmine/public/: No matching DirectoryIndex
cd /var/www/redmine gem install passenger passenger-install-apache2-module
Źródło: https://serverfault.com/questions/859256/redmine-with-apache-403-forbidden
Firefox od wersji 78 ma wyłączoną obsługę TLS 1.0. Można zmusić do współpracy przez zmianę w ustawieniach:
Źródło: https://hacks.mozilla.org/2020/02/its-the-boot-for-tls-1-0-and-tls-1-1/
<?php header('Location: http:://google.pl'); ?>
albo w HTML
<html> <head> <meta http-equiv="refresh" content="5;url=http://192.168.1.1/"> </head> <body> Trwa migracja na nowy serwer 192.168.1.1<br/> Za 5 sekund nastapi przekierowanie. </body> </html>
about:config
security.insecure_field_warning.contextual.enabled - FALSE
https://www.ghacks.net/2017/06/13/firefox-disable-this-connection-is-not-secure-warnings/
about:config
security.insecure_field_warning.contextual.enabled - FALSE
a2enmod rewrite echo ServerName localhost >> /etc/apache2/apache2.conf
vim /etc/apache2/sites-enabled/000-default
<Directory /var/www/> ... AllowOverride FileInfo ... </Directory>
/etc/init.d/apache2 restart
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
https://www.youtube.com/watch?v=Al-0vNJD1JU
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>JS Bin</title> </head> <body> <button class="hamburger"></button> </body> </html>
Zobacz całość
Baza polskich kodów pocztowych:
https://www.poczta-polska.pl/hermes/uploads/2013/11/spispna.pdf
http://kody.poczta-polska.pl/ - wyszukiwarka
https://www.bphtfi.pl/baza-kodow-pocztowych/ - lista w xls (link nieaktywny)
Lista w xls PLIK
Required packages
aptitude install build-essential ruby-dev libxslt1-dev libmariadb-dev libxml2-dev zlib1g-dev imagemagick libmagickwand-dev curl vim sudo apache2 libapache2-mod-passenger ufw subversion mariadb-server mariadb-client
aptitude install php php-mysql # jeśli potrzebujemy php do phpmyadmin lub adminer
Test
ruby -v
useradd -r -m -d /opt/redmine -s /usr/bin/bash redmine usermod -aG redmine www-data
Zobacz całość
.htaccess
RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301,NE]
.htaccess
RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
http://stackoverflow.com/questions/26620670/apache-httpx-forwarded-proto-in-htaccess-is-causing-redirect-loop-in-dev-envir
https://developers.google.com/+/web/badge/
https://developer.linkedin.com/plugins/member-profile-plugin-generator?button-type-inline=true
https://developers.facebook.com/docs/plugins/like-box-for-pages?locale=pl_PL
https://twitter.com/settings/widgets
https://developers.google.com/youtube/youtube_subscribe_button
usuń:
<?php comments_template(); ?>
w pliku
page.php