[Gllug] apache virtual hosts
tet at accucard.com
tet at accucard.com
Thu Jul 11 07:29:36 UTC 2002
>> but how do I map a request for mydomain.net/leigh to my directory?
>
>A number of ways of approaching this.
>
>In the DocumentRoot for the server create a symlink from
>/home/<login>/public_html /<root>/login
>
>http://<site>/~<login>/ will serve any user page providing the user_dir
>module is compiled in.
>
>Or you could play with mod_rewrite but that's just overkill :)
Yes, but easier is to just use mod_alias:
Alias /leigh /home/leigh/public_html/
UserDir is irrelevant unless you want http://mydomain.net/~leigh to work.
If you don't want the tilde, then just use mod_alias.
Tet
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list