[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

apache and htaccess

I have the following .htaccess file in my webroot directory in apache httdocs:

AuthName "TickTockIT Int Protected"
AuthType Basic
AuthUserFile C:/xampp/apache/bin/passwordfile
require valid-user
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 192.168.0
Satisfy Any

--------------------------------

I am still being asked for a password when I access from my local network
Can someone explain why please
0
doctorbill
Asked:
doctorbill
  • 2
  • 2
2 Solutions
 
GaryCommented:
Are you using localhost? Which comes over IPv6
Replace your allow line with

 Allow from ::1
0
 
doctorbillAuthor Commented:
How do I tell if I am using IPv4 or IPv6
0
 
GaryCommented:
There's nothing to check it is using IPv6
Windows uses IPv6 by default when available.
0
 
doctorbillAuthor Commented:
Thanks - solved
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now