Search the Community
Showing results for tags 'replace localhost and port with domain name'.
What do I need to do to make all the wiki pages being served from (fake domain with http) of http://myfakedomain.org (instead of http://mymachinename:8082)? I want to test it out till I purchase the real certificate and domain. I want to figure out what changes need to be made to make it happen. In other words, instead of all the URLs starting as: http://mymachinename:8082/mywiki/index.php/Main_Page/ I want all the URLs to start as: http://myfakedomain.org/mywiki/index.php/Main_Page/ I am using in Windows server: MediaWiki 1.35.2 Apache 2.4.47 Win64 from Xampp mysql-8.0.23-winx64 (MySQL :: Download MySQL Community Server) PHP 7.4.3 (from Xampp) This is what I have done: httpd.conf: Include conf/extra/httpd-vhosts.conf Listen 8082 ServerName myfakedomain.org <Directory /> AllowOverride all Require all granted </Directory> D:\Xampp\apache\conf\extra\httpd-vhosts.conf <VirtualHost *:8082> DocumentRoot "D:/Xampp/htdocs/mywiki" ServerName myfakedomain.org </VirtualHost> In [b]LocalSettings.php[/b], I have: $wgServer = "myfakedomain.org"; In C:\Windows\System32\drivers\etc\hosts: 127.0.0.1 myfakedomain.org With the above settings, my web page does not get served from http://myfakedomain.org/mywiki/index.php/Main_Page What changes, or additional settings do I need?