setup_apache2_virtual_host_domain_running_nextcloud_27
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| setup_apache2_virtual_host_domain_running_nextcloud_27 [2023/06/21 18:58] – created wikiadmin | setup_apache2_virtual_host_domain_running_nextcloud_27 [2023/06/21 21:57] (current) – wikiadmin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Adding a new apache/ | Adding a new apache/ | ||
| + | |||
| + | **Caution: | ||
| + | See: [[install_letsencypt_certbot_tool_ubuntu_server_22_04|Install the letsencypt certbot tool on Ubuntu Server 22 04]] | ||
| 1. Change the working directory to "/ | 1. Change the working directory to "/ | ||
| Line 11: | Line 14: | ||
| Change the detail domain name and SSL path directory to your own and paste the configuration to the " | Change the detail domain name and SSL path directory to your own and paste the configuration to the " | ||
| + | |||
| + | |||
| + | This sample virtual host file was posted at [[https:// | ||
| < | < | ||
| Line 61: | Line 67: | ||
| </ | </ | ||
| - | If using vim, touch the ESQ button to exit INS mode, and enter **:w** [enter] to save edits, and then enter **:q!** to exit Vim. If using Nano, Press " | + | If using vim, press the ESC button to exit vim' |
| 2. Now activate the ' | 2. Now activate the ' | ||
| < | < | ||
| - | a2ensite nextcloud.conf | + | sudo a2ensite nextcloud.conf |
| </ | </ | ||
| - | |||
| - | Setup virtual host for Nextcloud | ||
| 3. Now verify the new apache configuration and make sure you have no error, then restart the apache service. | 3. Now verify the new apache configuration and make sure you have no error, then restart the apache service. | ||
| < | < | ||
| - | apachectl configtest | + | sudo apachectl configtest |
| - | systemctl restart apache2 | + | sudo systemctl restart apache2 |
| </ | </ | ||
setup_apache2_virtual_host_domain_running_nextcloud_27.1687373890.txt.gz · Last modified: 2023/06/21 18:58 by wikiadmin
