1 |
dungog |
1.1 |
diff -urN smeserver-moodle-1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainMoodle smeserver-moodle-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainMoodle |
2 |
|
|
--- smeserver-moodle-1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainMoodle 2007-07-06 21:48:28.000000000 +1000 |
3 |
|
|
+++ smeserver-moodle-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainMoodle 1970-01-01 10:00:00.000000000 +1000 |
4 |
|
|
@@ -1,24 +0,0 @@ |
5 |
|
|
-{ |
6 |
|
|
- my $status = $moodle{'status'} || "disabled"; |
7 |
|
|
- return " # moodle-status is disabled.\n" |
8 |
|
|
- unless $status eq 'enabled'; |
9 |
|
|
- |
10 |
|
|
- my $domain = $moodle{'domain'} || "disabled"; |
11 |
|
|
- return " # no hostname or domain for moodle defined\n" |
12 |
|
|
- if $domain eq 'disabled'; |
13 |
|
|
- |
14 |
|
|
- my $DocRoot = "/opt/moodle/html"; |
15 |
|
|
- |
16 |
|
|
- $OUT = ""; |
17 |
|
|
- $OUT .= "\n"; |
18 |
|
|
- $OUT .= "# Redirect an existing hostname or domain to $DocRoot.\n"; |
19 |
|
|
- $OUT .= "<VirtualHost 0.0.0.0:80>\n"; |
20 |
|
|
- $OUT .= " ServerName $domain\n"; |
21 |
|
|
- $OUT .= " DocumentRoot $DocRoot\n"; |
22 |
|
|
- $OUT .= "</VirtualHost>\n"; |
23 |
|
|
- $OUT .= "<VirtualHost 0.0.0.0:443>\n"; |
24 |
|
|
- $OUT .= " ServerName $domain\n"; |
25 |
|
|
- $OUT .= " DocumentRoot $DocRoot\n"; |
26 |
|
|
- $OUT .= " SSLEngine on\n"; |
27 |
|
|
- $OUT .= "</VirtualHost>\n"; |
28 |
|
|
-} |