TechGuides

Apache Reverse Proxy for Nextcloud Snap

Sep 28th, 2019
3,782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. # Virtual Host for Nextcloud, running with snap!
  2. <VirtualHost *:80>
  3.         ServerName cloud.techguides.yt
  4.         ProxyPreserveHost On
  5.         ProxyRequests Off
  6.         ProxyPass / http://localhost:81/
  7.         ProxyPassReverse / http://localhost:81/
  8. </VirtualHost>
  9.  
  10. # Virtual Host for some application, running on port 8080
  11. <VirtualHost *:80>
  12.         ServerName wiki.techguides.yt
  13.         ProxyPreserveHost On
  14.         ProxyRequests Off
  15.         ProxyPass / http://localhost:8080/
  16.         ProxyPassReverse / http://localhost:8080/
  17. </VirtualHost>
  18.  
  19. # Virtual Host for standard website
  20. <VirtualHost *:80>
  21.         ServerName techguides.yt
  22.         ServerAdmin webmaster@techguides.yt
  23.         DocumentRoot /var/www/html
  24.         ErrorLog ${APACHE_LOG_DIR}/error.log
  25.         CustomLog ${APACHE_LOG_DIR}/access.log combined
  26. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment