1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
| ...
#LoadModule access_module modules/mod_access.so
#LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule include_module modules/mod_include.so
#LoadModule log_config_module modules/mod_log_config.so
#LoadModule env_module modules/mod_env.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule mime_module modules/mod_mime.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule status_module modules/mod_status.so
#LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule asis_module modules/mod_asis.so
#LoadModule info_module modules/mod_info.so
#LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule dir_module modules/mod_dir.so
#LoadModule imap_module modules/mod_imap.so
#LoadModule actions_module modules/mod_actions.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
...
<VirtualHost serv.etab.xxxx.fr>
ServerName serv.etab.xxxx.fr
ServerAdmin ent.webmaster@etab.xxxx.fr
DocumentRoot /var/www/html/soft
ErrorLog logs/softapache_log
CustomLog logs/softapache_custom_log common
# IUFM : code avant la sécurisation
<Directory "/var/www/html/soft">
# Options None
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# IUFM : modif sécurisation
# <Directory "/var/www/html/soft">
# Options None
# AllowOverride None
# Order deny,allow
# Deny from all
# Allow from 192.16x.xx.*
# </Directory>
#Quelques petites protections sur des dossiers sensibles
<Location /supxml>
AllowOverride None
Order deny,allow
Deny from all
</Location>
<Location /WEB-INF>
AllowOverride None
Order deny,allow
Deny from all
</Location>
<Location /META-INF>
AllowOverride None
Order deny,allow
Deny from all
</Location>
DirectoryIndex index.jsp index.php
JkMount /*.jsp worker1
JkMount /servlet/* worker1
JkOptions +ForwardURICompat
# Regles de reecriture : permettent de faciliter le referencement du site dans les moteurs de recherche
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/([^/]+)/([^/]+)/fiche_(.*)\+{3}([^_]*)_([^_]*)_([^/]+)/?(.*) /jsp/fiche_$6.jsp?CODE=$1&LANGUE=$2&STNAV=$3_$4&RUBNAV=$5$7 [PT,L]
RewriteRule ^/([^/]+)/([^/]+)/fiche_([^_]*)_(.*)\+{3}([^_]*)_([^/]+)/?(.*) /jsp/fiche_$6.jsp?CODE=$1&LANGUE=$2&STNAV=$3&RUBNAV=$4_$5$7 [PT,L]
RewriteRule ^/([^/]+)/([^/]+)/fiche_(.*)\+{3}([^_]*)_(.*)\+{3}([^_]*)_([^/]+)/?(.*) /jsp/fiche_$7.jsp?CODE=$1&LANGUE=$2&STNAV=$3_$4&RUBNAV=$5_$6$8 [PT,L]
RewriteRule ^/([^/]+)/([^/]+)/fiche_([^_]*)_([^_]*)_([^/]+)/?(.*) /jsp/fiche_$5.jsp?CODE=$1&LANGUE=$2&STNAV=$3&RUBNAV=$4$6 [PT,L]
RewriteRule ^/([^/]+)/([^/]+)/fiche_([^_]+)/?(.*) /jsp/fiche_$3.jsp?CODE=$1&LANGUE=$2$4 [PT,L]
</IfModule>
</VirtualHost>
... |
Partager