31,029
edits
m (Eldy moved page User:Jtraulle/DiscourseMigration/Implementation to Draft:Discourse Implementation and Exploitation) |
mNo edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
=== Apache2 config === | |||
== | |||
Les forums sont accessibles depuis les url https://www.dolibarr.org/forum | |||
Apache2 virtual hosts config <code>dolibarr.fr.conf</code> and <code>dolibarr.org.conf</code> has been copied from <code>vmprod1</code> (Servername apache directive has just been modified to match names specified in [[#Addresses]]). | Apache2 virtual hosts config <code>dolibarr.fr.conf</code> and <code>dolibarr.org.conf</code> has been copied from <code>vmprod1</code> (Servername apache directive has just been modified to match names specified in [[#Addresses]]). | ||
| Line 43: | Line 12: | ||
<syntaxhighlight lang="apache"> | <syntaxhighlight lang="apache"> | ||
# To allow the rewrite on rss that is not a redirect from browser | |||
SSLProxyEngine on | |||
SSLProxyVerify none | |||
SSLProxyCheckPeerCN off | |||
SSLProxyCheckPeerExpire off | |||
# Redirection pour compatibilite avec ancien forum kunena | |||
RewriteRule ^/forum/user/(\d+)-(.*) /forum/u/$2/summary [L,R=permanent] | |||
RewriteRule ^/forumold/.*/(\d+)-(.*)$ /forum/t/$2 [L,R=permanent] | |||
# Redirection pour transfert apache - discourse | |||
<Location "/forum"> | <Location "/forum"> | ||
ProxyPass "http:// | # Deny from all | ||
# Allow from 37.170.87.101 | |||
# RequestHeader set X-Forwarded-Port "443" | |||
# RequestHeader set X-Forwarded-Proto "https" | |||
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME} | |||
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS} | |||
ProxyPreserveHost On | |||
ProxyPass "http://127.0.0.1:8800/forum" connectiontimeout=60 timeout=60 | |||
ProxyPassReverse "http://127.0.0.1:8800/forum" | |||
</Location> | </Location> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Firewall == | |||
Les regles du firewall sont définies et activé par lescript | |||
/home/dolibarr/tools/firewallvmprod1 | |||
TODO Utilisé ufw | |||
=== Files === | === Files === | ||