Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

Access to requested directory is only available from local

Network Sharing , TCP/IP, Internet, Wireless, Exchange, IIS, ISA and Print

Access to requested directory is only available from local

Postby guest » Sat Jul 14, 2012 10:06 am

I have ubuntu installed on my server and XAMPP 1.7. Everything works for localhost address I can access XAMPP but from exernal address(81.196.40.100/xampp) i'll get the folowing error message:

New XAMPP security concept:

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

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

here are the contents of httpd-xampp.conf:

# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny 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 \
81.196.40.94/32
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>


ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:29:f1:d2:c4
inet addr:81.196.40.100 Bcast:81.196.40.127 Mask:255.255.255.192
inet6 addr: fe80::201:29ff:fef1:d2c4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:84631 errors:0 dropped:0 overruns:0 frame:0
TX packets:31805 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34777299 (34.7 MB) TX bytes:6066076 (6.0 MB)
Interrupt:17 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2168 errors:0 dropped:0 overruns:0 frame:0
TX packets:2168 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:790484 (790.4 KB) TX bytes:790484 (790.4 KB)

if someone could help me.......10x
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 9026
Joined: Mon Nov 27, 2006 1:10 pm

Re: Access to requested directory is only available from local

Postby guest » Sat Jul 14, 2012 10:07 am

Try changing the <LocationMatch> section to

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
#Deny 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>

. It worked for me ..
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 9026
Joined: Mon Nov 27, 2006 1:10 pm

Re: Access to requested directory is only available from local

Postby guest » Sat Jul 14, 2012 10:07 am

Add your server IP address (may be your modem address from your ISP) to the section on "new security concept". I don't yet know what this syntax is, but this works for me. It seems more appropriate than allowing ALL.

Allow from ::1 127.0.0.0/8 \
::1 xxx.xxx.xxx.xxx/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
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 9026
Joined: Mon Nov 27, 2006 1:10 pm

Re: Access to requested directory is only available from local

Postby guest » Sat Jul 14, 2012 10:28 am

You may need to restart the Apache service after the change.
Tablet and Smartphone Setup Guide
http://www.quicksetupguide.com

Troubleshooting Vista Wireless
http://chicagotech.net/
guest
 
Posts: 9026
Joined: Mon Nov 27, 2006 1:10 pm


Return to Networking

Your Ad Here

Who is online

Users browsing this forum: No registered users and 7 guests