TechGuides

Apache Reverse Proxy for Nextcloud Regular

Sep 28th, 2019
2,747
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.08 KB | None | 0 0
  1. # Virtual Host for Nextcloud regularly installed with Apache
  2. <VirtualHost *:80>
  3.         ServerName cloud.techguides.yt
  4.         DocumentRoot /var/www/html/nextcloud
  5.         <Directory /var/www/html/nextcloud/>
  6.                 Options +FollowSymlinks
  7.                 AllowOverride All
  8.                 <IfModule mod_dav.c>
  9.                         Dav off
  10.                  </IfModule>
  11.                 SetEnv HOME /var/www/html/nextcloud
  12.                 SetEnv HTTP_HOME /var/www/html/nextcloud
  13.         </Directory>
  14. </VirtualHost>
  15.  
  16. # Virtual Host for some application, running on port 8080
  17. <VirtualHost *:80>
  18.         ServerName wiki.techguides.yt
  19.         ProxyPreserveHost On
  20.         ProxyRequests Off
  21.         ProxyPass / http://localhost:8080/
  22.         ProxyPassReverse / http://localhost:8080/
  23. </VirtualHost>
  24.  
  25. # Virtual Host for standard website
  26. <VirtualHost *:80>
  27.         ServerName techguides.yt
  28.         ServerAdmin webmaster@techguides.yt
  29.         DocumentRoot /var/www/html
  30.         ErrorLog ${APACHE_LOG_DIR}/error.log
  31.         CustomLog ${APACHE_LOG_DIR}/access.log combined
  32. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment