I can view a directory of my LAMP server running on Ubuntu 20.04 over my LAN using my mobile phone's web browser, when I type http://192.168.X.XXX. However, I can not access any of the sites/directories if I click on them.
This is expected behavior as I have a self-signed OpenSSL certificate on the LAMP, but I also have a 000-default.conf apache config
When I type https://192.168.X.XXX I correctly get denied access.
My question is:
What do I need to do to make local LAMP server url's available over LAN for testing?
For example, I would like to access.
https://localhost.devsite.com from my mobile phone, also a nextcloud server installation as well.
In a nutshell, my phone can "see" the LAMP server on LAN, but not the actual websites on the LAMP server..
What gives?
My wordpress install(s) has:
<VirtualHost *:443> ServerName localhost.someothersite.org ServerAlias www.localhost.someothersite.org # If this is the default configuration file we can use: 'ServerName localhost' or also 'ServerAlias localhost'. ServerAdmin [email protected] ErrorLog ${APACHE_LOG_DIR}/localhost.someothersite.org.error.log CustomLog ${APACHE_LOG_DIR}/localhost.someothersite.org.access.log combined DocumentRoot /var/www/html/someothersite.org <Directory /var/www/html/someothersite.org> Options None FollowSymLinks # Enable .htaccess Overrides: AllowOverride All DirectoryIndex index.php Order allow,deny Allow from all Require all granted </Directory> <Directory /var/www/html/someothersite.org/wp-content> Options FollowSymLinks Order allow,deny Allow from all </Directory> SSLEngine on SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key </VirtualHost> My nextcloud install has:
<VirtualHost *:443> DocumentRoot /var/www/html/nextcloud/ ServerName nextcloudinstall.org <Directory /var/www/html/nextcloud/> Require all granted AllowOverride All Options FollowSymLinks MultiViews Satisfy Any <IfModule mod_dav.c> Dav off </IfModule> </Directory> </VirtualHost> My Hosts file has:
127.0.0.1 nextcloudinstall.org 127.0.0.1 localhost.someothersite.org