httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] external stylesheet: alias ???
Date Sun, 08 Aug 2004 03:04:12 GMT
On Sat, 7 Aug 2004 21:57:32 -0500, Michael D Schleif <mds@helices.org> wrote:
> I don't know where this is specified, in the web server or HTML
> specification.
> 
> Is it possible to do something like this?
> 
>     [httpd.conf]
>     Alias /css /var/lib/css
> 
>     [html]
>     <link rel=3D"stylesheet" type=3D"text/css" href=3D"/css/main.css" />
> 
> I want to centralize my css files somewhere other than off DocumentRoot;
> but, I do not want to specify the entire URL.
> 
> What do you think?

Have you tried it?

Yes, it is possible, and should work exactly as you described. 
(Although you may need a <Directory> section to grant appropriate
permissions depending on what else you have in httpd.conf.)

Some more information is at
http://httpd.apache.org/docs-2.0/urlmapping.html

Joshua.

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message