Page 1 of 1

Xampp access outside of local network?

PostPosted: 14. March 2010 02:01
by waveydaveywaves
I successfully created a website using the xampp package on a dedicated windows 2003 server edition computer. I can access my website inside my local network as well as outside. I also can access things such as phpmyadmin, xampp security, and the main xampp page on a computer connected to my local network. When I try to connect to these pages outside of my network, using my IP address followed by the page I want...

EG: http://72.x.x.xx/phpmyadmin

instead of going to phpmyadmin login page it displays this message:

"Access forbidden!

New XAMPP security concept:

Access to the requested object is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

If you think this is a server error, please contact the webmaster.

Error 403
"

Can anyone give me detailed instructions how to allow access to phpadmin, xampp start page, xampp etc. outside of my local network?
I feel stupid asking this question since it is so basic, but i can't seem to figure it out.

I have tried several tutorials on how to do this and have probably messed up passwords and such, but not enough to block me from accessing everything from my own server's computer.

Thanks In Advance -Dave

Re: Xampp access outside of local network?

PostPosted: 14. March 2010 05:02
by MC10
I'm not quite sure, but I recall it had to do with using "Allow from all" entries somewhere and removing "Deny from all" entries.

Re: Xampp access outside of local network?

PostPosted: 15. March 2010 17:34
by waveydaveywaves
what file are you talking about?

Re: Xampp access outside of local network?

PostPosted: 15. March 2010 17:46
by knox-it-avenger
I would also like to find this. I have read hundreds of setups stating you need to change vhosts and I have done that ,but still I cannot access my website outside my lan. Inside my lan it works great.

Thanks for any help.

Re: Xampp access outside of local network?

PostPosted: 15. March 2010 18:02
by CraigS
\xampp\apache\conf\extra\httpd-xampp.conf

Scroll to the bottom


You can either delete the whole <LocationMatch> portion if you want, or modify the portion and just add another Allow from x.x.x.x

Orrr just remove the phpmyadmin section of the location match: IE:

From
Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">


To
Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|webalizer|server-status|server-info))">



Cheers
Craig

Re: Xampp access outside of local network?

PostPosted: 15. March 2010 18:46
by knox-it-avenger
Thanks for the reply. I have deleted the whole locationmatch section from httpd-xampp.conf but my site still times out when trying to get to it via web. I have the port forwarded correctly. I am at a loss.

Re: Xampp access outside of local network?

PostPosted: 15. March 2010 19:02
by CraigS
Just checking, you restarted apache after making the changes correct?

Re: Xampp access outside of local network?

PostPosted: 15. March 2010 19:11
by knox-it-avenger
Yes. restarted. I setup virtual hosts and can access some things from my local machine. But now phpmyadmin has a 403 error.

Re: Xampp access outside of local network?

PostPosted: 17. March 2010 19:16
by waveydaveywaves
thanks ill have to try that out.

Re: Xampp access outside of local network?

PostPosted: 19. March 2010 18:18
by waveydaveywaves
ummmm....

Re: Xampp access outside of local network?

PostPosted: 19. March 2010 19:01
by waveydaveywaves
CraigS wrote:\xampp\apache\conf\extra\httpd-xampp.conf

Scroll to the bottom


You can either delete the whole <LocationMatch> portion if you want, or modify the portion and just add another Allow from x.x.x.x

Orrr just remove the phpmyadmin section of the location match: IE:

From
Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">


To
Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|webalizer|server-status|server-info))">



Cheers
Craig

So wait CraigS by following your instructions above, would this allow me to access phpmyadmin AND pages like xampp home webalizer etc. from ANY computer's network or just a certain ip address, because I need to be able to access it from ANYWHERE.