Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Virtual Host for Nextcloud regularly installed with Apache
- <VirtualHost *:80>
- ServerName cloud.techguides.yt
- DocumentRoot /var/www/html/nextcloud
- <Directory /var/www/html/nextcloud/>
- Options +FollowSymlinks
- AllowOverride All
- <IfModule mod_dav.c>
- Dav off
- </IfModule>
- SetEnv HOME /var/www/html/nextcloud
- SetEnv HTTP_HOME /var/www/html/nextcloud
- </Directory>
- </VirtualHost>
- # Virtual Host for some application, running on port 8080
- <VirtualHost *:80>
- ServerName wiki.techguides.yt
- ProxyPreserveHost On
- ProxyRequests Off
- ProxyPass / http://localhost:8080/
- ProxyPassReverse / http://localhost:8080/
- </VirtualHost>
- # Virtual Host for standard website
- <VirtualHost *:80>
- ServerName techguides.yt
- ServerAdmin webmaster@techguides.yt
- DocumentRoot /var/www/html
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment