Yes, it is a mess.... got fouled up when I tried to install joomla to restore an old site, but joomla did not install correctly and I had to go to wordpress to get my site up in time for clients to reserve tax preparation appointments. My 'web host' I was using with my internet provider bit the dust... cant get it to even load the control panel... that is what started all of this hassle....
results of apachectl request:
VirtualHost configuration:
*:443 is a NameVirtualHost
default server portman.no-ip.biz (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)
port 443 namevhost portman.no-ip.biz (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)
port 443 namevhost smartvestoraltoona.com (/etc/apache2/sites-enabled/smartvestoraltoona.com-le-ssl.conf:2)
port 443 namevhost vimcor.com (/etc/apache2/sites-enabled/webmin.1675970250-le-ssl.conf:2)
*:80 is a NameVirtualHost
default server portman.no-ip.biz (/etc/apache2/sites-enabled/portman.no-ip.biz.conf:1)
port 80 namevhost portman.no-ip.biz (/etc/apache2/sites-enabled/portman.no-ip.biz.conf:1)
port 80 namevhost smartvestoraltoona.com (/etc/apache2/sites-enabled/smartvestoraltoona.com.conf:1)
port 80 namevhost vimcor.com (/etc/apache2/sites-enabled/vimcor.com.conf:1)
port 80 namevhost vimcor.com (/etc/apache2/sites-enabled/webmin.1675970250.conf:1)
Can you look for any .htaccess file for Apache? Because some of the redirects are not done by the VirtualHost's
Also, change <VirtualHost _default_:443> to <VirtualHost *:443> in your smartvestoraltoona conf you just showed
Here is why the domains look wrong in the browser
curl -IL http://smartvestoraltoona.com
(first redirect by VirtualHost to HTTPS is fine)
HTTP/1.1 301 Moved Permanently
Server: Apache/2.4.41 (Ubuntu)
Location: https://smartvestoraltoona.com/
(but that gets redirected to portman. By .htaccess maybe? Or WordPress?)
HTTP/1.1 301 Moved Permanently
Server: Apache/2.4.41 (Ubuntu)
X-Redirect-By: WordPress
Location: https://portman.no-ip.biz/
(which ends up at portman)
HTTP/1.1 200 OK
Server: Apache/2.4.41 (Ubuntu)
Link: <https://portman.no-ip.biz/index.php/wp-json/>; rel="https://api.w.org/"
(other headers omitted)
Agree that's the right method for conf files. But, this looks like a duplicate of the file below so I already asked them to remove the vimcor.com.conf copy entirely (after making a backup copy).
the only .htaccess file is see is from /var/www/html:
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I did not see an .htaccess file in wordpress, but I did change one setting in the settings screen. Now when going to vimcor.com the url stays vimcor.com, as it does if you enter portman.no-ip.biz. However, smartvestoraltoona.com can no longer be reached.