====== Webový server ====== ===== Debian v dockeru ===== Ve složce ''/etc/apache2/sites-available'' přidám konfiguraci na novou stránku, napříklap příkazem ''cp'' Stránku přidám příkazem ''a2ensite example.com'' Přidám certifikát příkazem certbot certonly --agree-tos --email info@zdenekhavlik.cz --webroot -w /var/lib/letsencrypt/ -d example.com -d www.example.com A restaruji web server příkazem ''systemctl reload apache2'' Zdroj: https://linuxize.com/post/how-to-set-up-apache-virtual-hosts-on-debian-9/\\ https://linuxize.com/post/secure-apache-with-let-s-encrypt-on-debian-9/ ===== Cache na Apache2 ===== Zdroj: https://www.serverlab.ca/tutorials/linux/web-servers-linux/improve-website-performance-by-enabling-caching-in-apache/ ===== Přesměrování na jinou IP ve vnitřní síti ===== * https://serverfault.com/questions/415780/how-to-point-sub-domains-to-different-local-ip * https://askubuntu.com/questions/172937/how-to-make-subdomains-point-to-different-local-ip-addresses * https://serverfault.com/questions/413102/apache-rewrite-or-proxy-to-internal-server * https://www.digitalocean.com/community/questions/dns-subdomains-to-different-ips-a-vs-cname-records * https://confluence.atlassian.com/kb/proxying-atlassian-server-applications-with-apache-http-server-mod_proxy_http-806032611.html * https://serverfault.com/questions/178207/apache-redirect-subfolder-to-another-ip-in-the-lan * https://www.inmotionhosting.com/support/domain-names/redirect-without-changing-url/ ====== Práva ke složce ====== * https://askubuntu.com/questions/325498/apache-cant-access-folders-in-my-home-directory * https://discuss.linuxcontainers.org/t/share-folder-between-containers/7126