summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-February/002729.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2011-February/002729.html')
-rw-r--r--zarb-ml/mageia-sysadm/2011-February/002729.html153
1 files changed, 153 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2011-February/002729.html b/zarb-ml/mageia-sysadm/2011-February/002729.html
new file mode 100644
index 000000000..350977a9d
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2011-February/002729.html
@@ -0,0 +1,153 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [1010] add vhost for static.mageia.org
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B1010%5D%20add%20vhost%20for%20static.mageia.org&In-Reply-To=%3C31128149ed28f752d9a3e2b7401c84fd%40www.ephaone.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="002728.html">
+ <LINK REL="Next" HREF="002730.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [1010] add vhost for static.mageia.org</H1>
+ <B>Michael Scherer</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B1010%5D%20add%20vhost%20for%20static.mageia.org&In-Reply-To=%3C31128149ed28f752d9a3e2b7401c84fd%40www.ephaone.org%3E"
+ TITLE="[Mageia-sysadm] [1010] add vhost for static.mageia.org">misc at zarb.org
+ </A><BR>
+ <I>Fri Feb 11 19:15:53 CET 2011</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="002728.html">[Mageia-sysadm] [992] Enable signature again.
+</A></li>
+ <LI>Next message: <A HREF="002730.html">[Mageia-sysadm] [1010] add vhost for static.mageia.org
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2729">[ date ]</a>
+ <a href="thread.html#2729">[ thread ]</a>
+ <a href="subject.html#2729">[ subject ]</a>
+ <a href="author.html#2729">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE> On Fri, 11 Feb 2011 17:46:37 +0100 (CET), <A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">root at mageia.org</A> wrote:
+&gt;<i> Revision: 1010
+</I>&gt;<i> Author: boklm
+</I>&gt;<i> Date: 2011-02-11 17:46:37 +0100 (Fri, 11 Feb 2011)
+</I>&gt;<i> Log Message:
+</I>&gt;<i> -----------
+</I>&gt;<i> add vhost for static.mageia.org
+</I>&gt;<i>
+</I>&gt;<i> Modified Paths:
+</I>&gt;<i> --------------
+</I>&gt;<i> puppet/deployment/websites/manifests/init.pp
+</I>&gt;<i>
+</I>&gt;<i> Added Paths:
+</I>&gt;<i> -----------
+</I>&gt;<i> puppet/deployment/websites/templates/vhost_static.conf
+</I>&gt;<i>
+</I>&gt;<i> Modified: puppet/deployment/websites/manifests/init.pp
+</I>&gt;<i> ===================================================================
+</I>&gt;<i> --- puppet/deployment/websites/manifests/init.pp 2011-02-11 15:39:14
+</I>&gt;<i> UTC (rev 1009)
+</I>&gt;<i> +++ puppet/deployment/websites/manifests/init.pp 2011-02-11 16:46:37
+</I>&gt;<i> UTC (rev 1010)
+</I>&gt;<i> @@ -1,4 +1,16 @@
+</I>&gt;<i> class websites {
+</I>&gt;<i> + class base {
+</I>&gt;<i> + # FIXME :
+</I>&gt;<i> + # We should be able to define this path on each host.
+</I>&gt;<i> + # Maybe using Facter ?
+</I>&gt;<i> + $webdatadir = '/srv/web1-dd0/www'
+</I>
+ This path is ugly and really do not help much to know what is there.
+ What is wrong with the /var/www we used everywhere ?
+
+
+&gt;<i> + # vhost to host static files used by web sites
+</I>&gt;<i> + class static inherits base {
+</I>&gt;<i> + $vhostdir = &quot;$webdatadir/static.$domain&quot;
+</I>&gt;<i> + $svn_location = &quot;<A HREF="svn://svn.$domain/svn/web/www/trunk/g/">svn://svn.$domain/svn/web/www/trunk/g/</A>&quot;
+</I>
+ the same goes for this one ( yes, I already told it on irc , but I rest
+ my case, this is not gonna
+ help in the futur to have a readable system, much like the bunch of
+ symlink on mandriva cluster
+ created just by pure lazyness ).
+
+
+&gt;<i> +&lt;VirtualHost *:80&gt;
+</I>&gt;<i> + ServerName static.&lt;%= domain %&gt;
+</I>&gt;<i> +
+</I>&gt;<i> + DocumentRoot &lt;%= vhostdir %&gt;
+</I>&gt;<i> + CustomLog /var/log/httpd/static_log combined
+</I>&gt;<i> + ErrorLog /var/log/httpd/error_static_log
+</I>&gt;<i> +
+</I>&gt;<i> + FileETag none
+</I>&gt;<i> + Header unset ETag
+</I>&gt;<i> +&#160; &#160; ExpiresActive On
+</I>&gt;<i> +&#160; &#160; ExpiresByType text/css &quot;access plus 1 month&quot;
+</I>&gt;<i> +&#160; &#160;ExpiresByType image/gif &quot;access plus 2 months&quot;
+</I>&gt;<i> +&#160; &#160;ExpiresByType image/png &quot;access plus 2 months&quot;
+</I>&gt;<i> +&#160; &#160;ExpiresByType image/jpeg &quot;access plus 2 months&quot;
+</I>&gt;<i> +&#160; &#160;ExpiresByType image/x-icon &quot;access plus 2 months&quot;
+</I>&gt;<i> +&#160; &#160;ExpiresByType application/x-javascript &quot;access plus 1 month&quot;
+</I>&gt;<i> +&#160; &#160;ExpiresByType text/javascript &quot;access plus 1 month&quot;
+</I>&gt;<i> +&#160; &#160;AddOutputFilterByType DEFLATE text/html text/plain text/xml
+</I>&gt;<i> text/css
+</I>&gt;<i> +&#160; &#160;AddOutputFilterByType DEFLATE application/json text/javascript
+</I>&gt;<i> application/javascript application/x-javascript
+</I>&gt;<i> +
+</I>&gt;<i> + &lt;Location /&gt;
+</I>&gt;<i> + Allow from all
+</I>&gt;<i> + &lt;/Location&gt;
+</I>&gt;<i> +
+</I>&gt;<i> + &lt;Directory &lt;%= vhostdir %&gt;&gt;
+</I>&gt;<i> + Order deny,allow
+</I>&gt;<i> + Allow from All
+</I>&gt;<i> + AllowOverride None
+</I>&gt;<i> + &lt;/Directory&gt;
+</I>&gt;<i> +&lt;/VirtualHost&gt;
+</I>
+ I think you should take in account the templates I wrote for apache,
+ much more concise :
+ <A HREF="http://svnweb.mageia.org/adm/puppet/modules/apache/manifests/init.pp?revision=1021&amp;view=markup">http://svnweb.mageia.org/adm/puppet/modules/apache/manifests/init.pp?revision=1021&amp;view=markup</A>
+
+ And also we should make sure mod_deplate is installed
+
+--
+ Michael Scherer
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="002728.html">[Mageia-sysadm] [992] Enable signature again.
+</A></li>
+ <LI>Next message: <A HREF="002730.html">[Mageia-sysadm] [1010] add vhost for static.mageia.org
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#2729">[ date ]</a>
+ <a href="thread.html#2729">[ thread ]</a>
+ <a href="subject.html#2729">[ subject ]</a>
+ <a href="author.html#2729">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
+mailing list</a><br>
+</body></html>