Page 1 of 1

[solved]XAMPP Internal Network Access

PostPosted: 06. January 2012 17:18
by carlbc18
Hi, I'm new to the boards. I have done some searching, and most of the replies i've found are regarding making the website public outside your network. I am not interested in that. I'm some-what familiar with Apache, and i tried to edit a couple of the conf files to allow all, for the ip, but i can't seem to get it to work.


In short, this is what i'm looking for. I'd like to host an internal site to my network accessible from all my machines.
the site is installed in htdocs/xampp/web/<site name>/<site content>

If anyone could help, or point me in the right direction that would be outstanding!
Thanks
Brian

Re: XAMPP Internal Network Access

PostPosted: 06. January 2012 17:26
by carlbc18
operating system is winxp for this deployment, but i have other systems that are win server 2k3 and 2k8 that i need to do this on as well.

Re: XAMPP Internal Network Access

PostPosted: 06. January 2012 17:41
by Altrea
Hi carlbc18,

Don't save your files inside the \xampp\htdocs\xampp\ folder.
Simply create a new directory directly inside your \xampp\htdocs\ folder.

e.g. \xampp\htdocs\web\sitename\sitecontent.php
Now you can access this side from everywhere of this network by URL: http://ip-of-your-xampp-computer/web/si ... ontent.php

best wishes,
Altrea

Re: XAMPP Internal Network Access

PostPosted: 06. January 2012 19:40
by carlbc18
Altrea,

Thank you for your post. I will try the tip, i'll close as solved :)

Re: XAMPP Internal Network Access

PostPosted: 06. January 2012 19:55
by carlbc18
Altrea,

So here's what i did, i moved the structure to \xampp\htdocs\<site>\<content>
restarted apache but when i attempt to access the page. I get an error message saying there are new security measures and i need to edit the httpd-xampp.conf, so in there i edited the Allow from <localhost> line to #Allow from 127.0.0.1:8 and added, Allow from all

but this hasn't changed the behavior, i still can't access anything from outside of the localhost loopback.

Thoughts?

Re: XAMPP Internal Network Access

PostPosted: 06. January 2012 21:02
by Altrea
carlbc18 wrote:when i attempt to access the page. I get an error message saying there are new security measures and i need to edit the httpd-xampp.conf

Then you haven't used the correct url. Read again my post carefully, especially how the url have to look like.
There is only one folder that is protected by the security concept, and that is your \xampp\htdocs\xampp\ folder, where all the sensitive data (the orange administration page) of XAMPP is.

So, if your URL looks like http://ip-address/xampp/...anything.../ then that is not correct.
Remember one thing: directly inside your htdocs folder is a file index.php which does a redirect to that \xampp\htdocs\xampp\ folder. So if you have issues with that redirect, simply delete or rename that file.

carlbc18 wrote:so in there i edited the Allow from <localhost> line to #Allow from 127.0.0.1:8 and added, Allow from all

revert it back to the default values. There is NO need to disable the security concept. That security concept has a reason why it is there.

best wishes,
Altrea

Re: XAMPP Internal Network Access

PostPosted: 06. January 2012 21:23
by carlbc18
got it! i missed in your post where you completely remove the /xampp part, clearly. After doing that, <address>/web/file.php works perfect.

Thanks,
Brian

Re: XAMPP Internal Network Access [SOLVED]

PostPosted: 06. January 2012 21:24
by carlbc18
Thanks, Solved!

Re: [solved]XAMPP Internal Network Access

PostPosted: 06. January 2012 22:11
by Altrea
Glad you got it working :D

Have fun with XAMPP and all that stuff 8)