Thursday, September 6

YellowLinux But the tilde is ugly, and there's a better way. Read on.
Alias
Add the following lines at the end of section 26:
Alias /students/ /home/students/www/

Options None
AllowOverride None
order allow,deny
allow from all

Note that most are exactly the same as the comment lines already in this section. The Alias line tells Apache that when it receives a request from the directory /students/, it should really use the directory /home/students/www/. This allows us to request the same index.html page as follows:
http://myserver.com/students/index.html
or
http://myserver.com/students/
Notice that the tilde is gone.

No comments: