linux:webhosting
This is an old revision of the document!
Table of Contents
Webhosting Befehle
sudo chown -R www-data:www-data /var/www/html* sudo find /var/www/html/ -type d -exec chmod 775 {} \; sudo find /var/www/html/ -type f -exec chmod 664 {} \; sudo find /var/www/html -type d -exec chmod g+s {} \; sudo systemctl restart nginx
htpasswd
Generate Basic Auth Credentials
Installation
sudo apt update sudp apt install htpasswd
Generate Credentials
htpasswd -n # display the results on standard output rather than updating a file htpasswd -c ~/public_html/.htpasswd werner # generate ".htpasswd" file and create credentials for user "werner" htpasswd ~/public_html/.htpasswd werner # create or modify credentials for user "werner" in ".htpasswd" file
linux/webhosting.1684145306.txt.gz · Last modified: 2024/02/17 19:03 (external edit)