http://httpd.apache.org/
http://httpd.apache.org/docs/2.2/
On Ubuntu and Debian, Apache keeps its main configuration files within the "/etc/apache2" folder
/etc/apache2/envvars
/etc/apache2/sites-available/default
- DocumentRoot /var/www
- ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
/etc/apache2/sites-enabled
Website Files:
/var/www
List sites available:
ls /etc/apache2/sites-available
List sites enabled:
ls /etc/apache2/sites-enabled
Disable site:
a2dissite example.com
Enable site:
a2ensite example.com
Remove virtual host entry:
rm /etc/apache2/sites-available/my-website.conf
Backup/remove any website files in /var/www:
cd /var/www
tar czf my-website.tar.gz my-website
rm -r my-website
Reload Apache2:
service apache2 reload
/etc/init.d/apache2 reload (Debian/Ubuntu)
Restart Apache2:
service apache2 restart
/etc/init.d/apache2 restart (Debian/Ubuntu)
Stop Apache2:
service apache2 stop
/etc/init.d/apache2 stop (Debian/Ubuntu)
Start Apache2:
service apache2 start
/etc/init.d/apache2 start (Debian/Ubuntu)
More Stop/Start Methods:
-----------------------------------------------------------------------
Possible error log locations:
/usr/local/apache/logs/error_log
/var/log/apache2/error.log
-----------------------------------------------------------------------
SSL INSTALLATION:
-----------------------------------------------------------------------