Category: Apache

  • www backup script

    Here is a simple script that creates a RAR file of /var/www/ 1. Create a script folder. # sudo mkdir /script 2. Create a backup folder and a destnation folder for the www rar file. # sudo mkdir /backup /backup/www 3. Create a script file. # sudo nano /script/wwwbackup.sh Add the following: #!/bin/bash /usr/bin/rar a…

  • Virtual host config

    Virtual hosts in Apache are the same thing as host headers in Windows IIS, allowing the admin to have multiple websites on one webserver with one IP-address. 1. Create a folder for the new virtual host. # sudo mkdir /var/www/www.mysite.com 2. Change owner on the virtual host folder. www-data is the same as IUSR under…