welcome: please sign in

Diff for "DomTool/Examples/Full"

Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2007-11-12 02:58:27
Size: 2786
Editor: MichaelOlson
Comment: Initial contents
Revision 5 as of 2007-11-21 05:00:10
Size: 3212
Editor: MichaelOlson
Comment: Update
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
This page contains a number of working examples of DomTool configuration. 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.
Line 7: Line 7:
= MichaelOlson = = mwolson.org =
Line 19: Line 19:
  dnsIP "hariken" "66.253.212.116"; (* my home computer *)
Line 22: Line 21:

  (* 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";
Line 48: Line 57:
  (* Example of serving page to deleuze, should we ever decide to *)
  (* allow that *)

(* vhost "git" where *)
(* WebNodes = ["deleuze"]; *)
(* with ... *)
(* end; *)
Line 68: Line 69:
  vhost "dav" with   vhost "dav" where
    WebPlaces = [web_place web_node "69.90.123.81"];
  with
Line 72: Line 75:
  (* Note: this contains the IP address that I registered for via *)
  (* the portal. You'll get errors if you try to use it. *)
Line 73: Line 78:
    WebPlaces = [web_place web_node "69.90.123.81"];
Line 74: Line 80:
    SSL = use_cert "/etc/apache2/ssl/apache.pem";     SSL = use_cert "/etc/apache2/ssl/user/mwolson.org.pem";
Line 83: Line 89:
  (* email *) 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";
Line 85: Line 98:
  emailAlias "me" "mwolson";
  emailAlias "me.purdue" "mwolson";
  emailAlias "me.vending" "mwolson";
Line 89: Line 100:
  emailAlias "hostmaster" "mwolson";
Line 91: Line 101:
  emailAlias "webmaster" "mwolson";   emailAlias "root" "mwolson";

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 "www" "69.90.123.68";
  dnsIP "blog" "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 *)
  vhost "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 *)
  vhost "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 *)
  vhost "dav" where
    WebPlaces = [web_place web_node "69.90.123.81"];
  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. *)
  vhost "dav" where
    WebPlaces = [web_place web_node "69.90.123.81"];
    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;

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