Commit d15e7452 authored by Sebastien QUESSON's avatar Sebastien QUESSON

Init 4.1.x branch

parents
#!/bin/bash
# repertoire d'execution du script actuel :
SCRIPTDIR=`dirname "$(readlink -f "$0")"`
DATE=`date '+%y%m%d-%H%M%S'`
LOG="$SCRIPTDIR/ETAPE1_export_${DATE}.log"
OLDIR="$SCRIPTDIR/old"
mkdir -p "${OLDIR}/postgres" 2> /dev/null
mkdir -p "${OLDIR}/ldap" 2> /dev/null
NUM="4.1.0"
NUM_old_major="4.0"
NUM_old="${NUM_old_major}.15"
VERSIONTXT="/home/sites/prodigecatalogue/web/version.txt"
[ -f $VERSIONTXT ] || VERSIONTXT="/home/sites/prodigecatalogue_/web/version.txt"
#######################################################
error_exit()
{
echo "Annulation du script : $1" && exit 1
}
check()
{
case "$2" in
var) [ -z $1 ] && error_exit "$3";;
file) [ -f $1 ] || error_exit "Le fichier $1 n'existe pas";;
dir) [ -d $1 ] || error_exit "Le répertoire $1 n'existe pas";;
esac
}
#######################################################
requisites()
{
echo "Vérification du numéro de version de prodige actuel"
for file in \
$VERSIONTXT \
;do check "$file" file ;done
if [ "`grep ${NUM_old} $VERSIONTXT`" ]
then echo " ${NUM_old} OK"
else echo " ERREUR : Prodige n'est pas en version ${NUM_old}" ; exit
fi
for dir in \
${OLDIR}/postgres \
;do check "$dir" "dir";done
}
get_vars()
{
for file in \
/home/sites/editables_parameters.yml \
;do check "$file" file ;done
# WWWURL= www-domain.tld ou www.domain.tld ou www-xyz.domain.tld ou www.xyz.domain.tld
WWWURL=`awk -F "\"" '/PRO_GEONETWORK_URLBASE/ { print $2 }' /home/sites/editables_parameters.yml | awk -F "/" '{ print $3 }'`
# DNS_SUFFIX= -domain.tld ou .domain.tld ou -xyz.domain.tld ou .xyz.domain.tld
DNS_SUFFIX=`awk -F "\"" '/PRODIGE_URL_ADMINSITE/ { print $2 }' /home/sites/editables_parameters.yml | sed 's|https://adminsite||'`
# DOMAIN= domain.tld ou xyz.domain.tld
DOMAIN=`echo $DNS_SUFFIX | sed 's/^-\?[a-z0-9]*\.//'`
# DNS_PREFIX_SEP = . ou -
DNS_PREFIX_SEP=`echo $WWWURL | sed 's/\(www\)\([\.-]\).*$/\2/'`
user_bdd=`awk '/catalogue_user/ { print $2 }' /home/sites/editables_parameters.yml`
pass_bdd=`awk '/catalogue_password/ { print $2 }' /home/sites/editables_parameters.yml`
host_bdd=`awk '/prodige_host/ { print $2 }' /home/sites/editables_parameters.yml`
#sur prodige CATALOGUE="CATALOGUE" / puis CATALOGUE=alk_respire
DB=`awk '/catalogue_name/ { print $2 }' /home/sites/editables_parameters.yml`
SSL_PWD=`cat /home/sites/editables_parameters.yml| awk '/ldap_password/ { print $NF }'`
LDAP_PWD="${SSL_PWD}"
for param in DNS_SUFFIX DOMAIN DNS_PREFIX_SEP user_bdd pass_bdd host_bdd DB SSL_PWD LDAP_PWD; do
check "${!param}" "var" "Variable $param vide"
done
}
backup_etc()
{
echo "Backup config /etc vers le répertoire ${OLDIR}/etc"
echo "************************************************"
cp -a /etc "${OLDIR}/"
#desactivation taches planifiees
sed -i '/\/home\/tasks/d' /etc/crontab
sed -i '/\/home\/sites/d' /etc/crontab
echo
echo "Copie de proj/epsg"
echo "************************************************"
cp /usr/share/proj/epsg ${OLDIR}/
echo
}
backup_sites()
{
echo "Backup sites"
echo "************************************************"
mkdir "${OLDIR}/sites"
cd /home/sites
for dir in `find -mindepth 1 -maxdepth 1 -type d | sed 's/^\.\///' | egrep "^prodige.+$|^cas|^vendor"`
do
if [ -d /home/sites/${dir} ]; then
echo -e "\tDéplacement de ${dir}"
mv ${dir} "${OLDIR}/sites/"
fi
done
echo
}
backup_postgres()
{
echo "Dump local de la base ${DB} vers ${OLDIR}/postgres/"
echo "************************************************"
su - postgres -c "pg_dump -C -E UTF8 -Fc ${DB}" > ${OLDIR}/postgres/${DB}.dmp
echo "Dump local de la base PRODIGE vers ${OLDIR}/postgres/"
echo "************************************************"
su - postgres -c "pg_dump -C -E UTF8 -Fc -N carmen PRODIGE" > ${OLDIR}/postgres/PRODIGE.dmp
su - postgres -c "pg_dump -C -E UTF8 -Fc -n carmen PRODIGE" > ${OLDIR}/postgres/PRODIGEcarmen.dmp
echo "Dump local des privilèges Postgres vers ${OLDIR}/postgres/"
su - postgres -c "pg_dumpall --globals-only" > ${OLDIR}/postgres/privileges.dmp
echo
echo "Fin de l'export `date`"
}
backup_ldap()
{
echo "Début de l'export LDAP vers ${OLDIR}/ldap"
echo "************************************************"
ldapdumpbin=`which slapcat 2> /dev/null`
if [ $? -eq 0 ]
then
$ldapdumpbin -b cn=config -l "${OLDIR}/ldap/LDAP_cn=config.ldif"
for base in `$ldapdumpbin -b cn=config | egrep "^olcSuffix" | awk -F ":" '{ print $2}'`; do
echo "Backup $base"
$ldapdumpbin -b "$base" -l "${OLDIR}/ldap/LDAP_${base}.ldif"
done
else echo "Backup LDAP NOK, or no slapcat"
fi
echo "Fin de l'export LDAP"
}
main()
{
echo "
#################################"
echo -e "Démarrage de l'export des données de Prodige ${NUM_old_major} localement.
Le script va :
* Effectuer une copie de /etc pour backup dans ${OLDIR}/etc
* Effectuer un déplacement des sites dans ${OLDIR}/sites
* Effectuer le dump des bases de l'application Prodige UNIQUEMENT (effectuez AU PREALABLE vous même la sauvegarde des éventuelles bases tierces)
Attention, cela peut nécessiter plusieurs Go d'espace disque dans le répertoire $OLDIR/postgres et $OLDIR/sites"
read -p "Appuyez sur Entrée pour continuer
#################################"
echo
for daemon in apache2 tomcat7 jetty8; do
[ -f /etc/init.d/$daemon ] && /etc/init.d/$daemon stop
done
/etc/init.d/postgresql restart
for daemon in tomcat7 apache2 jetty8; do
[ -f /etc/init.d/$daemon ] && /etc/init.d/$daemon start
done
echo
}
requisites
get_vars
main
backup_etc
backup_sites
backup_postgres
backup_ldap
echo
echo "Fin de la mise à jour"
echo
exit 0
#!/bin/bash
interactive()
{
echo "Ce script ne doit pas être exécuté
Lancer les commandes les unes après les autres"
exit
}
interactive
/etc/init.d/tomcat7 stop
pg_dropcluster --stop 9.4 main
apt-get remove -y --purge postgresql-9.4 postgresql-9.4-postgis postgresql-client-9.4 postgresql-contrib-9.4 postgresql-doc-9.4 phppgadmin libecwj2 gdal mapserv mapcache php5* apache2* tomcat* libtomcat7-java openjdk-7* postgis* postgres* libproj0
rm -rf /etc/apache2 /usr/lib/cgi-bin /var/lib/postgresql/ /usr/share/phppgadmin /var/lib/jetty8/webapps /etc/jetty8 /etc/tomcat7 /usr/share/jetty8 /usr/share/tomcat7 /etc/php5 /var/lib/php5
rm /usr/bin/wkhtmltopdf > /dev/null 2>&1
rm /usr/local/bin/wkhtmltopdf > /dev/null 2>&1
rm /usr/lib/libproj.so.0 /usr/lib/libproj.so > /dev/null 2>&1
sed -i '/#tasks prodige4.0/,/#end tasks prodige4.0/d' /etc/crontab
echo '
deb http://ftp.fr.debian.org/debian stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main' > /etc/apt/sources.list
export DEBIAN_FRONTEND=noninteractive
echo 'libc6 libraries/restart-without-asking boolean true' | debconf-set-selections
apt-get update
apt-get -o Dpkg::Options::="--force-confold" --force-yes -fuy upgrade
apt-get -o Dpkg::Options::="--force-confold" --force-yes -fuy dist-upgrade
apt-get autoremove -y
apt-get install -y linux-image-4.9.0-8-amd64
reboot
This diff is collapsed.
#!/bin/bash
#Definition du repertoire d'install source
SCRIPTDIR=`dirname $(readlink -f $0)`
DATEINST=`date '+%y%m%d'`
OLDIR="$SCRIPTDIR/old"
################################################
#Fonctions
################################################
red='\033[31m';green='\033[32m';yellow='\033[33m';blue='\033[34m'
magenta='\033[35m';cyan='\033[36m';white='\033[37m'
color_echo ()
{
message="$1";color="$2"
echo -en "$color";echo -e "$message"
tput sgr0
return
}
echo_titre()
{
color_echo "\n\t${1}/$Netapes ${2}\n" "$cyan"
}
wait_exec()
{
rep="0"
[ "$rep" == "0" ]
while [ "$?" != "1" ] ; do
echo -ne ". "
sleep "$2"
pgrep -f "$1" > /dev/null
done
echo
}
error_exit()
{
echo "Annulation du script : $1" && exit 1
}
check()
{
case "$2" in
var) [ -z $1 ] && error_exit "$3";;
file) [ -f $1 ] || error_exit "Le fichier $1 n'existe pas";;
dir) [ -d $1 ] || error_exit "Le répertoire $1 n'existe pas";;
esac
}
################################################
#Verifications
################################################
verif()
{
#Verification présence des donnees 4.0 à importer
for dir in \
${OLDIR}/postgres \
;do check "$dir" "dir";done
for file in \
$OLDIR/postgres/PRODIGE.dmp \
$OLDIR/postgres/PRODIGEcarmen.dmp \
$OLDIR/postgres/$DB.dmp \
;do check "$file" file ;done
}
#Récuperation des paramètres de prodige 4.0
get_vars()
{
for file in \
/home/sites/editables_parameters.yml \
;do check "$file" file ;done
# WWWURL= www-domain.tld ou www.domain.tld ou www-xyz.domain.tld ou www.xyz.domain.tld
WWWURL=`awk -F "\"" '/PRO_GEONETWORK_URLBASE/ { print $2 }' /home/sites/editables_parameters.yml | awk -F "/" '{ print $3 }'`
# DNS_SUFFIX= -domain.tld ou .domain.tld ou -xyz.domain.tld ou .xyz.domain.tld
DNS_SUFFIX=`awk -F "\"" '/PRODIGE_URL_ADMINSITE/ { print $2 }' /home/sites/editables_parameters.yml | sed 's|https://adminsite||'`
# DOMAIN= domain.tld ou xyz.domain.tld
DOMAIN=`echo $DNS_SUFFIX | sed 's/^-\?[a-z0-9]*\.//'`
# DNS_PREFIX_SEP = . ou -
DNS_PREFIX_SEP=`echo $WWWURL | sed 's/\(www\)\([\.-]\).*$/\2/'`
user_bdd=`awk '/catalogue_user/ { print $2 }' /home/sites/editables_parameters.yml`
pass_bdd=`awk '/catalogue_password/ { print $2 }' /home/sites/editables_parameters.yml`
host_bdd=`awk '/prodige_host/ { print $2 }' /home/sites/editables_parameters.yml`
#sur prodige CATALOGUE="CATALOGUE" / puis CATALOGUE=alk_respire
DB=`awk '/catalogue_name/ { print $2 }' /home/sites/editables_parameters.yml`
SSL_PWD=`cat /home/sites/editables_parameters.yml| awk '/ldap_password/ { print $NF }'`
LDAP_PWD="${SSL_PWD}"
for param in DNS_SUFFIX DOMAIN DNS_PREFIX_SEP user_bdd pass_bdd host_bdd DB SSL_PWD LDAP_PWD; do
check "${!param}" "var" "Variable $param vide"
done
}
import_base()
{
echo
SOURCE="$OLDIR/postgres/${1}.dmp"
echo "Import de la base à partir de ${SOURCE}, cf log dans ${2}"
echo "Re-création de la structure" | tee -a "${2}"
sudo -i -u postgres createdb -O "$user_bdd" ${3} "${1}" >> "${2}" 2>&1
sudo -i -u postgres psql -d "${1}" -c "CREATE EXTENSION postgis;"
sudo -i -u postgres /usr/share/postgresql/9.6/contrib/postgis-2.3/postgis_restore.pl "${SOURCE}" > "${SOURCE}.tmp"
echo -ne "Import de la base " | tee -a "${2}"
psql -U "${user_bdd}" -h localhost -f "${SOURCE}.tmp" "${1}" >> "${2}" 2>&1 &
wait_exec "${SOURCE}.tmp" "5"
sudo -i -u postgres psql -d "${1}" -c "
grant all on geometry_columns to ${user_bdd};
grant all on spatial_ref_sys to ${user_bdd};
grant all on geography_columns to ${user_bdd};
" >> "${2}" 2>&1
}
postgres()
{
/etc/init.d/postgresql restart || { echo "Erreur postgres n'a pu démarrer, le script ne peut être lancé"; exit; }
echo "localhost:5432:PRODIGE:$user_bdd:$pass_bdd
localhost:5432:$DB:$user_bdd:$pass_bdd
localhost:5432:postgres:$user_bdd:$pass_bdd" >> /root/.pgpass
chmod 600 /root/.pgpass
chmod 755 ${SCRIPTDIR}
chown -R postgres: "$OLDIR/postgres"
md5pass=`echo -n "${pass_bdd}${user_bdd}"|md5sum|awk '{ print $1 }'`
sudo -i -u postgres psql -c "CREATE ROLE ${user_bdd} ENCRYPTED PASSWORD 'md5${md5pass}' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;"
su - postgres -c "psql -c \"ALTER ROLE $user_bdd SUPERUSER;\""
#Reglage de postgres pour la phase import
sed -i 's/#checkpoint_segments = 3/checkpoint_segments = 100/' /etc/postgresql/9.6/main/postgresql.conf
/etc/init.d/postgresql restart
LOG_CATALOGUE="$SCRIPTDIR/import_$DB.log"
import_base "${DB}" "$LOG_CATALOGUE" "--encoding=UTF8"
LOG_PRODIGE="$SCRIPTDIR/import_PRODIGE.log"
import_base "PRODIGE" "$LOG_PRODIGE" "--encoding=UTF8"
echo
echo "Import carmen, cf log dans $SCRIPTDIR/import_PRODIGEcarmen.log"
sudo -i -u postgres pg_restore -v -d PRODIGE $OLDIR/postgres/PRODIGEcarmen.dmp >> "$SCRIPTDIR/import_PRODIGEcarmen.log" 2>&1
su - postgres -c "psql -c \"ALTER ROLE $user_bdd NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
rm /root/.pgpass
}
echo "
##################################################################"
echo -e "Démarrage de l'import des données Prodige4.0
##################################################################
"
get_vars
verif
read -ep "`color_echo "\nL'importation peut commencer
Appuyez sur Entrée pour continuer ou contrôle-C pour annuler" $yellow`"
echo_titre "1" "Import des bases de données"
postgres
color_echo "L'importation des données est terminée
Vous pouvez passer à l'étape suivante" $yellow
echo
exit 0
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
ALTER TABLE Settings ALTER COLUMN value TYPE text;
DELETE FROM Settings where name='ui/config';
<VirtualHost *:80>
ServerName localhost
DocumentRoot /home/sites/nothing
DirectoryIndex index.htm index.php index.html
<Directory /home/sites/nothing>
Require all denied
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName localhost
DocumentRoot /home/sites/nothing
DirectoryIndex index.htm index.php index.html
<Directory /home/sites/nothing>
Require all denied
</Directory>
Include /etc/apache2/ssl-cert/ssl.conf
</VirtualHost>
LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" custom
CustomLog /var/log/apache2/www#DOMAIN#.log custom
<Directory />
Require all denied
Options None
AllowOverride None
</Directory>
<Directory "/usr/lib/cgi-bin">
Require all granted
SetHandler fcgid-script
</Directory>
<Directory /home/sites>
Require all granted
Options FollowSymLinks
RewriteEngine On
AllowOverride All
php_admin_value open_basedir "/home/:/var/lib/php:/tmp:/dev/urandom:/usr/share/proj"
php_admin_value magic_quotes_gpc off
php_admin_value date.timezone Europe/Paris
Header always set Strict-Transport-Security "max-age=15768000"
</Directory>
<Directory /home/prodige>
Require all granted
Options FollowSymLinks
php_admin_value open_basedir "/home/:/var/lib/php:/tmp"
</Directory>
<VirtualHost *:443>
ServerName admincarto#DOMAIN#
DocumentRoot /home/sites/prodigeadmincarto/carmenwsback/web
<Directory /home/sites/prodigeadmincarto/carmenwsback/web>
php_admin_value "max_input_vars" "120000"
php_admin_value "error_reporting" "6135"
</Directory>
Alias /cartes "/home/prodige/cartes"
Alias /mapimage "/home/prodige/mapimage"
Alias /IHM/reference "/home/prodige/cartes/Publication/reference"
Alias /IHM/metadata/cartes "/home/prodige/cartes/METADATA"
Alias /IHM/IHM/cartes "/home/prodige/cartes/IHM"
Alias /METADATA/METADATA "/home/prodige/cartes/METADATA"
Alias /METADATA/cartes "/home/prodige/cartes/METADATA"
Alias /METADATA/documents "/home/prodige/cartes/METADATA/documents"
Alias /CartesStatiques "/home/prodige/cartes/Publication/CartesStatiques"
Include /etc/apache2/ssl-cert/ssl.conf
</VirtualHost>
<VirtualHost *:80>
ServerName admincarto#DOMAIN#
RewriteEngine on
RewriteCond %{HTTP_HOST} ^admincarto#DOMAIN#$
RewriteRule ^(.*)$ https://admincarto#DOMAIN#$1 [R=permanent,L]
</VirtualHost>
<VirtualHost *:443>
ServerName adminsite#DOMAIN#
DocumentRoot /home/sites/prodigeadminsite/web
DirectoryIndex index.php index.html index.htm
<Directory /home/sites/prodigeadminsite/web>
RewriteRule ^(.*)\.([0-9]+)\.(js|css)$ $1.$3 [L]
</Directory>
Include /etc/apache2/ssl-cert/ssl.conf
</VirtualHost>
<VirtualHost *:80>
ServerName adminsite#DOMAIN#
RewriteEngine on
RewriteCond %{HTTP_HOST} ^adminsite#DOMAIN#$
RewriteRule ^(.*)$ https://adminsite#DOMAIN#$1 [R=permanent,L]
</VirtualHost>
<VirtualHost *:443>
ServerName www#DOMAIN#
ServerAlias catalogue#DOMAIN#
DocumentRoot /home/sites/prodigecatalogue/web
DirectoryIndex index.php
SSLProxyEngine On
ProxyRequests Off
ProxyPreserveHost On
ProxyPassMatch ^/geonetwork\/srv\/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$ https://www#DOMAIN#/geonetwork/srv/api/records/$1/formatters/xml
ProxyPass /geonetwork https://www#DOMAIN#:8443/geonetwork
ProxyPassReverse /geonetwork https://www#DOMAIN#:8443/geonetwork
ProxyPass /cas https://www#DOMAIN#:8444/cas
ProxyPassReverse /cas https://www#DOMAIN#:8444/cas
Include /etc/apache2/ssl-cert/ssl.conf
</VirtualHost>
<VirtualHost *:80>
ServerName www#DOMAIN#
ServerAlias catalogue#DOMAIN#
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www#DOMAIN#$
RewriteRule ^(.*)$ https://www#DOMAIN#$1 [R=permanent,L]
RewriteCond %{HTTP_HOST} ^catalogue#DOMAIN#$
RewriteRule ^(.*)$ https://catalogue#DOMAIN#$1 [R=permanent,L]
</VirtualHost>
<VirtualHost *:443>
ServerName datacarto#DOMAIN#
DocumentRoot /home/sites/prodigedatacarto/public
DirectoryIndex index.php
<IfModule mod_fcgid.c>
IPCCommTimeout 120
<IfModule mapcache_module>
FcgidInitialEnv "MAPCACHE_CONFIG_FILE" "/home/prodige/mapcache/mapcache.xml"
</IfModule>
<Location /mapcache.fcgi>
Require ip 127.0.0.1
SetHandler fcgid-script
</Location>
ScriptAlias /mapcache.fcgi "/usr/local/bin/mapcache.fcgi"
</IfModule>
<Directory /home/sites/prodigedatacarto/public>
Options FollowSymLinks MultiViews
RewriteEngine On
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</Directory>
SetEnvIf Request_URI "/cgi-bin/mapserv?" MS_MAPFILE=/home/prodige/cartes/Publication/wms.map
SetEnvIf Request_URI "/cgi-bin/mapservwfs?" MS_MAPFILE=/home/prodige/cartes/Publication/wfs.map
Include /etc/apache2/ssl-cert/ssl.conf
</VirtualHost>
<VirtualHost *:80>
ServerName datacarto#DOMAIN#
RewriteEngine on
RewriteCond %{HTTP_HOST} ^datacarto#DOMAIN#$
RewriteRule ^(.*)$ https://datacarto#DOMAIN#$1 [R=permanent,L]
</VirtualHost>
<VirtualHost *:443>
ServerName carto#DOMAIN#
DocumentRoot /home/sites/prodigefrontcarto/web
DirectoryIndex index.php
Alias /mapimage "/home/prodige/mapimage"
Alias /IHM/IHM/cartes "/home/prodige/cartes/IHM"
RewriteEngine On
SSLProxyEngine On
RewriteRule ^/cgi-bin/mapserv(?!wfs)(.*) https://datacarto#DOMAIN#/WMS$1 [P]
ProxyPassReverse /cgi-bin/mapserv https://datacarto#DOMAIN#/WMS
RewriteRule ^/cgi-bin/mapservwfs(.*) https://datacarto#DOMAIN#/WFS$1 [P]
ProxyPassReverse /cgi-bin/mapservwfs https://datacarto#DOMAIN#/WFS
RewriteRule ^/wmts(.*) https://datacarto#DOMAIN#/WMTS$1 [P]
ProxyPassReverse /wmts https://datacarto#DOMAIN#/WMTS
RewriteRule ^/wmsc(.*) https://datacarto#DOMAIN#/WMSC$1 [P]
ProxyPassReverse /wmsc https://datacarto#DOMAIN#/WMSC
Include /etc/apache2/ssl-cert/ssl.conf
</VirtualHost>
<VirtualHost *:80>
ServerName carto#DOMAIN#
RewriteEngine on
RewriteCond %{HTTP_HOST} ^carto#DOMAIN#$
RewriteRule ^(.*)$ https://carto#DOMAIN#$1 [R=permanent,L]
</VirtualHost>
<VirtualHost *:443>
ServerName mapserv#DOMAIN#
DocumentRoot /home/sites/prodigeadmincarto/carmenwsmapserv/web
<Directory /home/sites/prodigeadmincarto/carmenwsmapserv/web>
php_admin_value "max_input_vars" "120000"
php_admin_value "error_reporting" "6135"
</Directory>
Alias /cartes "/home/prodige/cartes"
Alias /mapimage "/home/prodige/mapimage"
Alias /IHM/reference "/home/prodige/cartes/Publication/reference"
Alias /IHM/metadata/cartes "/home/prodige/cartes/METADATA"
Alias /IHM/IHM/cartes "/home/prodige/cartes/IHM"
Alias /METADATA/METADATA "/home/prodige/cartes/METADATA"
Alias /METADATA/cartes "/home/prodige/cartes/METADATA"
Alias /METADATA/documents "/home/prodige/cartes/METADATA/documents"
Alias /CartesStatiques "/home/prodige/cartes/Publication/CartesStatiques"
Include /etc/apache2/ssl-cert/ssl.conf
</VirtualHost>
<VirtualHost *:80>
ServerName mapserv#DOMAIN#
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mapserv#DOMAIN#$
RewriteRule ^(.*)$ https://mapserv#DOMAIN#$1 [R=permanent,L]
</VirtualHost>
<VirtualHost *:443>
ServerName telecarto#DOMAIN#
DocumentRoot /home/sites/prodigetelecarto/web
DirectoryIndex index.php
Include /etc/apache2/ssl-cert/ssl.conf
</VirtualHost>
<VirtualHost *:80>
ServerName telecarto#DOMAIN#
RewriteEngine on
RewriteCond %{HTTP_HOST} ^telecarto#DOMAIN#$
RewriteRule ^(.*)$ https://telecarto#DOMAIN#$1 [R=permanent,L]
</VirtualHost>
#
# alkPerson
# heite de person
#
# http://www.alvestrand.no/objectid/1.3.6.1.4.1.html
# 1.3.6.1.4 : branche internet prive
# 1.3.6.1.4.1 : societe privee
# 1.3.6.1.4.1.1 : societelkante (il faudrait s'enregistrer auprès de l'IANA : http://pen.iana.org/pen/PenApplication.page)
#
dn: cn=alkante,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: alkante
#
olcAttributeTypes: ( 1.3.6.1.4.1.1.1.1 NAME 'alkMemberOfGroup'
DESC 'Alkante: member of a group'
SUP member )
#
olcAttributeTypes: ( 1.3.6.1.4.1.1.1.2 NAME 'alkMemberOfProfile'
DESC 'Alkante: member of a profile'
SUP member )
#
olcAttributeTypes: ( 1.3.6.1.4.1.1.1.3 NAME 'alkMember'