diff --git a/docs/README b/docs/README
index ce4b24fe..ae04429b 100644
--- a/docs/README
+++ b/docs/README
@@ -3,16 +3,58 @@ WebService
- Créer le vhost, voir le fichier VHOST pour les exemples
+
+ ServerName webservice.sd.dev
+ AddDefaultCharset utf-8
+
+
+ XSendFile On
+ XSendFilePath /home/vhosts/webservice/shared
+
+
+ DocumentRoot /home/vhosts/webservice/public
+
+ EnableSendfile Off
+ AllowOverride none
+ Require all granted
+
+ Order allow,deny
+ Deny from all
+
+
+ RewriteEngine On
+ RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
+ RewriteCond %{REQUEST_FILENAME} -s [OR]
+ RewriteCond %{REQUEST_FILENAME} -l [OR]
+ RewriteCond %{REQUEST_FILENAME} -d
+ RewriteRule ^.*$ - [NC,L]
+ RewriteRule ^.*$ index.php [NC,L]
+
+
+
+
+
+ RewriteEngine Off
+
+
+
+ # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
+ LogLevel error
+ ErrorLog ${APACHE_LOG_DIR}/webservice-error.log
+ CustomLog ${APACHE_LOG_DIR}/webservice-access.log combined
+
+
- Installer les librairies avec composer
$ composer install
+
- Configurer l'application
La config (fichier application.ini) est à placer dans "application/configs/"
- Exemple de la config dans "docs/config/application.ini"
- (Modifier selon les besoins)
+ Exemple de la config dans "docs/config/application.ini" (Modifier selon les besoins)
+
- APPLICATION_ENV
@@ -25,6 +67,19 @@ WebService
Cette variable est accessible dans PHP.
+ . mod_php
+
+ Add in
+ SetEnv APPLICATION_ENV "development"
+
+. php-fpm
+
+ Add a file in document root path (public/) a file .user.ini
+ env[APPLICATION_ENV] = "development"
+
+ See the .user.ini file
+
+
- Créer les repertoires de données nécessaires
[WORKSPACE]/data/webservice/
@@ -106,6 +161,3 @@ Pour spécifier des éléments de taille (non pris en compte sur le WSDL)
@xsd maxLength=15
-
-
-
diff --git a/docs/VHOST b/docs/VHOST
deleted file mode 100644
index f68d1f45..00000000
--- a/docs/VHOST
+++ /dev/null
@@ -1,117 +0,0 @@
-
-PHP Variables
-=============
-
-. mod_php
-
- Add in
- SetEnv APPLICATION_ENV "development"
-
-. php-fpm
-
- Add a file in document root path (public/) a file .user.ini
- env[APPLICATION_ENV] = "development"
-
- See the .user.dev.ini file
-
-Variables
----------
- : production, staging, development
- Défini le mode de fonctionnement pour les erreurs, etc
-
-
-Development
-===========
-
-
- ServerName webservice.sd.dev
- AddDefaultCharset utf-8
-
-
- XSendFile On
- XSendFilePath /home/vhosts/webservice/shared
-
-
- DocumentRoot /home/vhosts/webservice/public
-
- EnableSendfile Off
- AllowOverride none
- Require all granted
-
- Order allow,deny
- Deny from all
-
-
- RewriteEngine On
- RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
- RewriteCond %{REQUEST_FILENAME} -s [OR]
- RewriteCond %{REQUEST_FILENAME} -l [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^.*$ - [NC,L]
- RewriteRule ^.*$ index.php [NC,L]
-
-
-
-
-
- RewriteEngine Off
-
-
-
- # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
- LogLevel error
- ErrorLog ${APACHE_LOG_DIR}/webservice-error.log
- CustomLog ${APACHE_LOG_DIR}/webservice-access.log combined
-
-
-
-Production
-==========
-
-
- ServerName webservice.scores-decisions.com
- AddDefaultCharset utf-8
- UseCanonicalName On
- UseCanonicalPhysicalPort On
- ServerSignature Off
-
- SetEnv APPLICATION_ENV "production"
-
-
- XSendFile On
- XSendFilePath /home/vhosts/webservice/shared
-
-
- DirectoryIndex index.php
- DocumentRoot /home/vhosts/webservice/current/public
-
- Options FollowSymLinks Indexes
- AllowOverride none
- Require all granted
-
- Order allow,deny
- Deny from all
-
-
- RewriteEngine On
- RewriteCond %{REQUEST_URI} ^/favicon.ico$ [OR]
- RewriteCond %{REQUEST_FILENAME} -s [OR]
- RewriteCond %{REQUEST_FILENAME} -l [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^.*$ - [NC,L]
- RewriteRule ^.*$ index.php [NC,L]
-
-
-
-
-
- RewriteEngine Off
-
-
-
- # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
- LogLevel error
- ErrorLog ${APACHE_LOG_DIR}/webservice-error.log
- CustomLog ${APACHE_LOG_DIR}/webservice-access.log combined
-
-
diff --git a/docs/config/.user.dev.ini b/docs/config/.user.ini
similarity index 100%
rename from docs/config/.user.dev.ini
rename to docs/config/.user.ini
diff --git a/docs/config/application.dev.ini b/docs/config/application.ini
similarity index 100%
rename from docs/config/application.dev.ini
rename to docs/config/application.ini