Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)

« HTTPd » : différence entre les versions

De AJLSM
Aller à la navigation Aller à la recherche
m ajout catégories
VirtualHost de base
 
Ligne 11 : Ligne 11 :
* racine: {{path|?}}
* racine: {{path|?}}
* virtulahost: {{path|?}}
* virtulahost: {{path|?}}
== VirtualHost de base ==
<syntaxhighlight lang="apache">
<VirtualHost *:80>
    ServerAdmin ajlsm+PROJET@ajlsm.com
    ServerName ++++URL++++
    ServerAlias www.++++URL++++.com  www.PROJET.prod PROJET.prod
    # Application de recette
    ProxyPass /PROJET-back/ ajp://localhost:9009/PROJET-back/
    ProxyPassReverse /PROJET-back/ ajp://localhost:9009/PROJET-back/
    # Application de production
    ProxyPass / ajp://localhost:8009/PROJET/
    ProxyPassReverse / ajp://localhost:8009/PROJET/
    ErrorLog ${APACHE_LOG_DIR}/error-PROJET.log
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/access-PROJET.log combined
</VirtualHost>
</syntaxhighlight>


[[category:Serveur‏‎]]
[[category:Serveur‏‎]]

Dernière version du 25 mai 2012 à 09:54

Emplacements possibles

[modifier | modifier le wikicode]
  • racine: /etc/httpd/
  • virtulahost: /etc/httpd/conf.d/
  • racine: /etc/apache2/
  • virtulahost: /etc/apache2/sites-enabled/
  • racine: ?
  • virtulahost: ?

VirtualHost de base

[modifier | modifier le wikicode]
<VirtualHost *:80>
    ServerAdmin ajlsm+PROJET@ajlsm.com

    ServerName ++++URL++++
    ServerAlias www.++++URL++++.com  www.PROJET.prod PROJET.prod

    # Application de recette
    ProxyPass /PROJET-back/ ajp://localhost:9009/PROJET-back/
    ProxyPassReverse /PROJET-back/ ajp://localhost:9009/PROJET-back/

    # Application de production
    ProxyPass / ajp://localhost:8009/PROJET/
    ProxyPassReverse / ajp://localhost:8009/PROJET/

    ErrorLog ${APACHE_LOG_DIR}/error-PROJET.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access-PROJET.log combined
</VirtualHost>