[vhffs-dev] [2254] updated apache panel and public base configurations and added fastcgi configurations

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 2254
Author:   gradator
Date:     2014-12-13 18:00:34 +0100 (Sat, 13 Dec 2014)
Log Message:
-----------
updated apache panel and public base configurations and added fastcgi configurations

Modified Paths:
--------------
    trunk/vhffs-doc/config/apache/panelconf
    trunk/vhffs-doc/config/apache/publicconf

Added Paths:
-----------
    trunk/vhffs-doc/config/apache/panelconf-fastcgi
    trunk/vhffs-doc/config/apache/publicconf-fastcgi

Modified: trunk/vhffs-doc/config/apache/panelconf
===================================================================
--- trunk/vhffs-doc/config/apache/panelconf	2014-12-13 15:13:38 UTC (rev 2253)
+++ trunk/vhffs-doc/config/apache/panelconf	2014-12-13 17:00:34 UTC (rev 2254)
@@ -1,26 +1,23 @@
 <VirtualHost *:80>
-		
-        ServerAdmin adm@xxxxxxxxxx
-        ServerName panel.your.host
-        DocumentRoot /usr/share/vhffs/panel/
-        DirectoryIndex auth.pl index.pl
+	ServerAdmin adm@xxxxxxxxxx
+	ServerName panel.your.host
+	DocumentRoot /usr/share/vhffs/panel/
+	DirectoryIndex index.pl
 
-        <Directory /usr/share/vhffs/panel/>
-                AllowOverride None
-                Options ExecCGI FollowSymLinks
-                Order allow,deny
-                Allow from all
-                AddHandler cgi-script .pl
-        </Directory>
+	<Directory /usr/share/vhffs/panel/>
+		AllowOverride None
+		Options ExecCGI
+		Order allow,deny
+		Allow from all
+		AddHandler cgi-script .pl
+	</Directory>
 
-        ErrorLog /var/log/apache2/panel-error.log
+	ErrorLog /var/log/apache2/panel-error.log
 
-        # Possible values include: 
+	# Possible values include: 
 	#   debug, info, notice, warn, error, crit, alert, emerg
-        LogLevel warn
+	LogLevel warn
 
-        CustomLog /var/log/apache2/panel-access.log combined
-        ServerSignature On
-
+	CustomLog /var/log/apache2/panel-access.log combined
+	ServerSignature On
 </VirtualHost>
-

Added: trunk/vhffs-doc/config/apache/panelconf-fastcgi
===================================================================
--- trunk/vhffs-doc/config/apache/panelconf-fastcgi	                        (rev 0)
+++ trunk/vhffs-doc/config/apache/panelconf-fastcgi	2014-12-13 17:00:34 UTC (rev 2254)
@@ -0,0 +1,28 @@
+<VirtualHost *:80>
+	ServerAdmin adm@xxxxxxxxxx
+	ServerName panel.your.host
+	DocumentRoot /usr/share/vhffs/panel/
+	DirectoryIndex index.pl
+
+	<Directory /usr/share/vhffs/panel/>
+		AllowOverride None
+		Order allow,deny
+		Allow from all
+	</Directory>
+
+	SuExecUserGroup www-data www-data
+	FcgidMaxProcessesPerClass 5
+	<Files "index.pl">
+		SetHandler fcgid-script
+		Options +ExecCGI
+	</Files>
+
+	ErrorLog /var/log/apache2/panel-error.log
+
+	# Possible values include: 
+	#   debug, info, notice, warn, error, crit, alert, emerg
+	LogLevel warn
+
+	CustomLog /var/log/apache2/panel-access.log combined
+	ServerSignature On
+</VirtualHost>

Modified: trunk/vhffs-doc/config/apache/publicconf
===================================================================
--- trunk/vhffs-doc/config/apache/publicconf	2014-12-13 15:13:38 UTC (rev 2253)
+++ trunk/vhffs-doc/config/apache/publicconf	2014-12-13 17:00:34 UTC (rev 2254)
@@ -1,33 +1,41 @@
 <VirtualHost *:80>
+	ServerAdmin adm@xxxxxxxxxx
+	ServerName projects.your.host
+	DocumentRoot /usr/share/vhffs/public
+	DirectoryIndex index.pl
 
-        ServerAdmin adm@xxxxxxxxxx
-        ServerName projects.your.host
-        DocumentRoot /usr/share/vhffs/public
-        DirectoryIndex auth.pl index.pl
+	<Directory /usr/share/vhffs/public/>
+		AllowOverride None
+		Options ExecCGI
+		Order allow,deny
+		Allow from all
+		AddHandler cgi-script .pl
+	</Directory>
 
-        <Directory /usr/share/vhffs/public/>
-                AllowOverride FileInfo
-                Options ExecCGI FollowSymLinks
-                Order allow,deny
-                Allow from all
-                AddHandler cgi-script .pl
-        </Directory>
-
 	# Allows to have /tags/Pouet
-       <IfModule mod_rewrite.c>
-                RewriteEngine On
-		# This is the only way we found to handle
-		# tags with a plus in their label
-                RewriteCond %{THE_REQUEST} ^(?:GET|POST)\ /tags/([^/?]+)(?:\?(\S+))?\ HTTP/\d\.\d$
-                RewriteRule . /tagsearch.pl?search=%1&%2 [NE,L]
-        </IfModule>
+#	<IfModule mod_rewrite.c>
+#		RewriteEngine On
+#		# This is the only way we found to handle
+#		# tags with a plus in their label
+#		RewriteCond %{THE_REQUEST} ^(?:GET|POST)\ /tags/([^/?]+)(?:\?(\S+))?\ HTTP/\d\.\d$
+#		RewriteRule . /tagsearch.pl?search=%1&%2 [NE,L]
+#	</IfModule>
 
-        ErrorLog /var/log/apache2/projects-error.log
+	# Enable tag search through /tags/foo
+	<IfModule mod_rewrite.c>
+		RewriteEngine On
+		# The Vhffs public panel does not appear to work very well when its
+		# URL-path is changed, hence the 302 redirect. B escapes the matched part,
+		# NE avoids escaping the semi-colon.
+		RewriteRule ^/+tags/+(.+)$ /index.pl?do=tags;search=$1 [B,NE,L,R=302]
+	</IfModule>
 
-        # Possible values include:
-        #   debug, info, notice, warn, error, crit, alert, emerg
-        LogLevel warn
+	ErrorLog /var/log/apache2/projects-error.log
 
-        CustomLog /var/log/apache2/projects-access.log combined
-        ServerSignature On
+	# Possible values include:
+	#   debug, info, notice, warn, error, crit, alert, emerg
+	LogLevel warn
+
+	CustomLog /var/log/apache2/projects-access.log combined
+	ServerSignature On
 </VirtualHost>

Added: trunk/vhffs-doc/config/apache/publicconf-fastcgi
===================================================================
--- trunk/vhffs-doc/config/apache/publicconf-fastcgi	                        (rev 0)
+++ trunk/vhffs-doc/config/apache/publicconf-fastcgi	2014-12-13 17:00:34 UTC (rev 2254)
@@ -0,0 +1,46 @@
+<VirtualHost *:80>
+	ServerAdmin adm@xxxxxxxxxx
+	ServerName projects.your.host
+	DocumentRoot /usr/share/vhffs/public
+	DirectoryIndex index.pl
+
+	<Directory /usr/share/vhffs/public/>
+		AllowOverride None
+		Order allow,deny
+		Allow from all
+	</Directory>
+
+	SuExecUserGroup www-data www-data
+	FcgidMaxProcessesPerClass 5
+	<Files "index.pl">
+		SetHandler fcgid-script
+		Options +ExecCGI
+	</Files>
+
+	# Allows to have /tags/Pouet
+#	<IfModule mod_rewrite.c>
+#		RewriteEngine On
+#		# This is the only way we found to handle
+#		# tags with a plus in their label
+#		RewriteCond %{THE_REQUEST} ^(?:GET|POST)\ /tags/([^/?]+)(?:\?(\S+))?\ HTTP/\d\.\d$
+#		RewriteRule . /tagsearch.pl?search=%1&%2 [NE,L]
+#	</IfModule>
+
+	# Enable tag search through /tags/foo
+	<IfModule mod_rewrite.c>
+		RewriteEngine On
+		# The Vhffs public panel does not appear to work very well when its
+		# URL-path is changed, hence the 302 redirect. B escapes the matched part,
+		# NE avoids escaping the semi-colon.
+		RewriteRule ^/+tags/+(.+)$ /index.pl?do=tags;search=$1 [B,NE,L,R=302]
+	</IfModule>
+
+	ErrorLog /var/log/apache2/projects-error.log
+
+	# Possible values include:
+	#   debug, info, notice, warn, error, crit, alert, emerg
+	LogLevel warn
+
+	CustomLog /var/log/apache2/projects-access.log combined
+	ServerSignature On
+</VirtualHost>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/