Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


configure_ubuntu_server_20_04_host_nextcloud_hub_21

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
configure_ubuntu_server_20_04_host_nextcloud_hub_21 [2021/04/28 06:10] – [Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP] wikiadminconfigure_ubuntu_server_20_04_host_nextcloud_hub_21 [2021/04/29 03:56] (current) – [Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP] wikiadmin
Line 997: Line 997:
 db Password: $Pwd#4646116 (Something that meets the applicable complexity requirements) db Password: $Pwd#4646116 (Something that meets the applicable complexity requirements)
  
 +
 +===== Configure Apache for Nextcloud =====
 +Enable a few Apache modifications for Nextcloud to properly run. I believe that this enables the URL Rewrite Module.
 +
 +<code>
 +sudo a2enmod headers env dir mime rewrite
 +
 +sudo service apache2 restart
 +</code>
 ===== Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP ===== ===== Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP =====
  
Line 1019: Line 1028:
 <VirtualHost *:80> <VirtualHost *:80>
  
-    ServerName yourdomain.com+    ServerName yourdomain.org  www.yourdomain.org
     DocumentRoot /var/www/yourdomain_org/public_html/yourdomain_org/nextcloud     DocumentRoot /var/www/yourdomain_org/public_html/yourdomain_org/nextcloud
  
Line 1044: Line 1053:
  
 </VirtualHost> </VirtualHost>
 +</code>
 +
 +===== Enable the Virtual Host =====
 +
 +<code>
 +cd /etc/apache2/sites-available
 +
 +sudo a2ensite yourdomain-org.conf
 +
 +sudo systemctl reload apache2
 +
 </code> </code>
configure_ubuntu_server_20_04_host_nextcloud_hub_21.1619590215.txt.gz · Last modified: 2021/04/28 06:10 by wikiadmin