URL Mapping - ApacheCon 2005
Alias
  • Maps a URL to a directory, often outside of the DocumentRoot directory

  • In default config, used for /icons and /manual

    
     Alias /icons/ /usr/local/apache/icons/
    
      

  • Note that this example is very literal. It works for the URL /icons/ but not for the URL /icons

  • Ommitting the slash on the second argument can result in strange 404 errors:

    
     File does not exist: /usr/local/apache/iconsimage2.gif
    
      

  • Note the missing slash

Index
Back to Location
Forward to ScriptAlias

ApacheCon 2005 : URL Mapping - Slide #5 of 45