O'Reilly logo

Apache Phrasebook by Jesus Blanco, Daniel Lopez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. URL Mapping and Dynamic Content

URL Mapping

This chapter explains how to configure Apache to map requests to files and directories or redirect them to specific pages or servers. This knowledge comes in handy to solve common problems such as maintaining working URLs when the site structure changes, dealing with case-sensitive websites, supporting multiple languages, and so on. It also explains how to use the CGI and server side include functionality present in Apache to provide dynamically generated content.

Mapping URLs to Files with Alias

Alias /icons/ /usr/local/apache2/icons/

The structure of your website does not need to match the layout of your files on disk. You can use the Alias directive to map directories on disk to specific URLs. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required