Page 1 of 1

Accessing wordpress website instead of XAMPP control panel?

PostPosted: 15. January 2014 17:10
by intranetter
My goal here is to use XAMPP and wordpress for a strictly intranet website. I'm using the latest XAMPP and the bitnami wordpress installer.

Right now, everything works the way I want it except for the site url. You go to any desktop in our domain and type http://ABCintranet and it tries to log into the XAMPP control panel. If you go to http://ABCintranet/wordpress it takes you to the actual wordpress intranet site that you would normally want an end user to see.

How would I go about reversing the two? http://ABCintranet should take you to the actual wordpress site, and something like http://ABCintranet/xampp should take you to the xampp control panel. Alternatively, a different port could be used for xampp control panel access.

Thanks!

Re: Accessing wordpress website instead of XAMPP control pan

PostPosted: 15. January 2014 17:31
by JJ_Tagy
Look in your XAMPP htdocs folder for a file called index.php which auto-forwards to XAMPP admin page.

Re: Accessing wordpress website instead of XAMPP control pan

PostPosted: 15. January 2014 19:16
by intranetter
JJ_Tagy wrote:Look in your XAMPP htdocs folder for a file called index.php which auto-forwards to XAMPP admin page.


Perfect, got it! ABCintranet now loads the wordpress page and ABCintranet/xampp loads the control panel.

Second question, is there any way to mask the /wordpress/ in the url, or would I just have to reinstall wordpress manually in the xampp root directory?

Re: Accessing wordpress website instead of XAMPP control pan

PostPosted: 15. January 2014 19:19
by Altrea

Re: Accessing wordpress website instead of XAMPP control pan

PostPosted: 15. January 2014 19:54
by intranetter
Altrea wrote:namebased virtual hosts are the answer


I added the following to my httpd.conf

<VirtualHost *:80>
ServerName ABCintranet
ServerAlias ABCintranet
DocumentRoot C:/xampp/apps/wordpress
</VirtualHost>

Now going to http://abcintranet gives me an Access Forbidden error, http://abcintranet/wordpress still works just fine

Edit: played around with it, the DocumentRoot had to be C:/xampp/apps/wordpress/htdocs. It masks it if you go to http://bpintranet, but as soon as you start navigating around it adds the /wordpress/ right back. Looks like the rest is on the wordpress side. Thanks for the help!