This is probably a stupid question, but I can't seem to find a solution to it.
Following scenario:
https://sub.doma.in:443 is hosted on my Apache server at home. Works great when connecting from outside. Also works great when connecting from the same network on my computer.
However, my phone cannot connect from the same network (ERR_CONNECTION_TIMED_OUT). So something must be wrong.
I want either: To make any connection to sub.doma.in go over the internet to my hosted site. That's how it is at the moment, I think, but it doesn't work with all devices.
Or (preferably): To make connections to sub.doma.in from the intranet connect to the internal IP directly without getting routed outside first.
Everyone should always end up at the same site, no matter where they're connecting from.
Firewall allows 80 and 443 from anywhere, router has port 443 open only. If you need any config files or logs just tell me. Any help is very much appreciated! :)
My current vhost for the site looks like this:
<VirtualHost *:80>
ServerName sub.doma.in
Alias /.well-known/acme-challenge/ /usr/share/webapps/acme
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/\.well\-known/acme\-challenge/
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
<VirtualHost *:443>
ServerName sub.doma.in
SSLEngine on
SSLCertificateFile xxx
SSLCertificateKeyFile xxx
Include xxx
Protocols h2 http/1.1
Header always set Strict-Transport-Security "max-age=63072000"
CustomLog "xxx" common
DocumentRoot xxx
DirectoryIndex index.php index.html
<Directory xxx>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
</Directory>
<IfModule mod_dav.c>
Dav off
</IfModule>
<FilesMatch \.php$>
SetHandler "proxy:unix:xxx|fcgi://localhost/"
</FilesMatch>
</VirtualHost>