/[smecontribs]/rpms/smeserver-moodle/contribs7/smeserver-moodle-1.0-removedomainroot.patch
ViewVC logotype

Annotation of /rpms/smeserver-moodle/contribs7/smeserver-moodle-1.0-removedomainroot.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Tue Nov 25 16:20:26 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
Restore

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     -}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed