404 Not found error when attempting to access patient portal through an HTTPS connection

Situation
I keep getting a 404 Error whenever I use anything but the default.conf in apache
I’m using a Linux Server running Ubuntu with Apache and MySQL
Rewrite mod and openSSL are enabled
The patient portal works locally when I’m using the 000-default.conf that comes with apache2 I believe
However, as soon as I connect it to my domain and setup SSL certification it stops working and shows error 404
not found
The requested URL was not found on this server.
Apache/2.4.58 (Ubuntu) Server at mydomain.com Port 443
OpenEMR Version
I’m using OpenEMR version 7.0.2

Browser:
I’m using: Chrome

Operating System
I’m using: The server is running Linux while I’m remoting into the server using SSH through a macOS

Search
Did you search the forum for similar questions? yes I have tried all the troubleshooting they have suggested and nothing has worked for far

Logs
Did you check the logs? Yes I’ve checked the logs
Was there anything pertinent in them? Nothing that relates to the patient portal
Please paste them here (surround with three backticks (```) for readability.
You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All

if your 000-default configuration is listening on port 80, which it likely is, unless you’ve made changes, then you need to be looking at whatever Apache configuration is set to serve the site via HTTPS/TLS. It may be missing required options, or a path that’s set incorrectly, etc. If you can access the clinical side of OpenEMR via HTTPS, then it’s going to probably come down to an issue with rewrite rules or required folder privileges.

1 Like

I figured it out. There was a problem with the root dir in the 000-default.conf file after I changed that, it worked like a charm