my wiki is in "/var/www/html/wiki" and i didnt moved it so far.
i installed the wiki under the path above and went under http through the installation (GUI Webbrowser) after setting the wiki up and testing the login i activated https with Certbot and the result is viewable.
The Path:
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/wiki";
And Documentroot:
DocumentRoot /var/www/html/wiki
Hope this helps :)
Thank you so much so far.