Page 1 of 1

XAMPP accross local network help please

PostPosted: 03. September 2010 14:09
by StrangeRanger
Hi,
I'm running xampp 1.7.3 on an XP machine. It works perfectly on my local machine, but when I try to access it across our local network all I get is the xampp welcome/home page.
I've been reading for hours and have tried everything I've seen suggested including changing the various .conf files, checking port forwarding etc.
I don't understand why across the newt work I can see the "home page" but not access anything else. Can someone please suggest something else for me to try?
Thank you,
-sr

Re: XAMPP accross local network help please

PostPosted: 03. September 2010 15:01
by JonB
what exactly do you mean by "anything else"

I don't understand why across the newt work I can see the "home page" but not access anything else


You should tell us exactly what you are trying to access, and the error messages (or whatever) you are getting. We don't have a mod_VulcanMindMeld for XAMPP quite yet. :shock:

Good Luck


ycf

Re: XAMPP accross local network help please

PostPosted: 03. September 2010 17:18
by StrangeRanger
Sorry, I should have been more precise.
If I type in my IP address from a machine on the network as http://192.168.x.x it comes up as 192.168.x.x/xampp and shows the xampp home page. If I add to the end of that any of the sites I've set up for example 192.168.x.x/xampp/ms (with and w/out a following /) I get:

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
192.168.167.73
9/3/2010 12:12:48 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1


If I enter the address w/out the /xampp I simply get the standard can't connect to server error - try again? message.

How come I can see the "home page" but nothing else?

Thanks,
-sr

Re: XAMPP accross local network help please

PostPosted: 03. September 2010 18:49
by JonB
"sites" you have set up?

Sites are "folders"? (below your Document Root? - usually xampp\htdocs)

DON'T put your sites/folders below the xampp\xampp folder. The DocumentRoot (as defined in the xampp\apache\conf\httpd.conf file) is the 'root' folder for documents to be published by the Apache webserver.

this "192.168.x.x/xampp/ms" should probably be "192.168.x.x/ms"

:?:

Good Luck
:)

Re: XAMPP accross local network help please

PostPosted: 03. September 2010 19:00
by StrangeRanger
My sites/folders are under the htdocs folder. For example I have one "site" called ms that's physically located in xampp\htdocs\ms.

And yes, I've tried 192xxx/ms and 192xxx/ms/ but to no avail

Re: XAMPP accross local network help please

PostPosted: 03. September 2010 19:09
by StrangeRanger
You probably realize this, but you just made me think of a little test. I changed the original index.php file in \xampp\htdocs\xampp to verify if that is the page that is getting served and it is. So for some reason when I access the server over the network it's only allowing me to see what ever is in the \xampp\htdocs\xampp folder.

And yes, the doc root is my httpd.conf file is set to "C:/xampp/htdocs" so I don't understand why it's defaulting to that other folder. Ideas?

Thanks,
-sr

Re: XAMPP accross local network help please

PostPosted: 03. September 2010 19:12
by Altrea
Do you have a .htaccess file in your folder that redirects to the document root and with that automatically use the wrong index.php file which redirects you to the xampp folder?

Re: XAMPP accross local network help please

PostPosted: 03. September 2010 19:59
by StrangeRanger
Altrea wrote:Do you have a .htaccess file in your folder that redirects to the document root and with that automatically use the wrong index.php file which redirects you to the xampp folder?


Nope. I've not set up any .htaccess files at all.

Re: XAMPP accross local network help please

PostPosted: 03. September 2010 20:56
by StrangeRanger
Ok, to make it even more confusing over the network i can access 192xxx/phpmyadmin

wth is going on?
-sr

Re: XAMPP accross local network help please

PostPosted: 03. September 2010 21:04
by Altrea
phpmyadmin is routed through an alias.
Means, your Alias works fine ;)

Re: XAMPP accross local network help please

PostPosted: 16. January 2011 16:21
by BM-1
I came across this thread while googling for the same issue myself.

This may work - after realising that the above didn't work, I tracked the problem to the httpd-vhosts.conf file.

This is using a Win XP server with Ubuntu 10 Lan Client but should be similar for most Windows servers.

You should have set up your httpd-vhosts.conf file - there are lots of FAQ's on this.

Only the first <VirtualHost *:80> entry seems to be accessible. i.e. move the xampp entry to a lower position on the list and save the file.

Stop and restart Apache, then simply type the IP address eg 192.xxx .. of the server machine in the address bar of a browser on another LAN machine. Nothing else, just the IP.

If any one knows how to have all the virtual hosts in the list available, I would be pleased to know. ...

Re: XAMPP accross local network help please

PostPosted: 16. January 2011 16:30
by Altrea
BM-1 wrote:If any one knows how to have all the virtual hosts in the list available, I would be pleased to know. ...

Very easy. Just create valid VHOST entrys.
Every VHOST which matches correct is available.

The first VHOST is the default VHOST which matches every request without another valid VHOST entry.