configure_ubuntu_server_20_04_host_nextcloud_hub_21
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
configure_ubuntu_server_20_04_host_nextcloud_hub_21 [2021/04/28 05:32] – [Setup a MySQL Database for the Nextcloud Installation using PhpMyAdmin] wikiadmin | configure_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 996: | Line 996: | ||
db Password: $Pwd# | db Password: $Pwd# | ||
+ | |||
+ | |||
+ | ===== Configure Apache for Nextcloud ===== | ||
+ | Enable a few Apache modifications for Nextcloud to properly run. I believe that this enables the URL Rewrite Module. | ||
+ | |||
+ | < | ||
+ | sudo a2enmod headers env dir mime rewrite | ||
+ | |||
+ | sudo service apache2 restart | ||
+ | </ | ||
+ | ===== Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP ===== | ||
+ | |||
+ | Change directories to the sites available virtual host subdirectory. | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | |||
+ | ls | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | sudo cp 000-default.conf yourdomain-org.conf | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | sudo vim yourdomain-org.conf | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | ServerName yourdomain.org | ||
+ | DocumentRoot / | ||
+ | |||
+ | < | ||
+ | Require all granted | ||
+ | AllowOverride All | ||
+ | Options FollowSymLinks MultiViews | ||
+ | |||
+ | < | ||
+ | Dav off | ||
+ | </ | ||
+ | |||
+ | RewriteEngine On | ||
+ | RewriteRule ^/ | ||
+ | RewriteRule ^/ | ||
+ | RewriteRule ^/ | ||
+ | RewriteRule ^/ | ||
+ | RewriteRule ^/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ErrorLog ${APACHE_LOG_DIR}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Enable the Virtual Host ===== | ||
+ | |||
+ | < | ||
+ | cd / | ||
+ | |||
+ | sudo a2ensite yourdomain-org.conf | ||
+ | |||
+ | sudo systemctl reload apache2 | ||
+ | |||
+ | </ |
configure_ubuntu_server_20_04_host_nextcloud_hub_21.1619587950.txt.gz · Last modified: 2021/04/28 05:32 by wikiadmin