what have i done to http.conf
Posted by: t9wbrown (12.52.109.---)
Date: January 22, 2015 02:15AM

I have Win 7, and the latest WAMP. I just downloaded and installed this at work. I just want the files available to the local network. My coworkers weren't able to get to my server either using my IP or my machine name.

When I made the following changes to http.conf they could get to my pages with both IP and Windows PC name.

Apache logic confuses me... have I successfully restricted this to my local area network?

#AllowOverride all
AllowOverride None
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 10.0.50
#
# Controls who can get stuff from this server.
#

# onlineoffline tag - don't remove
#Require local
Require all granted

Options: ReplyQuote
Re: what have i done to http.conf
Posted by: RiggsFolly (---.as43234.net)
Date: January 22, 2015 09:55AM

Hi t9w,

Pretty close but can I suggest you do this instead.

There are commands already there, these to be specific

# onlineoffline tag - don't remove
#Require local
Require all granted

'Require all granted' is Apache 2.4 syntax for what you tried to do in Apache 2.2 syntax.

But if you just want to give access to your local office network try this :-

Remove all this

#AllowOverride all
AllowOverride None
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 10.0.50

And replace it with this
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #
# onlineoffline tag - don't remove
Require local
Require ip 10.0.50

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.