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:44] – [Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP] 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 997: | Line 997: | ||
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 ===== | ===== Configure an Apache Virtual Host File for the Fully Qualified Domain and Local IP ===== | ||
Line 1010: | Line 1019: | ||
< | < | ||
sudo cp 000-default.conf yourdomain-org.conf | 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.1619588698.txt.gz · Last modified: 2021/04/28 05:44 by wikiadmin