Solved

Cannot get XAMPP working on my home network

Posted on 2011-09-09
3
1,446 Views
Last Modified: 2012-05-12
I am having problems getting an Apache webserver going on my local network at home.
I have 3 laptops in the network. 1 with W7 32 bit and 2 with W7 64 bit  and a router which is a Huawei 585 (wireless broadband/wireless lan)

I have installed XAMPP (32 bit) on one of the W7 64 bit machines

Firstly
 on installation I got this message

"Important MS Vista Note! Because an activated Windows Vista User Account Control (UAC) on your system some functions of xampp are possibly restricted. With UAC please avoid to install XAMPP to C:\Program Files (x86) (because of not enough write permissions). Or deactivate UAC (with msconfig) after this setup."

which I noted but continued on the basis that I didnt have Vista and I was installing in C:\xampp.

Tested the installation. It works fine on the machine on which it is installed and responds OK to localhost access from the browser.

BUT Secondly

Accessing the webserver from the other machines on the network I get

"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""

which contains

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/8
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

I dont know the syntax to change this or even if it would help particularly as the error message referred to the local network which all machines are on. If the router has stuck in the ISP IP address then I would have though the firewall would have caught it as I have configured it to only allow local IPs on port 80.


So I dont know the solution. I could put "allow from all" and use the firewall to restrict access to specific IP addresses or is there a cleaner way to do it within Apache.
Any help appreciated
Cheers
0
Comment
Question by:cookers
  • 2
3 Comments
 

Author Comment

by:cookers
ID: 36514568
Ignore the bit about the router injecting an address, I checked Apache Logs and it showed the local network IP address
0
 
LVL 35

Accepted Solution

by:
torimar earned 500 total points
ID: 36515317
They may say that "local network" is allowed, but they effectively exclude all but the loopback, i.e. localhost.
Try adding another "allow" directive for your LAN by specifying some of its tuples, like:

Allow from 127.0.0.0/8
Allow from 192.168

or:

Allow from 127.0.0.0/8
Allow from 192.168.178.0/250

(adjust for your LAN IP subnet)
0
 

Author Closing Comment

by:cookers
ID: 36515429
Worked perfectly and I then changed it slightly to Allow from 192.168.1 .Whilst awaiting a response from EE I checkout some docco at Apache.org which fits in with your solution.

Cheers
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question