1 |
diff -urN smeserver-wordpress-1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainWordpress smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainWordpress |
2 |
--- smeserver-wordpress-1.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainWordpress 2007-07-06 16:14:52.000000000 +1000 |
3 |
+++ smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/80OptDomainWordpress 1970-01-01 10:00:00.000000000 +1000 |
4 |
@@ -1,24 +0,0 @@ |
5 |
-{ |
6 |
- my $status = $wordpress{'status'} || "disabled"; |
7 |
- return " # wordpress-status is disabled." |
8 |
- unless $status eq 'enabled'; |
9 |
- |
10 |
- my $domain = $wordpress{'domain'} || "disabled"; |
11 |
- return " # no hostname or domain for wordpress defined" |
12 |
- if $domain eq 'disabled'; |
13 |
- |
14 |
- my $DocRoot = "/opt/wordpress"; |
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 |
-} |