Jump to content

Edit History

userapache123

userapache123


Additional clarification

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? 

userapache123

userapache123


Additional clarification

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)


The Xampp seems to have httpd-vhosts in two places, which are:

D:\Xampp\apache\conf\original\extra\httpd-vhosts

and

D:\Xampp\apache\conf\extra\httpd-vhosts.conf


I assume D:\Xampp\apache\conf\extra\httpd-vhosts.conf is the file that I need to edit.

In the  [b]D:\Xampp\apache\conf\extra\httpd-vhosts.conf[/b] file, I have added entry as:

<VirtualHost *:8082>
    DocumentRoot "D:/Xampp/htdocs/mywikiaocwiki"
    ServerName mymachine:8082
    ServerAlias myfakedomain.org
</VirtualHost>

In [b]httpd.conf[/b], my current setting is:
ServerName=mymachinename:8082 
ServerAlias myfakedomain.org

In [b]LocalSettings.php[/b], I have:

$wgServer = "http://myfakedomain.org";


With the above settings, my web page does not get served from http://myfakedomain.org.

What changes, or additional settings do I need? 

userapache123

userapache123


Additional clarification

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)

 

The Xampp seems to have httpd-vhosts in two places, which are:

D:\Xampp\apache\conf\original\extra\httpd-vhosts

and

D:\Xampp\apache\conf\extra\httpd-vhosts.conf

 

I assume D:\Xampp\apache\conf\extra\httpd-vhosts.conf is the file that I need to edit.

In the  D:\Xampp\apache\conf\extra\httpd-vhosts.conf file, I have added entry as:

<VirtualHost *:8082>
    DocumentRoot "D:/Xampp/htdocs/mywikiaocwiki"
    ServerName mymachine:8082
    ServerAlias myfakedomain.org
</VirtualHost>

 

In httpd.conf, my current setting is:
ServerName=mymachinename:8082 

ServerAlias myfakedomain.org

 

In LocalSettings.php, I have:

$wgServer = "http://myfakedomain.org";


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

userapache123

userapache123


Additional clarification

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)?

userapache123

userapache123

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

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)

I can successfully serve the wiki page using something like:
http://localhost:8082/mywiki/mypage

However, I want to serve all the wiki pages from a domain name (e.g. myregistereddomain.org).
So, instead, I wish all the wiki pages to be served from something like:
http://myregistereddomain.org/mywiki/mypage

How can I do that?

In httpd.conf, my current setting is:
ServerName=localhost:8082 
I attempted by replacing with:
ServerName=myregistereddomain.org

That did not work.

I added another line as:
ServerAlias = myregistereddomain.org
That did not work either.

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

However, I attempted by adding: 

<VirtualHost *:80>
   ServerName myservername
   Redirect /mywiki/ http://myregistereddomain.org/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 myregistereddomain.org (instead of localhost:8082)?

userapache123

userapache123

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

I am using Apache 2.4.47 Win64 from Xampp to serve Wiki (MediaWiki 1.35.2)

I can successfully serve the wiki page using something like:
http://localhost:8082/mywiki/mypage

However, I want to serve all the wiki pages from a domain name (e.g. myregistereddomain.org).
So, instead, I wish all the wiki pages to be served from something like:
http://myregistereddomain.org/mywiki/mypage

How can I do that?

In httpd.conf, my current setting is:
ServerName=localhost:8082 
I attempted by replacing with:
ServerName=myregistereddomain.org

That did not work.

I added another line as:
ServerAlias = myregistereddomain.org
That did not work either.

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

However, I attempted by adding: 

<VirtualHost *:80>
   ServerName myservername
   Redirect /mywiki/ http://myregistereddomain.org/mywiki/
</VirtualHost>


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

×
×
  • 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.