Jump to content
  • 0

Serve all 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 be served from (fake domain with http) of myfakedomain.org (instead of mymachinename:8082)?

I want to test it out till I purchase the real certificate and domain. I wan to test out what needs to be done to serve all the wiki fakes from myfakedomain.org instead of 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 exception:
ServerName=myfakedomain.org

That did not work.

I added another line as:
ServerAlias = myfakedomain.org
That did not work either and threw 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 exception on the startup of Apache. 

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

Do I need to also change something else in Localsettings.php (alsong 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)?

Edited by userapache123
Additional clarification (see edit history)
Link to post
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.