Topic on Project:Support desk

[RESOLVED] How to Change Localhost Domain Name?

3
Glameglumps33 (talkcontribs)

Hi,

I used to run a few private wikis on my localhost a few years ago (MediaWiki versions 1.18.5, 1.19.2, and a few others), until my computer died. Now I'm trying to pick up the pieces and recreate my wiki on a new computer. Right now, my wiki's URL looks like this:

http://localhost/wiki/Main_Page

(I've given it a short URL).

I'd like it to look more like this:

http://www.mywiki.org/wiki/Main_Page

I know there was a way to do this, because I had multiple wikis with "fake" domain names running on my localhost, but I can't seem to figure out how I did it. Hopefully you guys here at the Support desk can help me find the proper way to do this?

Thanks in advance!

OS: Windows 8.1

XAMPP-Portable: 5.6.3

MediaWiki: 1.24.1

PHP: 5.6.3 (apache2handler)

MySQL: 5.6.21

URL: N/A, Private wiki on localhost

88.130.113.187 (talkcontribs)

Fake domain names can be set up by editing the hosts file somewhere in the Windows folder. For the wiki to produce URLs with a different domain name in them, you have to change the value of $wgServer to what you want the domain to be.

Glameglumps33 (talkcontribs)

Okay, I finally got it. I had seen something else that said I needed to make changes to the hosts file and apache's httpd-vhosts.conf file and it wasn't working. But it worked once I left the httpd-vhosts.conf file alone.

Thanks!

Reply to "[RESOLVED] How to Change Localhost Domain Name?"