httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Ross <jr...@broad.mit.edu>
Subject Re: [users@httpd] ScriptAlias and Alias Syntax in httpd.conf File
Date Mon, 17 Jul 2006 19:24:27 GMT
Hello Ki Song,

You need a separate Alias line for every Alias directive.  So this would 
look something like

Alias /foo /usr/local/foo/htdocs
Alias /bar /usr/local/bar/htdocs

Note that there's nothing quite like a "fake address" or "real address" 
here.  The purpose of Alias directives is to map part of your URL space 
to part of your filesystem (and the same is true for ScriptAliases).  If 
you're looking to map part of your URL space to another URL, you might 
want to look into a Redirect.

Please check out the documentation for these directives (here it is for 
apache 1.3: http://httpd.apache.org/docs/1.3/mod/mod_alias.html#alias). 
  If you're still having a problem, make sure to tell us which version 
of apache you're using, and include relevant information from your error 
log.

take care,
Jesse Ross


Ki Song wrote:
> I have a quick question.
> If I want to define multiple ScriptAlias and Alias directories in the
> httpd.conf file, what is the syntax?
> 
> I've tried it this way:
> 
> ScriptAlias fakeaddress1 realaddress1,
>             fakeaddress2 realaddress2,
>             fakeaddress3 realaddress3
> 
> Alias fakeaddress1 realaddress1,
>             fakeaddress2 realaddress2,
>             fakeaddress3 realaddress3
> 
> and this way:
> 
> ScriptAlias fakeaddress1 realaddress1
> ScriptAlias fakeaddress2 realaddress2
> 
> Alias fakeaddress1 realaddress1
> Alias fakeaddress2 realaddress2
> 
> 
> Neither seems to work.
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> 

---------------------------------------------------------------------
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