httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From men...@lug.com
Subject Re: DocumentRoot and ServerName
Date Fri, 25 Jan 2002 15:58:09 GMT

Hi,


A solution is to use the Alias Directive

<VirtualHost xxx.xxx.xxx.xx>
ServerAdmin root@xxx.com
DocumentRoot /data/webmaster/websites/web1

Alias /images /data/webmaster/websites/images

ServerName www.web1.com
</VirtualHost>

then, in your HTML pages, when u write

<img src="/images/file.gif">

Apache will pick the file in /data/webmaster/websites/images




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message