Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

27 lignes
886B

  1. <VirtualHost *:80>
  2. #Example configuration for when Apache httpd and Pleroma are on the same host.
  3. #Needed modules: proxy proxy_http proxy_wstunnel rewrite
  4. #This assumes a Debian style Apache config. Put this in /etc/apache2/sites-available
  5. #Doesn't include SSL, just run certbot and let it take care of that.
  6. #Change this:
  7. ServerName pleroma.example.com
  8. RewriteEngine On
  9. RewriteCond %{HTTP:Connection} Upgrade [NC]
  10. RewriteCond %{HTTP:Upgrade} websocket [NC]
  11. RewriteRule /(.*) ws://localhost:4000/$1 [P,L]
  12. ProxyRequests off
  13. ProxyPass / http://localhost:4000/
  14. ProxyPassReverse / http://localhost:4000/
  15. #Change this too:
  16. RequestHeader set Host "pleroma.example.com"
  17. ProxyPreserveHost On
  18. ErrorLog ${APACHE_LOG_DIR}/error.log
  19. CustomLog ${APACHE_LOG_DIR}/access.log combined
  20. </VirtualHost>