Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6138461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:52:18+00:00 2026-05-23T17:52:18+00:00

Below is my VHost (which is slightly modified to obscure some URLS): 1 NameVirtualHost

  • 0

Below is my VHost (which is slightly modified to obscure some URLS):

  1 NameVirtualHost 192.168.1.49:80
  2
  3 <VirtualHost 192.168.1.49:80>
  4   ServerName internal-name.local
  5   ServerAlias *.internal-name.local external-domain.co.uk *.external-domain.co.uk
  6
  7   <Directory "/var/www/html">
  8     AllowOverride All
  9
 10     Order deny,allow
 11     Deny from all
 12
 13     AuthName "Restricted Development Server"
 14     AuthUserFile /var/www/html/.htpasswd
 15     AuthType Basic
 16     Require valid-user
 17
 18     Allow From 192.168.1.
 19
 20     Satisfy Any
 21   </Directory>
 22
 23   <Location /open-path >
 24     Order Allow,Deny
 25     Allow From All
 26     Deny From None
 27   </Location>
 28
 29   LogLevel debug
 30   VirtualDocumentRoot /var/www/html/%1/
 31 </VirtualHost>

Everything is working fine – every sub-domain gets its own folder within /var/www/html. Any requests from 192.168.1.x (via an internal domain map) can view the site without password prompts. Any requests from external IP’s (via external-domain.co.uk) will be prompted for a password.

The problem I am having is getting that last “location” rule to work.

Nothing I do (be it .htaccess or vhost level) using or will disable the password protection for the “/open-path” URL.

In actual fact – each site on this server is running Drupal which uses a URL Rewrite in the .htaccess which maps all non-files onto “?q=”… So:
http://domain/foo/bar
maps to:
http://domain/index.php?q=foo/bar

I dont think that should effect this though, should it?

The reason I point it out is that “/open-path/callback” is required to be open for a 3rd party API to “ping” the site. I need to test this callback is working before pushing to live, however I don’t want to unveil the entire site from password protection.

I’ve tried setting the Location to “/index.php?q=open-path”, that’s not worked either.

Any suggestion would be GREATLY appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:52:19+00:00Added an answer on May 23, 2026 at 5:52 pm

    This is from the Apache docs:
    http://httpd.apache.org/docs/2.2/mod/core.html#require

    <Directory /path/to/protected/unprotected>
    # All access controls and authentication are disabled
    # in this directory
    Satisfy Any
    Allow from all
    </Directory>
    

    This works with Location as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below is my validation() function which controls some messages in an alert: function validation()
Below you will find my current vHost entry that I am using for a
Below is my coding which is suppose to validate textareas which are empty or
I have the code below which links to a page called deletepage.php which is
Below is part of the XML which I am processing with PHP's XSLTProcessor :
Initially, this code was written to create pretty urls. When using the code below,
Below is my code. For some reason, after the user logs into the little
Below is what I have +++++++++++++++++ +id1 + id2 + +++++++++++++++++ + 1 +
Below is my simple graph on high charts. Everything appears fine but only problem
Below is a very simple AJAX request that works just fine until I put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.