Access via HTTP

Hello, I made the configuration of a ssl certificate in apache, I configured a “www.examplenextcloud.com” and I can access everything right, but now via my local network where the server is if I try to access it via ip, example "192.168.90.11 ", he accesses but when I type the user and password he comes back asking for the user. If I type “https://192.168.90.11” it works perfectly, does anyone know how I can fix this?

Hi antiqued4

What happens in your browser, when you just enter your IP address? Does it redirect automatically to https://{yourIP}?

If that is not the case, there could be something wrong in your apache config files. Make sure that users are being redirected straight to the https:// part upon visiting your Nextcloud website.

1 Like

Make sure that users are being redirected straight to the https:// …

When installing Lets Encrypt SSL, it explicitly asks whether to redirect all traffic from 80 to 443 (i.e. http to https)).
If you used different SSLs, look here how to configure the redirection in Apache
https://www.namecheap.com/support/knowledgebase/article.aspx/9821/38/apache-redirect-to-https

Imgur
this is my /etc/apache2/sites-available/000-default.conf file

I added this line to this file:
Redirect / https://example.com

it looks like it worked, i will test
Redirect /