Re: [users@httpd] ScriptAlias and Alias Syntax in httpd.conf File

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux