0

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 mymachinename:8082)?

I want to test it out in http till I purchase the real certificate and domain. I want to test out what needs to be done to serve all the wiki fakes from http://myfakedomain.org instead of http://mymachinename:8082

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)

In httpd.conf, my current setting is: ServerName=mymachinename:8082 I attempted by replacing with the one below but with that, the server start throws an exception: ServerName=myfakedomain.org

That did not work.

I added another line as: ServerAlias = myfakedomain.org That did not work either and threw an exception in the startup of Apache.

The Apache 2.4.47 Win64 does not have in httpd.conf entries such as <VirtualHost *:80>

However, I attempted by adding the one below in httpd.conf but that throws an exception on the startup of Apache.

<VirtualHost *:80> ServerName mymachinename Redirect /mywiki/ http://myfakkedomain/mywiki/

Do I need to also change something else in Localsettings.php (along with httpd.conf)?

What do I need to do to make all the wiki pages be served from the domain of myfakedomain.org (instead of mymachinename:8082)?

Sam G
  • 1
  • you can [try this](https://stackoverflow.com/questions/17652373/how-to-change-the-url-from-localhost-to-something-else-on-a-local-system-usin). I think the problem is not related to mediawiki. – FER31 Jun 12 '21 at 21:54

0 Answers0