welcome: please sign in

Diff for "DomTool/Examples/Full"

Differences between revisions 87 and 134 (spanning 47 versions)
Revision 87 as of 2008-04-14 23:13:27
Size: 9004
Editor: 124
Comment:
Revision 134 as of 2018-10-20 18:24:55
Size: 3953
Editor: ClintonEbadi
Comment: placing anything not meant to be served from hcoop.net/~YOU considered dangerous
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#acl Known:read,write,revert,admin All:read
#pragma section-numbers off
Line 2: Line 4:
---- /!\ '''Edit conflict - other version:''' ----
interesting post thx <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-i730-fx ">free nextel ringtone i730
</a> 81964 <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-converter-fx ">free nextel ringtone converter
</a> tfik <a href=" http://groups.yahoo.com/group/free-nextel-phones-fx ">free nextel phones
</a> >:]] <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-program-fx ">free nextel ringtone program
</a> 660 <a href=" http://groups.yahoo.com/group/free-nextel-cell-phone-ringtone-fx ">free nextel cell phone ringtone
</a> =[[
This page contains a number of working examples of DomTool configuration. People are welcome to add their own working examples to this page if they like.

<<TableOfContents>>

= spinlocksolutions.com =
Here is DavorOcelic's annotated DomTool configuration.

{{{
dom "spinlocksolutions.com" where
  Aliases = ["spinlock-solutions.com"];
  DocumentRoot = home "web/spinlocksolutions.com";
  WWW = begin
    addDefaultCharset "utf-8";

    scriptAlias "/cgi-bin/" ( home "web/cgi-bin/" );
    scriptAlias "/sl" ( home "web/cgi-bin/sl" );

    (* directoryIndex ["/sl/index"]; *)
    rewriteRule "^/$" "/sl/index" [redirectWith permanent];

    alias "/debian" ( home "debian/repository" );
    directory ( home "debian/repository" ) with
            options [ indexes ];
            orderAllowDeny;
            allowFromAll;
    end end
with
  dnsIP "secure" mire_ip;
  dnsIP "mail" deleuze_ip;
  dnsIP "rt" "195.29.212.142";

  web "techpubs" where
    DocumentRoot = home "web/techpubs.sl.com";
  with
    addDefaultCharset "utf-8";
    directoryIndex ["index.html"];

    directory ( home "web/techpubs.sl.com/" ) with
            options [ indexes, followSymLinks ];
            orderAllowDeny;
            allowFromAll;
            (* addDescription "Hands-on Debian GNU Guide" ["debian.html"]; *)
        headerName "/HEADER.html";
        readmeName "README";
        indexOptions [descriptionWidth autofit, fancyIndexing,
          foldersFirst, nameWidth autofit, scanHtmlTitles ,
          suppressHtmlPreamble, trackModified, versionSort,
          suppressRules, suppressIcon];
        indexIgnore [".htaccess", "*.bak", "*~"];
    end;
  end;

  web "secure" with
    rewriteRule "^(.*)$" "https://secure.spinlocksolutions.com$1" [redirect]
  end;

  web "secure" where
    DocumentRoot = home "web/spinlocksolutions.com";
    SSL = use_cert "/etc/apache2/ssl/apache.pem"
  with
    addDefaultCharset "utf-8";

    scriptAlias "/cgi-bin/" ( home "web/cgi-bin/" );
    scriptAlias "/sl" ( home "web/cgi-bin/sl" );
    (* directoryIndex ["/sl/index"]; *)
    rewriteRule "^/$" "/sl/index" [redirectWith permanent];

    alias "/debian" ( home "debian/repository" );
    directory ( home "debian/repository" ) with
            options [ indexes ];
            orderAllowDeny;
            allowFromAll;
    end;
  end;
end;
}}}
= distortions.net =
Here's RyanMikulovsky's very simple example:

{{{
dom "distortions.net" where
  DefaultAlias = false; (* avoids *@distortions.net e-mail alias *)
  DocumentRoot = home "websites/distortions.net/"
with
  emailAlias "ryan" "ryan@hcoop.net"; (* the only e-mail address I want *)
  wordPress "geology" where (* sets up proper rewrite rules etc. *)
   DocumentRoot = home "websites/geo/wordpress/"
  end;
  web "biblio" where
    DocumentRoot = home "websites/distortions.net/biblio";
  with
   addDefaultCharset "utf-8"; (* probably not necessary... *)
  end;
  web "chemistry" where
   DocumentRoot = home "websites/chemistry";
  with
  end;
  web "gallery" where (* for Gallery PHP software *)
   DocumentRoot = home "websites/gallery";
  with
  end;
end;
}}}

= covariant.me =

This is DaniilFrumin's simple website featuring a bunch of html files generated by a static site generator Hakyll, and a DarcsWeb instance

{{{
dom "covariant.me" where
  WWW = begin
    options [indexes];
    set_indexOptions [fancyIndexing];
    readmeName "README";
  end;
with
  web "repos" where
    DocumentRoot = home "www/repos.covariant.me/";
  with
    scriptAlias "/browse" (home "darcsweb/darcsweb.cgi");
    rewriteRule "^/$" "/browse" [redirectWith permanent];
  end;

  simpleWeb "darcs" "websites/stuff/darcs/";

  emailAlias "dan" "<REDACTED>"
end;
}}}
Line 10: Line 133:
CategoryOutdated

---- /!\ '''Edit conflict - your version:''' ----
interesting site man <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-i730-fx ">free nextel ringtone i730
</a> 58827 <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-converter-fx ">free nextel ringtone converter
</a> 401 <a href=" http://groups.yahoo.com/group/free-nextel-phones-fx ">free nextel phones
</a> misuvl <a href=" http://groups.yahoo.com/group/free-nextel-ringHTTP/1.1 200 OK
Date: Mon, 14 Apr 2008 23:13:14 GMT
Server: Apache/2.2.3 (Debian)
Vary: Cookie,User-Agent,Accept-Language
Cache-Control: no-cache
Expires: Sun, 15 Apr 2007 23:13:19 GMT
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html;charset=utf-8

b5b
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="robots" content="noindex,nofollow">

<title>Edit "DomTool/Examples/Full" - HCoop Wiki</title>
<script type="text/javascript" src="/wikidata/common/js/common.js"></script>

<script type="text/javascript">
<!--// common functions

// We keep here the state of the search box
searchIsDisabled = false;

function searchChange(e) {
    // Update search buttons status according to search box content.
    // Ignore empty or whitespace search term.
    var value = e.value.replace(/\s+/, '');
    if (value == '' || searchIsDisabled) {
        searchSetDisabled(true);
    } else {
        searchSetDisabled(false);
    }
}

function searchSetDisabled(flag) {
    // Enable or disable search
    document.getElementById('fullsearch').disabled = flag;
    document.getElementById('titlesearch').disabled = flag;
}

function searchFocus(e) {
    // Update search input content on focus
    if (e.value == 'Search') {
        e.value = '';
        e.className = '';
        searchIsDisabled = false;
    }
}

function searchBlur(e) {
    // Update search input content on blur
    if (e.value == '') {
        e.value = 'Search';
        e.className = 'disabled';
        searchIsDisabled = true;
    }
}

function actionsMenuInit(title) {
    // Initialize action menu
    for (i = 0; i < document.forms.length; i++) {
        var form = document.forms[i];
        if (form.className == 'actionsmenu') {
            // Check if this form needs update
            var div = form.getElementsByTagName('div')[0];
            var label = div.getElementsByTagName('label')[0];
            if (label) {
                // This is the first time: remove label and do buton.
                div.removeChild(label);
                var dobutton = div.getElementsByTagName('input')[0];
                div.removeChild(dobutton);
                // and add menu title
                var select = div.getElementsByTagName('select')[0];
                var item = document.createElement('option');
                item.appendChild(document.createTextNode(title));
                item.value = 'show';
                select.insertBefore(item, select.options[0]);
                select.selectedIndex = 0;
            }
        }
    }
}
//-->
</script>


<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/wikidata/modern/css/common.css">
<link rel="stylesheet" type="text/css" charset="utf-8" media="screen" href="/wikidata/modern/css/screen.css">
<link rel="stylesheet" type="text/css" charset="utf-8" media="print" href="/wikidata/modern/css/print.css">
<link rel="stylesheet" type="text/css" charset="utf-8" media="projection" href="/wikidata/modern/css/projection.css">

<!-- css only for MSIE browsers -->
<!--[if
3f0
 IE]>
   <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="/wikidata/modern/css/msie.css">
<![endif]-->



<script type="text/javascript" src="/wikidata/common/js/countdown.js"></script>
<script type="text/javascript">
var countdown_timeout_min = 10
var countdown_lock_expire = "Your edit lock on DomTool/Examples/Full has expired!"
var countdown_lock_mins = "Your edit lock on DomTool/Examples/Full will expire in # minutes."
var countdown_lock_secs = "Your edit lock on DomTool/Examples/Full will expire in # seconds."
addLoadEvent(countdown)
</script>

<link rel="Start" href="/WelcomePage">
<link rel="Alternate" title="Wiki Markup" href="/DomTool/Examples/Full?action=raw">
<link rel="Alternate" media="print" title="Print View" href="/DomTool/Examples/Full?action=print">
<link rel="Up" href="/DomTool/Examples">
<link rel="Search" href="/FindPage">
<link rel="Index" href="/TitleIndex">
<link rel="Glossary" href="/WordIndex">
<link rel="Help" href="/HelpOnFormatting">
</head>

347

<body lang="en" dir="ltr">

<div id="header">

<ul id="pagelocation">
<li>Edit "DomTool/Examples/Full"</li>
</ul>

<div id="message">
<p class="status">Someone else saved this page while you were editing! Please review the page and save then. Do not save this page as it is! Have a look at the diff of <a href="/DomTool/Examples/Full?action=diff&rev=85">DomTool/Examples/Full</a> to see what has been changed. This page was opened for editing or last previewed at 2008-04-14 23:11:21 by <span title="??? @ ev1s-209-62-108-194.ev1servers.net[209.62.108.194]">ev1s-209-62-108-194</span>.<br />
 <strong>You should <em>refrain from editing</em> this page for at least another 9 minute(s), to avoid editing conflicts.</strong><br />
 To leave the editor, press the Cancel button.</p>

</div>

</div>

<div id="page" lang="en" dir="ltr">

400
<div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span>
<form id="editor" method="post" action="/DomTool/Examples/Full#preview" onSubmit="flgChange = false;"><fieldset style="border:none;padding:0;"><input type="hidden" name="action" value="edit"><input type="hidden" name="rev" value="86"><input type="hidden" name="ticket" value="004803e50f.a62f884ec08d97abb36249d803a0d5ead8cff75e">
<input class="button" type="submit" name="button_save" value="Save Changes" onClick="flgChange = false;">
<input class="button" type="submit" name="button_preview" value="Preview" onClick="flgChange = false;">

<input id="switch2gui" style="display: none;" class="button" type="submit" name="button_switch" value="GUI Mode">

<input class="button" type="submit" name="button_spellcheck" value="Check Spelling" onClick="flgChange = false;">
<input class="button" type="submit" name="button_cancel" value="Cancel">
<input type="hidden" name="editor" value="text">
<script type="text/javascript">
    var flgChange = fals
400
e;
    function confirmleaving() {
        if ( flgChange )
            return "Your changes are not saved!";
    }
</script>
<textarea id="editor-textarea" name="savetext" lang="en" dir="ltr" rows="20"
          onChange="flgChange = true;" onKeyPress="flgChange = true;">
---- /!\ '''Edit conflict - other version:''' ----
interesting post thx <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-i730-fx ">free nextel ringtone i730
</a> 81964 <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-converter-fx ">free nextel ringtone converter
</a> tfik <a href=" http://groups.yahoo.com/group/free-nextel-phones-fx ">free nextel phones
</a> >:]] <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-program-fx ">free nextel ringtone program
</a> 660 <a href=" http://groups.yahoo.com/group/free-nextel-cell-phone-ringtone-fx ">free nextel cell phone ringtone
</a> =[[
----
CategoryOutdated

---- /!\ '''Edit conflict - your versio
400
n:''' ----
interesting site man <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-i730-fx ">free nextel ringtone i730
</a> 58827 <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-converter-fx ">free nextel ringtone converter
</a> 401 <a href=" http://groups.yahoo.com/group/free-nextel-phones-fx ">free nextel phones
</a> misuvl <a href=" http://groups.yahoo.com/group/free-nextel-ringtone-program-fx ">free nextel ringtone program
</a> mji <a href=" http://groups.yahoo.com/group/free-nextel-cell-phone-ringtone-fx ">free nextel cell phone ringtone
</a> 84587
----
CategoryCategory

---- /!\ '''End of edit conflict''' ----
CategoryMemberManual CategoryNeedsWork

This page contains a number of working examples of DomTool configuration. People are welcome to add their own working examples to this page if they like.

spinlocksolutions.com

Here is DavorOcelic's annotated DomTool configuration.

dom "spinlocksolutions.com" where
  Aliases = ["spinlock-solutions.com"];
  DocumentRoot = home "web/spinlocksolutions.com";
  WWW = begin
    addDefaultCharset "utf-8";

    scriptAlias "/cgi-bin/" ( home "web/cgi-bin/" );
    scriptAlias "/sl" ( home "web/cgi-bin/sl" );

    (* directoryIndex ["/sl/index"]; *)
    rewriteRule "^/$" "/sl/index" [redirectWith permanent];

    alias "/debian" ( home "debian/repository" );
    directory ( home "debian/repository" ) with
            options [ indexes ];
            orderAllowDeny;
            allowFromAll;
    end end
with
  dnsIP "secure" mire_ip;
  dnsIP "mail" deleuze_ip;
  dnsIP "rt" "195.29.212.142";

  web "techpubs" where
    DocumentRoot = home "web/techpubs.sl.com";
  with
    addDefaultCharset "utf-8";
    directoryIndex ["index.html"];

    directory ( home "web/techpubs.sl.com/" ) with
            options [ indexes, followSymLinks ];
            orderAllowDeny;
            allowFromAll;
            (* addDescription "Hands-on Debian GNU Guide" ["debian.html"]; *)
        headerName "/HEADER.html";
        readmeName "README";
        indexOptions [descriptionWidth autofit, fancyIndexing,
          foldersFirst, nameWidth autofit, scanHtmlTitles ,
          suppressHtmlPreamble, trackModified, versionSort,
          suppressRules, suppressIcon];
        indexIgnore [".htaccess", "*.bak", "*~"];
    end;
  end;

  web "secure" with
    rewriteRule "^(.*)$" "https://secure.spinlocksolutions.com$1" [redirect]
  end;

  web "secure" where
    DocumentRoot = home "web/spinlocksolutions.com";
    SSL = use_cert "/etc/apache2/ssl/apache.pem"
  with
    addDefaultCharset "utf-8";

    scriptAlias "/cgi-bin/" ( home "web/cgi-bin/" );
    scriptAlias "/sl" ( home "web/cgi-bin/sl" );
    (* directoryIndex ["/sl/index"]; *)
    rewriteRule "^/$" "/sl/index" [redirectWith permanent];

    alias "/debian" ( home "debian/repository" );
    directory ( home "debian/repository" ) with
            options [ indexes ];
            orderAllowDeny;
            allowFromAll;
    end;
  end;
end;

distortions.net

Here's RyanMikulovsky's very simple example:

dom "distortions.net" where
  DefaultAlias = false;  (* avoids *@distortions.net e-mail alias *)
  DocumentRoot = home "websites/distortions.net/"
with
  emailAlias "ryan" "ryan@hcoop.net"; (* the only e-mail address I want *)
  wordPress "geology" where (* sets up proper rewrite rules etc. *)
   DocumentRoot = home "websites/geo/wordpress/"
  end;
  web "biblio" where
    DocumentRoot = home "websites/distortions.net/biblio";
  with
   addDefaultCharset "utf-8"; (* probably not necessary... *)
  end;
  web "chemistry" where
   DocumentRoot = home "websites/chemistry";
  with
  end;
  web "gallery" where (* for Gallery PHP software *)
   DocumentRoot = home "websites/gallery";
  with
  end;
end;

covariant.me

This is DaniilFrumin's simple website featuring a bunch of html files generated by a static site generator Hakyll, and a DarcsWeb instance

dom "covariant.me" where
  WWW = begin
    options [indexes];
    set_indexOptions [fancyIndexing];
    readmeName "README";
  end;
with
  web "repos" where
    DocumentRoot = home "www/repos.covariant.me/";
  with
    scriptAlias "/browse" (home "darcsweb/darcsweb.cgi");
    rewriteRule "^/$" "/browse" [redirectWith permanent];
  end;

  simpleWeb "darcs" "websites/stuff/darcs/";

  emailAlias "dan" "<REDACTED>"
end;


CategoryMemberManual CategoryNeedsWork

DomTool/Examples/Full (last edited 2018-10-20 18:24:55 by ClintonEbadi)