Jump to content
  • 0

Serve wiki pages from a fake domain in http e.g. myfakedomain.org (instead of mymachinename:8082)


userapache123

Question

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? 

Edited by userapache123
Additional clarification (see edit history)
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.