summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2010-November/000379.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-sysadm/2010-November/000379.html')
-rw-r--r--zarb-ml/mageia-sysadm/2010-November/000379.html175
1 files changed, 175 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2010-November/000379.html b/zarb-ml/mageia-sysadm/2010-November/000379.html
new file mode 100644
index 000000000..6603659bc
--- /dev/null
+++ b/zarb-ml/mageia-sysadm/2010-November/000379.html
@@ -0,0 +1,175 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-sysadm] [207] add default vhost with redirection to www.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%5B207%5D%20add%20default%20vhost%20with%20redirection%20to%0A%09www.mageia.org&In-Reply-To=%3C20101108131314.2258D3F90D%40valstar.mageia.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="000376.html">
+ <LINK REL="Next" HREF="000380.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-sysadm] [207] add default vhost with redirection to www.mageia.org</H1>
+ <B>root at mageia.org</B>
+ <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B207%5D%20add%20default%20vhost%20with%20redirection%20to%0A%09www.mageia.org&In-Reply-To=%3C20101108131314.2258D3F90D%40valstar.mageia.org%3E"
+ TITLE="[Mageia-sysadm] [207] add default vhost with redirection to www.mageia.org">root at mageia.org
+ </A><BR>
+ <I>Mon Nov 8 14:13:14 CET 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000376.html">[Mageia-sysadm] Puppet Report for jonund.mageia.org
+</A></li>
+ <LI>Next message: <A HREF="000380.html">[Mageia-sysadm] [208] - remove comment ( not really needed )
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#379">[ date ]</a>
+ <a href="thread.html#379">[ thread ]</a>
+ <a href="subject.html#379">[ subject ]</a>
+ <a href="author.html#379">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Revision: 207
+Author: boklm
+Date: 2010-11-08 14:13:13 +0100 (Mon, 08 Nov 2010)
+Log Message:
+-----------
+add default vhost with redirection to www.mageia.org
+
+Modified Paths:
+--------------
+ puppet/modules/apache/manifests/init.pp
+
+Added Paths:
+-----------
+ puppet/modules/apache/templates/00_default_vhosts.conf
+
+Modified: puppet/modules/apache/manifests/init.pp
+===================================================================
+--- puppet/modules/apache/manifests/init.pp 2010-11-08 10:36:35 UTC (rev 206)
++++ puppet/modules/apache/manifests/init.pp 2010-11-08 13:13:13 UTC (rev 207)
+@@ -22,6 +22,16 @@
+ group =&gt; root,
+ mode =&gt; 644,
+ }
++
++ file { &quot;00_default_vhosts.conf&quot;:
++ path =&gt; &quot;/etc/httpd/conf/vhosts.d/00_default_vhosts.conf&quot;,
++ ensure =&gt; &quot;present&quot;,
++ owner =&gt; root,
++ group =&gt; root,
++ mode =&gt; 644,
++ notify =&gt; Service['apache'],
++ content =&gt; template(&quot;apache/00_default_vhosts.conf&quot;)
++ }
+ }
+
+ class mod_php inherits base {
+
+Added: puppet/modules/apache/templates/00_default_vhosts.conf
+===================================================================
+--- puppet/modules/apache/templates/00_default_vhosts.conf (rev 0)
++++ puppet/modules/apache/templates/00_default_vhosts.conf 2010-11-08 13:13:13 UTC (rev 207)
+@@ -0,0 +1,65 @@
++# $Id: 00_default_vhosts.conf 250119 2008-07-26 14:51:31Z oden $
++# $HeadURL: svn+<A HREF="ssh://svn.mandriva.com/svn/packages/cooker/apache-conf/current/SOURCES/00_default_vhosts.conf">ssh://svn.mandriva.com/svn/packages/cooker/apache-conf/current/SOURCES/00_default_vhosts.conf</A> $
++# This is an example VirtualHosts configuration.
++#
++# Since Apache 1.3.19, we modified the setup to include some nice tricks:
++#
++# - We added the User and Group directives so VirtualHosts now work with
++# suexec directive. If set, Apache will run all cgi scripts under that
++# user and group (provided the uid and gid are &gt; 100 for security). The
++# directories and cgi files *must* belong to that user/group for the
++# feature to work
++#
++# - We added the Setenv VLOG directive. This works in conjunction with
++# the CustomLog in common.conf. When Setenv VLOG is set, apache will
++# create a /var/log/httpd/VLOG-YYYY-MM-&lt;ServerName&gt;.log instead of logging
++# to access_log. Use this instead of defining a special logfile for
++# each vhost, otherwise you eat up file descriptors.
++#
++# - You can also specify a path for the VLOG for each Vhost, for example,
++# to place the logs in each user's directory. However, if you want to
++# use the file for accounting, place it in a directory owned by root,
++# otherwise the user will be able to erase it.
++#
++# - I suggest only including the ErrorLog *only* if the vhost will use
++# cgi scripts. Again, it saves file descriptors!
++
++
++################# IP-based Virtual Hosts
++# &lt;VirtualHost 192.168.2.100&gt;
++# User jmdault
++# Group jmdault
++# DocumentRoot /home/jmdault/public_html
++# ServerName test2.com
++# Setenv VLOG /home/jmdault/logs
++# ErrorLogs /home/jmdault/test2-error_log
++# &lt;/VirtualHost&gt;
++
++################# Named VirtualHosts
++# NameVirtualHost 111.222.33.44
++# &lt;VirtualHost 111.222.33.44&gt;
++# ServerName www.domain.tld
++# ServerPath /domain
++# DocumentRoot /web/domain
++# &lt;/VirtualHost&gt;
++
++#&lt;VirtualHost alice.com&gt;
++# ServerName alice.com
++# # normal vhost configs
++# &lt;IfModule peruser.c&gt;
++# # this must match a Processor line
++# ServerEnvironment alice users /home/alice
++#
++# # these are optional - defaults to the values specified above
++# MinSpareProcessors 4
++# MaxProcessors 20
++# &lt;/IfModule&gt;
++#&lt;/VirtualHost&gt;
++
++&lt;VirtualHost *:80&gt;
++ DocumentRoot /var/www/html
++ &lt;Location /&gt;
++ Allow from all
++ &lt;/Location&gt;
++ Redirect / <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
++&lt;/VirtualHost&gt;
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: &lt;/pipermail/mageia-sysadm/attachments/20101108/fa4ce81d/attachment-0001.html&gt;
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000376.html">[Mageia-sysadm] Puppet Report for jonund.mageia.org
+</A></li>
+ <LI>Next message: <A HREF="000380.html">[Mageia-sysadm] [208] - remove comment ( not really needed )
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#379">[ date ]</a>
+ <a href="thread.html#379">[ thread ]</a>
+ <a href="subject.html#379">[ subject ]</a>
+ <a href="author.html#379">[ 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>