Azimout's Linux weblog

A couple of Apache tricks

leave a comment »

Don’t restart, reload

After changing some configuration option, instead of restarting Apache (sudo service apache2 restart), try reloading instead (sudo service apache2 reload).

To add another “subdir” under your domain (i.e. http://mydomain/newsubdir/), create the file /etc/apache2/sites-available/newsubdir:

<VirtualHost *:80>
    Options FollowSymLinks MultiViews
    Alias /newsubdir/ "/path/to/content/"

Then enable the site with sudo a2ensite newsubdir and then reload the Apache configuration as described above.


Written by azimout

03/10/2011 at 14:14

Posted in Howto

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: