Score:0

Apache2 default page - Nextcloud server on ubuntu server 22.04

hu flag

I am trying to run NextCloud Server on Ubuntu Server as software itself.

I have done all the steps properly as mentioned, and I am running it on apache2 on virtual machine.

As this is the file I edited is "/etc/apache2/sites-available/nextcloud.conf"

<VirtualHost *:80>
ServerAdmin ***my mail-id***
DocumentRoot /var/www/nextcloud/
ServerName ***my ip***

Alias /nextcloud "/var/www/nextcloud/"

<Directory /var/www/nextcloud/>
    Options +FollowSymlinks
    AllowOverride All
    Require all granted
    <IfModule mod_dav.c>
        Dav off
    </IfModule>
    SetEnv HOME /var/www/nextcloud
    SetEnv HTTP_HOME /var/www/nextcloud
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

After doing all this, when I put my IP address in the browser, I get this as my output: enter image description here

Now I don't know what to do.

Marco avatar
br flag
Have you enabled it with `a2ensite nextcloud` ?
John Hanley avatar
in flag
Since you are using IP addressing for virtual host disable the default site as well.
Smit Desai avatar
hu flag
@Marco Yes sir everything is enabled
Score:0
hu flag

To disable the default page of apache run

sudo a2dissite 000-default.conf

then

sudo systemctl reload apache2

once you do run this steps it will run your desired page and disable the apache default page

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.