Normalement on viens de passer de /var/alternc/cgi-bin au cgi-bin Debian standard
This commit is contained in:
parent
61f323d3a7
commit
c00c7dc7bc
|
@ -11,8 +11,6 @@ launching :
|
||||||
in a debian server could help finding the right way to do it (eg: bind9 ) ;)
|
in a debian server could help finding the right way to do it (eg: bind9 ) ;)
|
||||||
|
|
||||||
Questions:
|
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/ ?
|
- 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 ?)
|
- 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)
|
- 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/db => not used anymore, drop
|
||||||
- /var/alternc/mla => 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:
|
FIXED:
|
||||||
|
|
|
@ -5,17 +5,6 @@ alias /awstats-icon/ /usr/share/awstats/icon/
|
||||||
Allow from all
|
Allow from all
|
||||||
</Directory>
|
</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>
|
<Directory /usr/lib/cgi-bin>
|
||||||
AuthUserFile /etc/alternc/awstats.htpasswd
|
AuthUserFile /etc/alternc/awstats.htpasswd
|
||||||
AuthName "Protected Statistics for AlternC"
|
AuthName "Protected Statistics for AlternC"
|
||||||
|
|
|
@ -54,11 +54,6 @@ EOF
|
||||||
fi
|
fi
|
||||||
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
|
logrotate_apache
|
||||||
|
|
||||||
# Add htpasswd :
|
# Add htpasswd :
|
||||||
|
|
|
@ -17,7 +17,6 @@ usr/lib/alternc/install.d
|
||||||
usr/sbin
|
usr/sbin
|
||||||
usr/share/alternc/install
|
usr/share/alternc/install
|
||||||
usr/share/locale/fr/LC_MESSAGES
|
usr/share/locale/fr/LC_MESSAGES
|
||||||
var/alternc/cgi-bin
|
|
||||||
var/alternc/exec.usr
|
var/alternc/exec.usr
|
||||||
var/alternc/tmp
|
var/alternc/tmp
|
||||||
var/backups/alternc
|
var/backups/alternc
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
# Define the default user and group for mpm-itk
|
# Define the default user and group for mpm-itk
|
||||||
AssignUserId www-data www-data
|
AssignUserId www-data www-data
|
||||||
|
|
||||||
ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
|
|
||||||
|
|
||||||
# Deny access to the root filesystem
|
# Deny access to the root filesystem
|
||||||
<Directory />
|
<Directory />
|
||||||
Options FollowSymLinks
|
Options FollowSymLinks
|
||||||
|
@ -15,14 +13,15 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
|
||||||
</Directory>
|
</Directory>
|
||||||
#### End security parameters
|
#### End security parameters
|
||||||
|
|
||||||
<Directory /var/alternc/cgi-bin/>
|
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
||||||
Options FollowSymLinks IncludesNOEXEC ExecCGI
|
<Directory "/usr/lib/cgi-bin">
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
Order allow,deny
|
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
||||||
Allow from all
|
Order allow,deny
|
||||||
AddHandler cgi-script .cgi
|
Allow from all
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|
||||||
<Directory /usr/share/alternc/panel/admin/>
|
<Directory /usr/share/alternc/panel/admin/>
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
Allow from all
|
||||||
|
@ -69,5 +68,5 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
|
||||||
Include /etc/alternc/bureau.conf
|
Include /etc/alternc/bureau.conf
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
# Now we include all the generated configuration
|
||||||
Include /var/lib/alternc/apache-vhost/vhosts_all.conf
|
Include /var/lib/alternc/apache-vhost/vhosts_all.conf
|
||||||
|
|
Loading…
Reference in New Issue