Just like this: In your httpd.conf,find this: " # # Aliases: Add here as many aliases as you need (with no limit). The format is # Alias fakename realname # # Note that if you include a trailing / on fakename then the server will # require it to be present in the URL. So "/icons" isn't aliased in this # example, only "/icons/". If the fakename is slash-terminated, then the # realname must also be slash terminated, and if the fakename omits the # trailing slash, the realname must also omit it. # # We include the /icons/ alias for FancyIndexed directory listings. If you # do not use FancyIndexing, you may comment this out. # Alias /icons/ "/usr/local/apache2/icons/"
<Directory "/usr/local/apache2/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> " In the line like "Alias /icons/ "/usr/local/apache2/icons/" If the client send a request of "http://yoursite/icons/", apache will return to the directory of /usr/local/apache2/icons/. ---------------------------------- >I new to linux what is alias? > > > >On Thu, 5 Jun 2003 9:55:23 +0800 > "Kirby Lynx" <[EMAIL PROTECTED]> wrote: >>You can use alias. >>---------------------------------- >>>What entry in the htpd.conf would I have to put in to add >>>a virtual directory to apache like you would do for MS >>>IIS. >>>Example I have a share mount on my linux box from a MS >>>Windows system I would like to add that directory to my >>>web on my linux box how would I do that by editing the >>>htpd.conf file >>> >>>Thanks, >>>Brent >>> >>> >>>-- >>>redhat-list mailing list >>>unsubscribe >>>mailto:[EMAIL PROTECTED] >>>https://www.redhat.com/mailman/listinfo/redhat-list >>---------------------------------- >>Kirby Lynx >>Amid CO.LTD >>[EMAIL PROTECTED] >>---------------------------------- >>Kirby wrote this at 09:54:57 2003-06-05 >> >> >> >>-- >>redhat-list mailing list >>unsubscribe >>mailto:[EMAIL PROTECTED] >>https://www.redhat.com/mailman/listinfo/redhat-list > ><TEXTAREA NAME="Signature" ROWS="4" COLS="60"><TEXTAREA >NAME="Signature" ROWS="4" COLS="60"> > > >-- >redhat-list mailing list >unsubscribe mailto:[EMAIL PROTECTED] >https://www.redhat.com/mailman/listinfo/redhat-list ---------------------------------- Kirby Lynx Amid CO.LTD [EMAIL PROTECTED] ---------------------------------- Kirby wrote this at 10:59:11 2003-06-05 -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list