Salut la foule ^^
J’aimerai configurer mes VHost de apaches mais j’ai un peu de mal.
Pour pointer sur mon site web = ok, dolibarr en https = ok, fengoffice rien ni en http ni en https.
J’aimerai que mes vhosts soit accessibles de cette maniere.
lifala.org ou juste lifala.org
dolibarr.lifala.org ou juste dolibarr.lifala.org dans tous les cas que ça pointe directement en https
fengoffice.org ou juste fengoffice.lifala.org dans tous les cas que ça pointe directement en https
donc avec le https quand je le souhaite et avec les “www”.
Pour le premier lien ok, lifala.org ,voici son vhost
[code]<VirtualHost *:80>
ServerAdmin lifala@lifala.org
ServerName lifala.org
DocumentRoot /var/www/lifala
<Directory />
Order Deny,Allow
Deny from all
Options None
AllowOverride None
</Directory>
<Directory /var/www/lifala/>
Options -Indexes FollowSymLinks MultiViews
#AllowOverride = All pour donner la priorité aux fichiers .htaccess
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerSignature Off
#ServerTokens Prod
[/code]
Pour le https voila ce que j’ai fais :
[code]NameVirtualHost *:443
<VirtualHost *:443>
ServerAdmin lifala@lifala.org
ServerName dolibarr.lifala.org
DocumentRoot /var/www/dolibarr/htdocs/
Order Deny,Allow
Deny from all
Options None
AllowOverride None
<Directory /var/www/dolibarr/>
Options -Indexes FollowSymLinks MultiViews
#AllowOverride = All pour donner la priorité aux fichiers .htaccess
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerSignature Off
#ServerTokens Prod
SSLEngine on
SSLCertificateFile /etc/apache2/apache2.cert
SSLCertificateKeyFile /etc/apache2/apache2.key
<VirtualHost *:443>
ServerAdmin lifala@lifala.org
ServerName fengoffice.lifala.org
DocumentRoot /var/www/fengoffice/
<Directory />
Order Deny,Allow
Deny from all
Options None
AllowOverride None
</Directory>
<Directory /var/www/fengoffice/>
Options -Indexes FollowSymLinks MultiViews
#AllowOverride = All pour donner la priorité aux fichiers .htaccess
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerSignature Off
#ServerTokens Prod
SSLEngine on
SSLCertificateFile /etc/apache2/apache2.cert
SSLCertificateKeyFile /etc/apache2/apache2.key
[/code]
Pour arriver sur dolibarr je dois préciser le https manuellement sinon il trouve pas, avec les “www” sa fonctionne.
Mais pour fengoffice il ne pointe pas, j’arrive pas a trouver le site . Il dois y avoir une erreur dans le VHost que j’ai fait mais je ne vois pas, je ne comprend pas trop.
MErci de m’eclaircir.
++
