vhost


ServerName palhostellisboa.pt
ServerAlias www.palhostellisboa.pt

RewriteEngine on

# enlever le www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L]
# ajouter le www
RewriteCond %{HTTP_HOST} ^palhostellisboa.pt$
RewriteRule ^(.*) https://www.palhostellisboa.pt/$1 [QSA,L,R=301]

# si projet en PHP => a delete toujours
AssignUserId vasoignants_prod vasoignants_prod
DocumentRoot /home/vasoignants_prod/site/web

RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]



ServerName palhostellisboa.pt
ServerAlias www.palhostellisboa.pt

RewriteEngine on

# enlever le www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L]
# ajouter le www
RewriteCond %{HTTP_HOST} ^palhostellisboa.pt$
RewriteRule ^(.*) https://www.palhostellisboa.pt/$1 [QSA,L,R=301]

SSLCipherSuite HIGH:!aNULL:!MD5:!ADH:!RC4:!DH
SSLHonorCipherOrder on
SSLEngine on
SSLCertificateFile "/etc/letsencrypt/live/www.palhostellisboa.pt/cert.pem"
SSLCertificateKeyFile "/etc/letsencrypt/live/www.palhostellisboa.pt/privkey.pem"
SSLCertificateChainFile "/etc/letsencrypt/live/www.palhostellisboa.pt/chain.pem"

SSLOptions +StdEnvVars


SSLOptions +StdEnvVars

BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

# si projet en PHP
AssignUserId reservation_prod reservation_prod
DocumentRoot /home/reservation_prod/site/web

# si projet en NODEJS
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:4000/$1 [P,L]

ProxyRequests Off
ProxyPass / http://localhost:4000/
ProxyPassReverse / http://localhost:4000/
ProxyPreserveHost On

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.