Network Access help

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

Network Access help

Postby bridude » 10. March 2010 22:08

I keep getting the "Access forbidden!" page when I try to access the server from another workstation on my network. Our network uses a different up range then what is listed by default. I've tried to add the range myself but I guess i don't understand the logic because it's not working. Could someone please show me exaclty how to add the ip range to the httpd-xampp file.

Code: Select all
<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/HTTP_XAMPP_FORBIDDEN.html.var


Thanks in advance.
bridude
 
Posts: 3
Joined: 10. March 2010 21:58

Re: Network Access help

Postby CraigS » 11. March 2010 01:26

The ranges listed are what are called CIDR headers when using subnets/ ranges.
You can get a calculator to help figure this out by going to : http://www.subnet-calculator.com/cidr.php

In the below example:
What I have found is that you can just create another line under like below:
Code: Select all
<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
Allow from 165.23.5.0/25

ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var


In the above example I allowed some fictitious range of 165.23.5.0 - 165.23.5.127 to also be allowed to the restricted area.


Hope this helps
Craig S
Last edited by CraigS on 11. March 2010 02:34, edited 1 time in total.
User avatar
CraigS
 
Posts: 16
Joined: 10. March 2010 23:37
Location: Wisconsin, USA

Re: Network Access help

Postby bridude » 11. March 2010 02:26

awesome thats exactly the info I needed. I will try this out tomorrow.

Much appreciated :)
bridude
 
Posts: 3
Joined: 10. March 2010 21:58

Re: Network Access help

Postby bridude » 11. March 2010 15:47

Worked like a charm!

Thanks again!
bridude
 
Posts: 3
Joined: 10. March 2010 21:58

Re: Network Access help

Postby CraigS » 11. March 2010 17:48

Glad it worked :)


Cheers
CraigS
User avatar
CraigS
 
Posts: 16
Joined: 10. March 2010 23:37
Location: Wisconsin, USA


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 168 guests