[techtalk] Minor ln -s question

Nils Philippsen nils at wombat.dialup.fht-esslingen.de
Mon Apr 23 22:54:31 EST 2001


On Fri, 20 Apr 2001, Kath wrote:

> I have the directory /var/www/shag/
>
> I want to link /var/www/kathweb/shag/ to it, so when someone goes to
> www.kathweb.net/shag/, the directory of shag/ is displayed.
>
> How do I do this?

Instead of symlinking, you can just use the Alias directive inside your
virtual host definition in httpd.conf:

<VirtualHost ...>
[...]
Alias /var/www/shag/ /shag/
[...]
</VirtualHost>

Nils
-- 
 Nils Philippsen / Berliner Straße 39 / D-71229 Leonberg // +49.7152.209647
nils at wombat.dialup.fht-esslingen.de / nils at redhat.de / nils at fht-esslingen.de
   The use of COBOL cripples the mind; its teaching should, therefore, be
   regarded as a criminal offence.                  -- Edsger W. Dijkstra





More information about the Techtalk mailing list