Commit c00c7dc7 authored by Alan Garcia's avatar Alan Garcia

Normalement on viens de passer de /var/alternc/cgi-bin au cgi-bin Debian standard

parent 61f323d3
......@@ -11,8 +11,6 @@ launching :
in a debian server could help finding the right way to do it (eg: bind9 ) ;)
Questions:
- there is /var/alternc/cgi-bin/ . Should we forget it and use /usr/lib/cgi-bin/ ? If we must have
a specific directory, /var/lib/cgi-bin-alternc ?
- what do we do about /var/alternc/exec.usr/ ?
- we don't need our own php session folder don't we ? (or maybe for alternc-panel writable only ?)
......@@ -53,6 +51,7 @@ Should be fixed, need more test:
- the bind zones, apache vhosts and other dynamic data are in /var/alternc/(bind|apache-vhost)/ => move them to /var/lib/alternc/(samename)
- /var/alternc/db => not used anymore, drop
- /var/alternc/mla => not used anymore, drop
- there is /var/alternc/cgi-bin/ is forgotten and now we use the standard /usr/lib/cgi-bin/
********************************************************************************
FIXED:
......
......@@ -5,17 +5,6 @@ alias /awstats-icon/ /usr/share/awstats/icon/
Allow from all
</Directory>
<Directory /var/alternc/cgi-bin>
AuthUserFile /etc/alternc/awstats.htpasswd
AuthName "Protected Statistics for AlternC"
AuthType Basic
<Files awstats.pl>
require valid-user
</Files>
</Directory>
<Directory /usr/lib/cgi-bin>
AuthUserFile /etc/alternc/awstats.htpasswd
AuthName "Protected Statistics for AlternC"
......
......@@ -54,11 +54,6 @@ EOF
fi
fi
if [ ! -h /var/alternc/cgi-bin/awstats.pl ]; then
ln -sf /usr/lib/cgi-bin/awstats.pl \
/var/alternc/cgi-bin/awstats.pl
fi
logrotate_apache
# Add htpasswd :
......
......@@ -17,7 +17,6 @@ usr/lib/alternc/install.d
usr/sbin
usr/share/alternc/install
usr/share/locale/fr/LC_MESSAGES
var/alternc/cgi-bin
var/alternc/exec.usr
var/alternc/tmp
var/backups/alternc
......
......@@ -4,8 +4,6 @@
# Define the default user and group for mpm-itk
AssignUserId www-data www-data
ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
# Deny access to the root filesystem
<Directory />
Options FollowSymLinks
......@@ -15,14 +13,15 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
</Directory>
#### End security parameters
<Directory /var/alternc/cgi-bin/>
Options FollowSymLinks IncludesNOEXEC ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AddHandler cgi-script .cgi
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
<Directory /usr/share/alternc/panel/admin/>
Order allow,deny
Allow from all
......@@ -69,5 +68,5 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
Include /etc/alternc/bureau.conf
</VirtualHost>
# Now we include all the generated configuration
Include /var/lib/alternc/apache-vhost/vhosts_all.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment