first commit with existing files

This commit is contained in:
2025-05-17 13:08:39 +02:00
commit cda37be691
29 changed files with 617 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/certs/apache.crt
SSLCertificateKeyFile /etc/apache2/certs/apache.key
</VirtualHost>

View File

@@ -0,0 +1,4 @@
<Directory /var/www/html>
AllowOverride ALL
</Directory>

View File

@@ -0,0 +1,18 @@
#!/bin/bash
cat profile.sh >> $HOME/.bashrc
apt update
apt install smbclient apache2 openssl nano vim -y
a2enmod ssl
a2enmod rewrite
cat /ncupdate/apache2.conf >> /etc/apache2/apache2.conf
mkdir /etc/apache2/certs
echo ""
echo ""
echo "Write the nextcloud's URL to the COMMON NAME!"
echo "Leave the other fields blank"
echo ""
echo -n "Press ENTER to countinue..."
read x
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out /etc/apache2/certs/apache.crt -keyout /etc/apache2/certs/apache.key
cat /ncupdate/00-default.conf >> /etc/apache2/sites-enabled/000-default.conf

View File

@@ -0,0 +1,2 @@
alias ls='ls --color="auto" --group-directory-first'
alias ll='ls -alh'