Thread:Project:Support desk/Can I associate different wikis with different localhost aliases?/reply (2)

But if I do that, then www.mywiki.org and www.mywiki.org are both aliases for localhost, right? And with short urls, the wiki's address becomes domainname/wiki/Main_page (as opposed to domainname/mywiki/index.php without using short urls). When using short urls, the only way to distinguish between 2 different wikis seems to be to name them /wiki1 or /wiki2.

I'm starting to think that what I need to do is use a virtual host, but I'm having trouble setting it up properly. When I write

 ServerName     www.mywiki.org DocumentRoot   "E:/XAMPP/htdocs/mywiki" 

in my httpd-vhosts.conf file, it makes it so that www.mywiki.org directs to the main page, but I can't navigate to other pages.

Also, it loads the page as text, without any pictures or formatting. I fixed this by changing

$wgScriptPath = "/mywiki";

to

$wgScriptPath = "http://www.mywiki.org";

and that seemed to help, but I still can't navigate away from that one page.