Hello guys,
I set up an ubuntu server in a Pi 4 and install nextcloud into it. Within LAN everything working perfect but from outer internet I can access only the default page of ubuntu.
I have set up static IP, I have set up port 80 in my router and ufw is enable and apache ALLOW from everywhere.
So, when I'm typing my IP address I can access ubuntu default page but when I'm typing IPaddress/nextcloud never get access.
Here is how I set up my /etc/apache2/sites-available/nextcloud.conf
Alternative I use also this
But with this set up the entire thing became more complicated. Typing my IPaddress I can access my nextcloud page instead of default page and when typing IPaddress/nextcloud is not working at all.
All this from my LAN because no internet access at all.
Any help would be appreciated.
I set up an ubuntu server in a Pi 4 and install nextcloud into it. Within LAN everything working perfect but from outer internet I can access only the default page of ubuntu.
I have set up static IP, I have set up port 80 in my router and ufw is enable and apache ALLOW from everywhere.
So, when I'm typing my IP address I can access ubuntu default page but when I'm typing IPaddress/nextcloud never get access.
Here is how I set up my /etc/apache2/sites-available/nextcloud.conf
Code:
Alias /nextcloud "/var/www/html/nextcloud/"
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
</Directory>
ErrorLog ${APACHE_LOG_DIR}error.log
CustomLog ${APACH_LOG-DIR}accss.log combined
Alternative I use also this
Code:
<VirtualHost *:80>
DocumentRoot /var/www/html/nextcloud/
ServerName cptcharis.dyndns.org
ServerAlias /nextcloud "/var/www/html/nextcloud/"
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
</Directory>
ErrorLog ${APACHE_LOG_DIR}error.log
CustomLog ${APACH_LOG-DIR}accss.log combined
</VirtualHost>
But with this set up the entire thing became more complicated. Typing my IPaddress I can access my nextcloud page instead of default page and when typing IPaddress/nextcloud is not working at all.
All this from my LAN because no internet access at all.
Any help would be appreciated.