[solved]XAMPP Internal Network Access

Problems with the Windows version of XAMPP, questions, comments, and anything related.

[solved]XAMPP Internal Network Access

Postby carlbc18 » 06. January 2012 17:18

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
carlbc18
 
Posts: 6
Joined: 06. January 2012 17:14
Operating System: Win XP, Win 2k8, 2k3 Server

Re: XAMPP Internal Network Access

Postby carlbc18 » 06. January 2012 17:26

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.
carlbc18
 
Posts: 6
Joined: 06. January 2012 17:14
Operating System: Win XP, Win 2k8, 2k3 Server

Re: XAMPP Internal Network Access

Postby Altrea » 06. January 2012 17:41

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: XAMPP Internal Network Access

Postby carlbc18 » 06. January 2012 19:40

Altrea,

Thank you for your post. I will try the tip, i'll close as solved :)
carlbc18
 
Posts: 6
Joined: 06. January 2012 17:14
Operating System: Win XP, Win 2k8, 2k3 Server

Re: XAMPP Internal Network Access

Postby carlbc18 » 06. January 2012 19:55

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?
carlbc18
 
Posts: 6
Joined: 06. January 2012 17:14
Operating System: Win XP, Win 2k8, 2k3 Server

Re: XAMPP Internal Network Access

Postby Altrea » 06. January 2012 21:02

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: XAMPP Internal Network Access

Postby carlbc18 » 06. January 2012 21:23

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
carlbc18
 
Posts: 6
Joined: 06. January 2012 17:14
Operating System: Win XP, Win 2k8, 2k3 Server

Re: XAMPP Internal Network Access [SOLVED]

Postby carlbc18 » 06. January 2012 21:24

Thanks, Solved!
carlbc18
 
Posts: 6
Joined: 06. January 2012 17:14
Operating System: Win XP, Win 2k8, 2k3 Server

Re: [solved]XAMPP Internal Network Access

Postby Altrea » 06. January 2012 22:11

Glad you got it working :D

Have fun with XAMPP and all that stuff 8)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 42 guests