{"id":473,"date":"2008-01-23T00:00:00","date_gmt":"2008-01-22T16:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=473"},"modified":"2011-07-15T09:44:56","modified_gmt":"2011-07-15T01:44:56","slug":"configure-lighttpd-alias-mod_alias","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=473","title":{"rendered":"Configure lighttpd alias (mod_alias)"},"content":{"rendered":"<p><FONT face=\"Courier New\"><br \/>\n<P>This lighttpd module provides for mapping different parts of the host filesystem in the document tree. You can use it for mapping various directories. For example cgi-bin directory mapped to \/var\/lib\/cgi-bin.<\/P><br \/>\n<H3>Configuration<\/H3><br \/>\n<P>Open your lighttpd configuration file:<BR><\/P><\/FONT><br \/>\n<P><FONT face=\"Courier New\">vi \/etc\/lighttpd\/lighttpd.conf<\/FONT><\/P><br \/>\n<P>Append\/add mod_ alias to list of server modules:<BR><CODE>server.modules += ( &#8220;mod_alias&#8221; )<\/CODE><\/P><br \/>\n<H3>Examples<\/H3><br \/>\n<P>Add cgi-bin alias for doamin theos.in<BR><CODE>alias.url = ( &#8220;\/cgi-bin\/&#8221; =&gt; &#8220;\/home\/lighttpd\/theos.in\/cgi-bin\/&#8221; )<\/CODE><\/P><br \/>\n<P>Browse all documents installed at \/usr\/share\/doc\/ directory with following alias:<BR><CODE>alias.url = ( &#8220;\/docs\/&#8221; =&gt; &#8220;\/usr\/share\/doc\/&#8221; )<BR>alias.url += ( &#8220;\/stats\/&#8221; =&gt; &#8220;\/home\/theos.in\/http\/webalizer\/&#8221; )<\/CODE><\/CODE><\/P><br \/>\n<P>Open a browser and type url http:\/\/theos.in\/docs\/ or http:\/\/your-domain.com\/docs\/<\/P><br \/>\n<DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This lighttpd module provides for mapping different parts of the host filesystem in the document tree. You can use it for mapping various directories. For example cgi-bin directory mapped to \/var\/lib\/cgi-bin. Configuration Open your lighttpd configuration file: vi \/etc\/lighttpd\/lighttpd.conf Append\/add mod_ alias to list of server modules:server.modules += ( &#8220;mod_alias&#8221; ) Examples Add cgi-bin alias &hellip; <a href=\"https:\/\/www.strongd.net\/?p=473\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Configure lighttpd alias (mod_alias)<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[61],"class_list":["post-473","post","type-post","status-publish","format-standard","hentry","category-linux","tag-lighttpd"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=473"}],"version-history":[{"count":1,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/473\/revisions"}],"predecessor-version":[{"id":897,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/473\/revisions\/897"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}