0

I have a ScriptAlias configured like so:

<VirtualHost *:443> ScriptAlias /path/ "/path/to/bin/cgi" </VirtualHost> 

I want to use Apache to put a basic auth wall in front of this. My first instinct is to try

<VirtualHost *:443> <Location "/path"> ScriptAlias / "/path/to/bin/cgi" AuthType Basic AuthName ... ... other auth stuff ... </Location> </VirtualHost> 

But when I try this, I get this error

ScriptAlias cannot occur within directory context 

How do I put basic auth in front of this? Thank you!

1 Answer 1

0

For some reason I did not try this, which worked:

<VirtualHost *:443> ScriptAlias /path "/path/to/bin/cgi" <Location "/path"> AuthType Basic AuthName ... ... other auth stuff ... </Location> </VirtualHost> 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.