0

I would like to know how to set variable in centos apache config The user will login as: www.example.com/$1 ($1 is a variable) ServerName localhost ServerAdmin [email protected] DocumentRoot /var/www/html

test1

Alias /$1 /home/client/$1 Options Indexes FollowSymLinks DAV On AllowOverRide All AuthType Basic AuthName hellow AuthUserFile /etc/httpd/$1.password Require valid-user

How do I make this $1 to work

1 Answer 1

0

DAVMinTimeout 180 ServerName localhost ServerAdmin [email protected]

DocumentRoot /var/www/html

test1

Alias /test1 /home/client/test1 Options Indexes FollowSymLinks DAV On AllowOverRide All AuthType Basic AuthName Xfficient-test1 AuthUserFile /etc/httpd/webDAV/test1.password Require valid-user

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.