Comments on: Configure lighttpd alias (mod_alias) http://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html This is a Linux sys admin journal by Vivek about sys admin work, Linux tips & tricks, hacks, news and more. Fri, 10 Feb 2012 20:37:43 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: Sirolwayhttp://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-149888 Sirolway Wed, 05 Aug 2009 12:12:53 +0000 http://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-149888 I'm trying to configure a couple of aliases using lighttpd for Windows The second alias is nested in a sub-sub folder of the first, so the folder structure is c:\firstDir\secondDir\thirdDir The application I'm trying to use references http://servername/firstDir/thirdDir... So I need to configure Lighttpd to do this... Lighttpd won't start if I try: alias.url = ( "/firstDir/" => "C:/firstDir/", "/firstDir/thirdDir/" => "C:/firstDir/secondDir/thirdDir/" ) Can anyone tell me how I can configure aliases that are nested inside other aliases...? TIA I’m trying to configure a couple of aliases using lighttpd for Windows
The second alias is nested in a sub-sub folder of the first, so the folder structure is
c:\firstDir\secondDir\thirdDir

The application I’m trying to use references http://servername/firstDir/thirdDir...
So I need to configure Lighttpd to do this…

Lighttpd won’t start if I try:

alias.url = (
“/firstDir/” => “C:/firstDir/”,
“/firstDir/thirdDir/” => “C:/firstDir/secondDir/thirdDir/”
)

Can anyone tell me how I can configure aliases that are nested inside other aliases…?
TIA

]]>
By: Howard Millerhttp://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-143086 Howard Miller Fri, 07 Mar 2008 10:59:56 +0000 http://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-143086 It appears that when using an alias, the index.file-names setting is ignored. If, for example, you want index.php to be found then it won't work with an alias. Is this a bug, or am I missing something obvious? It appears that when using an alias, the index.file-names setting is ignored. If, for example, you want index.php to be found then it won’t work with an alias.

Is this a bug, or am I missing something obvious?

]]>
By: vivekhttp://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-140396 vivek Fri, 06 Jul 2007 18:17:09 +0000 http://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-140396 <i>> Is the space bewteen “mod_” and “alias” intentional?</i> Noop, it was a typo. > Is the space bewteen “mod_” and “alias” intentional?
Noop, it was a typo.

]]>
By: Minhhttp://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-140395 Minh Fri, 06 Jul 2007 17:55:04 +0000 http://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-140395 In this line: server.modules += ( "mod_ alias" ) Is the space bewteen "mod_" and "alias" intentional? In this line:

server.modules += ( “mod_ alias” )

Is the space bewteen “mod_” and “alias” intentional?

]]>
By: nixcrafthttp://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-12282 nixcraft Mon, 02 Oct 2006 19:00:43 +0000 http://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-12282 You can use += or use following syntax: <code>alias.url = ( "/stats/star/" => "/home/lighttpd/stats/out/", "/docs/" => "/usr/share/docs/", "/somedir/" => "/home/somewhere/" )</code> You can use += or use following syntax:
alias.url = (
"/stats/star/" => "/home/lighttpd/stats/out/",
"/docs/" => "/usr/share/docs/",
"/somedir/" => "/home/somewhere/"
)

]]>
By: nixcrafthttp://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-12281 nixcraft Mon, 02 Oct 2006 18:52:12 +0000 http://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-12281 Dunxd, Thanks for pointing out windows and UNIX difference while configuring alias. Appreciate your post. Dunxd,

Thanks for pointing out windows and UNIX difference while configuring alias.

Appreciate your post.

]]>
By: Dunxdhttp://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-12237 Dunxd Mon, 02 Oct 2006 16:36:35 +0000 http://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-12237 On Windows the trailing slash for the alias (the first path) breaks the configuration. E.g. <code> alias.url = ( "/docs/" => "/usr/share/doc/" ) ^</code> Doesn't work. <code> alias.url = ( "/docs" => "/usr/share/doc/" )</code> Does work. On Windows the trailing slash for the alias (the first path) breaks the configuration.

E.g.

alias.url = ( "/docs/" => "/usr/share/doc/" )
^

Doesn’t work.

alias.url = ( "/docs" => "/usr/share/doc/" )

Does work.

]]>
By: Dunxdhttp://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-12234 Dunxd Mon, 02 Oct 2006 16:32:45 +0000 http://www.cyberciti.biz/tips/configure-lighttpd-alias-mod_alias.html#comment-12234 Want to add more than one alias? Use += for subsequent alias.url lines. E.g. <code> alias.url = ( "/cgi-bin/" => "/home/lighttpd/theos.in/cgi-bin/" ) alias.url += ( "docs/" => "/usr/share/doc/" ) </code> Want to add more than one alias?

Use += for subsequent alias.url lines.

E.g.

alias.url = ( "/cgi-bin/" => "/home/lighttpd/theos.in/cgi-bin/" )
alias.url += ( "docs/" => "/usr/share/doc/" )

]]>