5823
Comment: domNoDefaultAlias deprecated
|
9004
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#pragma section-numbers off 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]] = mwolson.org = Here is MichaelOlson's annotated DomTool configuration. {{{ domain "mwolson.org" with (* DNS settings *) nameserver "ns1.hcoop.net"; nameserver "ns3.hcoop.net"; dnsDefault "69.90.123.68"; dnsIP "mail" "69.90.123.67"; dnsMail 10 "mail.mwolson.org"; (* email *) handleMail; emailAlias "me" "mwolson"; emailAlias "me.purdue" "mwolson"; emailAlias "me.vending" "mwolson"; emailAlias "mwolson" "mwolson"; emailAlias "hostmaster" "mwolson"; emailAlias "news" "mwolson"; emailAlias "webmaster" "mwolson"; (* Default webspace *) web "www" where DocumentRoot = (home "public_html"); with addDefaultCharset "utf-8"; serverAliasDefault; (* Change www.mwolson.org to mwolson.org *) rewriteCond "%{HTTP_HOST}" "^www\.mwolson\.org$" [cond_nocase]; rewriteRule "^(.*)$" "http://mwolson.org$1" [redirectWith redir301,last]; scriptAlias "/cgi-bin/" (home "cgi-bin/"); rewriteRule "^/$" "http://mwolson.org/web/WelcomePage.html" [last]; rewriteRule "^/blog/projects(.*)" "http://blog.mwolson.org/tech/projects$1" [redirectWith redir301,last]; rewriteRule "^/blog([^.].*)" "http://blog.mwolson.org$1" [redirectWith redir301,last]; rewriteRule "^/cs158" "http://mwolson.org/classes/cs158/index.html" []; rewriteRule "^/favicon\.ico$" "http://mwolson.org/static/logos/favicon.ico" []; rewriteRule "^/static/albums/(.*)" "http://mwolson.risnerolson.org/albums/$1" []; end; (* Blog *) web "blog" where DocumentRoot = (home "public_html/blog"); with addDefaultCharset "utf-8"; alias "/favicon.ico" (home "public_html/static/logos/favicon.ico"); alias "/comments.js" (home "public_html/comments.js"); rewriteRule "^/projects(.*)" "http://blog.mwolson.org/tech/projects$1" []; scriptAlias "/" (home "cgi-bin/pyblosxom/pyblosxom.cgi/"); end; (* DAV access *) webAtIp "69.90.123.81" "dav" with rewriteRule "^(.*)$" "https://dav.mwolson.org$1" [redirect]; end; (* Note: this contains the IP address that I registered for via *) (* the portal. You'll get errors if you try to use it. *) webAtIp "69.90.123.81" "dav" where DocumentRoot = (home "dav"); SSL = use_cert "/etc/apache2/ssl/user/mwolson.org.pem"; with addDefaultCharset "utf-8"; location "/" with davFilesystem; end; end; end; domain "hariken.mwolson.org" with (* Permit email delivery for my computer *) nameserver "ns1.hcoop.net"; nameserver "ns3.hcoop.net"; dnsDefault "66.253.212.116"; dnsMail 10 "mail.mwolson.org"; handleMail; emailAlias "mwolson" "mwolson"; emailAlias "news" "mwolson"; emailAlias "root" "mwolson"; end; }}} = spinlocksolutions.com = Here is DavorOcelic's annotated DomTool configuration. {{{ domain "spinlocksolutions.com" where Aliases = ["spinlock-solutions.com"]; with dnsDefault "69.90.123.68"; dns (dnsNS "deleuze.hcoop.net"); dns (dnsNS "mire.hcoop.net"); dns (dnsA "www" "69.90.123.68"); dns (dnsA "secure" "69.90.123.68"); dns (dnsA "infrastructures" "69.90.123.68"); dns (dnsA "i" "69.90.123.68"); dns (dnsA "mail" "69.90.123.67"); dns (dnsA "rt" "195.29.212.142"); dnsMail 1 "deleuze.hcoop.net"; handleMail; defaultAlias "docelic"; web "www" where DocumentRoot = home "web/spinlocksolutions.com"; with addDefaultCharset "utf-8"; serverAliasDefault; 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; 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; vhost "infrastructures" where DocumentRoot = home "web/infrastructures.sl.com"; with addDefaultCharset "utf-8"; end; end; }}} = distortions.net = Here's RyanMikulovsky's very simple example: {{{ dom "distortions.net" where (* avoids *@distortions.net e-mail alias *) DefaultAlias = false; DocumentRoot = home "public_html/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 "public_html/geo/wordpress/" end; web "biblio" where DocumentRoot = home "public_html/distortions.net/biblio"; with addDefaultCharset "utf-8"; (* probably not necessary... *) end; web "chemistry" where DocumentRoot = home "public_html/chemistry"; with end; web "gallery" where (* for Gallery PHP software *) DocumentRoot = home "public_html/gallery"; with end; end; }}} |
---- /!\ '''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 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''' ---- |
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> =[[
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);
- 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;
- // Check if this form needs update var div = form.getElementsByTagName('div')[0]; var label = div.getElementsByTagName('label')[0]; if (label) {
- var form = document.forms[i]; if (form.className == 'actionsmenu') {
} //--> </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!";
- if ( flgChange )
</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> =[[
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
End of edit conflict