From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Link to a local html file Date: Mon, 29 Jun 2009 16:18:11 +0200 Message-ID: <87fxdjw2cc.fsf@kassiopeya.MSHEIMNETZ> References: <51b0095d0906290643p79145abalff08f38218ac9aca@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLHcg-0004nr-5B for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 10:14:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLHcb-0004hC-3l for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 10:14:17 -0400 Received: from [199.232.76.173] (port=37889 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLHca-0004gw-UU for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 10:14:12 -0400 Received: from mail.gmx.net ([213.165.64.20]:33973) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MLHca-0007vX-92 for emacs-orgmode@gnu.org; Mon, 29 Jun 2009 10:14:12 -0400 In-Reply-To: <51b0095d0906290643p79145abalff08f38218ac9aca@mail.gmail.com> (Nicolas Girard's message of "Mon, 29 Jun 2009 15:43:25 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Girard Cc: emacs-orgmode@gnu.org Nicolas Girard writes: > Hi, > > how to create a link to a local html file, say, /path/to/file.html, so > that clicking on it opens the page in a browser ? If you serve that file through a webserver (here apache2), you could do something like this: [[http://localhost/~user/path/to/file.html][file.html]] I serve several directories in my home directory to either localhost only, or to the intranet here. You simply can add entries to your /etc/apache2/httpd.conf (on GNU/Linux) like this: Alias /devel "/home/sebastian/develop/htdocs" Options Indexes MultiViews Order allow,deny Allow from 192.168.178.0/255.255.255.0 Allow from 127.0.0.1 ...and adjust the network as needed. Sebastian