From: Sebastian Rose <sebastian_rose@gmx.de>
To: Nicolas Girard <nicolas.girard@nerim.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Link to a local html file
Date: Mon, 29 Jun 2009 16:18:11 +0200 [thread overview]
Message-ID: <87fxdjw2cc.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <51b0095d0906290643p79145abalff08f38218ac9aca@mail.gmail.com> (Nicolas Girard's message of "Mon, 29 Jun 2009 15:43:25 +0200")
Nicolas Girard <nicolas.girard@nerim.net> 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"
<Directory "/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
</Directory>
...and adjust the network as needed.
Sebastian
next prev parent reply other threads:[~2009-06-29 14:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 13:43 Link to a local html file Nicolas Girard
2009-06-29 14:18 ` Sebastian Rose [this message]
2009-06-29 14:20 ` Manish
2009-06-29 14:20 ` Bastien
2009-06-29 15:26 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fxdjw2cc.fsf@kassiopeya.MSHEIMNETZ \
--to=sebastian_rose@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=nicolas.girard@nerim.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).