Home > Enterprise >  I set up a mediawiki with Apache2.0 and Google cloud but DNS seems weired
I set up a mediawiki with Apache2.0 and Google cloud but DNS seems weired

Time:11-16

I have settled up a personal mediawiki website with an external ip xxx.xxx.xxx.xxx. It is based on Apache2.0.

The weird thing is:

I can visit the site through url http://xxx.xxx.xxx.xxx/index.php/Main_Page, but I cannot via http://my-google-domain-url/index.php/Main_Page

Then, I checked again for my google domain settings, I set in Custom records: the host name being my-google-domain-url and the data is the ipv4 xxx.xxx.xxx.xxx.

After that, I notice I can visit the website via http://my-google-domain-url/mediawiki, it will automatically jump to http://xxx.xxx.xxx.xxx/index.php/Main_Page, while if I try to visit http://my-google-domain-url, it will be the default page of Apache.

P.S. I am following the tutorial from https://www.howtoforge.com/tutorial/how-to-install-mediawiki-on-ubuntu-1804/#requirements in my media wiki settings.

I really don't know what to do? Does anyone know what might be going on here?

CodePudding user response:

You need to change the document root in your Apache configuration file, then restart Apache so that the changes apply.

DocumentRoot "/folder/subFolder/SubFolder"
  • Related