Ubuntu Xampp access localhost from other pc

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

Ubuntu Xampp access localhost from other pc

Postby johnnemo » 09. December 2013 13:21

I am trying to access my localhost from another computer using the local IP(192.168...)

The problem is that I get access forbidden. I changed the httpd-xampp-conf and it looks like the following:

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

    Order deny,allow
    Allow from all
                Allow from ::1 127.0.0.0/8 \
           fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
          fe80::/10 169.254.0.0/16

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>


But still no luck...Any ideas..??
Last edited by johnnemo on 09. December 2013 15:02, edited 2 times in total.
johnnemo
 
Posts: 5
Joined: 09. December 2013 13:17
XAMPP Version: 5.5.19
Operating System: Ubuntu

Re: Ubuntu Xampp access localhost from other pc

Postby JJ_Tagy » 09. December 2013 13:29

Your hash marks '#' aren't helping you accomplish what you are trying to do.
JJ_Tagy
 
Posts: 537
Joined: 30. January 2012 13:44
XAMPP Version: 1.8.3
Operating System: Windows 7 x64

Re: Ubuntu Xampp access localhost from other pc

Postby johnnemo » 09. December 2013 13:32

Do I need to delete these lines..?I just commented them in order only Allow from all being considered..
johnnemo
 
Posts: 5
Joined: 09. December 2013 13:17
XAMPP Version: 5.5.19
Operating System: Ubuntu

Re: Ubuntu Xampp access localhost from other pc

Postby JJ_Tagy » 09. December 2013 14:06

Looks like you edited your post as I was posting - it looks different for some reason. It was already allowing 192.168 addresses in the original.

From a security perspective, you should leave in the deny from all and then allow your ip range.

Your first line is messed up, btw. That is probably why it is ignoring your configuration.
JJ_Tagy
 
Posts: 537
Joined: 30. January 2012 13:44
XAMPP Version: 1.8.3
Operating System: Windows 7 x64

Re: Ubuntu Xampp access localhost from other pc

Postby johnnemo » 09. December 2013 14:18

I changed the first line..There was data missing..I haven t configured anything else...I can t understand why I get permission denied even if I return the configuration of httpd-xampp-conf to default...
johnnemo
 
Posts: 5
Joined: 09. December 2013 13:17
XAMPP Version: 5.5.19
Operating System: Ubuntu

Re: Ubuntu Xampp access localhost from other pc

Postby Altrea » 09. December 2013 16:44

Disabling the whole security concept is a really good idea... ... NOT.
I'm surprised that you got any helpful replies at all after throwing all security overboard.
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: 6595
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64

Re: Ubuntu Xampp access localhost from other pc

Postby johnnemo » 10. December 2013 00:37

johnnemo wrote:What should I do..?i need to test my app from other sources..What is the ideal configuration to do that...
johnnemo
 
Posts: 5
Joined: 09. December 2013 13:17
XAMPP Version: 5.5.19
Operating System: Ubuntu

Re: Ubuntu Xampp access localhost from other pc

Postby JJ_Tagy » 10. December 2013 01:20

XAMPP is already set up to allow you to test your files in the existing environment - especially a typical local network. If you are trying to modify the security settings, then you are already doing something wrong to begin with.
JJ_Tagy
 
Posts: 537
Joined: 30. January 2012 13:44
XAMPP Version: 1.8.3
Operating System: Windows 7 x64

Re: Ubuntu Xampp access localhost from other pc

Postby johnnemo » 10. December 2013 11:46

I just reinstalled xampp and it works fine....Thanks for your replies!!!
johnnemo
 
Posts: 5
Joined: 09. December 2013 13:17
XAMPP Version: 5.5.19
Operating System: Ubuntu


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 7 guests