Locked History Actions

HowTo/Apache

"How To" Recipes for the Apache Server

The ubuntu 10.04 server guide has an apache page.

The main configuration files are /etc/apache2/apache2.conf and /etc/apache2/sites-available/default

Restart the server:

sudo apache2ctl restart

Serve a static file: copy it to /var/www/

Serve files for an alias domain name (created via a DNS CNAME record). Edit /etc/apache2/sites-available/default and add a section, e.g.

<VirtualHost *:80>
  ServerName wotz.ps.uci.edu
  DocumentRoot /var/www/wotz
  <Directory /var/www/wotz/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
  </Directory>
  LogLevel warn
  CustomLog /var/log/apache2/wotz-access.log combined
</VirtualHost>

See here for details. Test the changes and then enable them:

sudo apache2ctl configtest
sudo apache2ctl restart