[Tech] Apache
Daniel Melnechuk
isis at isisdesign.com
Mon Oct 23 23:42:47 EDT 2006
Thanks Devon. Curious to note that i always run:
/usr/local/sbin/apachectl configtest
after i edit the file httpd.conf to mae sure that there are no
errors! So apache has a bug that it is not catching this config file
error.
Peace,
Dan
On Oct 23, 2006, at 3:56 PM, Devon at Green-Rainbow.org wrote:
> Nobody objects so I'll now install the fix.
>
> Peace
> --Devon
> /~\
> \ / Health Care
> X not warfare
> / \
>
> Dubya won the digital vote
> Kerry won the popular vote
>
> From: Devon at green-rainbow.org
> To: tech at green-rainbow.org
> Date: Thu, 19 Oct 2006 16:50:38 -0400 (EDT)
> Subject: [Tech] Apache
>
> /usr/local/etc/apache/httpd.conf
>
> Alias /pipermail/ "/usr/local/mailman/archives/public/
>
> lacks a closing quote.
>
> Peace
> --Devon
> /~\
> \ / Health Care
> X not warfare
> / \
>
> Dubya won the digital vote
> Kerry won the popular vote
>
> PS: I went ahead and fixed these lines which have been broken for
> years
> but I'm concerned this might expose uncensored archives to spambots
> so I wrote it to /usr/local/etc/apache/httpd.conf-FIXED instead.
>
> $ cd /usr/local/etc/apache/ # -*-grep-*-
> $ grep -Hinr 'alias.*pipermail' httpd.conf.*
> httpd.conf.20031212:669: Alias /pipermail/ "/usr/local/mailman/
> archives/public/
> httpd.conf.20031212:1218: Alias /pipermail/ "/usr/local/mailman/
> archives/public/
> httpd.conf.20031212:1253: Alias /pipermail/ "/usr/local/mailman/
> archives/public/
> httpd.conf.20031212:1285: Alias /pipermail/ "/usr/local/mailman/
> archives/public/
> httpd.conf.20031212:1358: Alias /pipermail/ "/usr/local/mailman/
> archives/public/"
> httpd.conf.20031212:1430: Alias /pipermail/ "/usr/local/mailman/
> archives/public/
> httpd.conf.20031212:1460: Alias /pipermail/ "/usr/local/mailman/
> archives/public/
> httpd.conf.20031212:1504: Alias /pipermail/ "/usr/local/mailman/
> archives/public/
> httpd.conf.20031212:1540: Alias /pipermail/ "/usr/local/mailman/
> archives/public/
> httpd.conf.20031212:1563: Alias /pipermail/ "/usr/local/mailman/
> archives/public/
>
> Here follows the only such line that was not broken
>
> <VirtualHost 38.113.6.73>
>
> ##Dummy Name
> ServerName citytown.massgreens.org
>
> ## List of towns this VirtualHost is serving.
> ## Remove towns name if you set up a website for that town.
>
> # Step 1:
> #
> # Add a set of ServerAliases for each town below
>
> # Somerville
> ServerAlias somerville.green-rainbow.org
> ServerAlias somerville.greenrainbow.org
> ServerAlias somerville.massgreens.org
>
>
> # Cambridge
> ServerAlias cambridge.green-rainbow.org
> ServerAlias cambridge.greenrainbow.org
> ServerAlias cambridge.massgreens.org
>
>
> # For mailman
> ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/"
> Alias /pipermail/ "/usr/local/mailman/archives/public/"
>
>
> # Pass all mailman and pipermail through
> RewriteEngine On
> RewriteRule ^/mailman(.*)$ - [L]
> RewriteRule ^/pipermail(.*)$ - [L]
> RewriteRule ^/icons(.*) - [L]
>
>
> # Step 2:
> #
> # Add a RewriteCond/RewriteRule pair for each city/town
>
> # Somerville
> RewriteCond %{HTTP_HOST} ^Somerville.* [NC]
> RewriteRule ^/(.*) http://www.green-rainbow.org/LocalPages/
> Somerville/$1 [R]
>
> # Cambridge
> RewriteCond %{HTTP_HOST} ^Cambridge.* [NC]
> RewriteRule ^/(.*) http://www.green-rainbow.org/LocalPages/
> Cambridge/$1 [R]
>
>
> # If something didn't match, which it shouldn't,
> # rewrite everything else to go to mailman listinfo for now
> # when we add a web page for this will need to change
>
> RewriteRule ^/.* /mailman/listinfo [R]
>
>
> </VirtualHost>
> _______________________________________________
> Tech mailing list
> Tech at green-rainbow.org
> http://www.green-rainbow.org/mailman/listinfo/tech
> _______________________________________________
> Tech mailing list
> Tech at green-rainbow.org
> http://www.green-rainbow.org/mailman/listinfo/tech
>
More information about the Tech
mailing list