[Top][All Lists]

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

Re: [O] Tangling text files

From: Ian Barton
Subject: Re: [O] Tangling text files
Date: Fri, 27 Jan 2012 18:13:23 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111224 Thunderbird/9.0.1

On 27/01/12 18:07, dlc wrote:
How do I tangle txt to a txt file?

#+TITLE: Centos 5 Apache Configuration
#+AUTHOR: David Coate

* Basic Conguration
* Php Settings
* Virtual Host
e.g. for apache configuration
** example.com
Use this as main website, use drupal, various other notes

#+BEGIN_SRC: txt :tangle vhost.conf
ServerName Example.com
DocumentRoot "/var/www/example.com"

** companyb.com
notes about company b.
#+BEGIN_SRC: txt :tangle vhost.conf
ServerName Companyb.com
DocumentRoot "/var/www/companyb.com"

... and so on for 40 more web sites.

I still want to be able to export this as HTML to document to others
what i've done and use the org file to maintain the webpage and the
source conf files.

Same issue for documenting my configuration files for postfix, dovecot,
drupal settings, php.ini settings.

I'm sure this is easy, but searching the org manual or googling is not
getting me the right answer.

#+BEGIN_ASCII and #+BEGIN_EXAMPLE seem to be for exporting only and not

I don't know if this is the "right" way, but I just pretend my files are shell scripts:

* Dovecot.
** dovecot.conf
#+BEGIN_SRC sh :tangle ~/dropbox/configuration_files/wilkesley.org/dovecot/dovecot.conf :exports none :noweb yes
protocols = imap sieve
ssl = yes
ssl_cert = </etc/ssl/certs/mail2.wilkesley.net.crt
ssl_key = </etc/ssl/private/mail2.wilkesley.net.key


reply via email to

[Prev in Thread] Current Thread [Next in Thread]