I'm trying to simply set "Dav On" with a few hooks in <Directory> on a subdomain vhost. Whenever I enter my text, it seems to unpredictably add it to a bunch of different spots in the httpd.conf for the domain in question. I'm most certainly doing something wrong, so I'm hoping someone can provide some guidance. Here's what I'm putting into the text area:
<VirtualHost 1.1.1.1:443>
ServerName www.files.mydomain.com
<Directory /home/username/domains/mydomain.com/private_html/files>
Dav On
Order Allow,Deny
Allow from all
AuthType Digest
AuthName DAV-upload
# You can use the htdigest program to create the password database:
# htdigest -c "/etc/httpd/user.passwd" DAV-upload admin
AuthUserFile "/etc/httpd/user.passwd"
<LimitExcept GET OPTIONS>
require user admin
</LimitExcept>
My understanding is that the parser is smart enough to insert the Dav On and associated text inside the existing virtualhost 1.1.1.1:443 where the ServerName is www.files.mydomain.com and where the Directory is /home/username/domains/mydomain.com/private_html/files. It seems my logic is flawed.
Can anyone give me some pointers? Can this be done from the web interface or should I edit the conf by hand?
<VirtualHost 1.1.1.1:443>
ServerName www.files.mydomain.com
<Directory /home/username/domains/mydomain.com/private_html/files>
Dav On
Order Allow,Deny
Allow from all
AuthType Digest
AuthName DAV-upload
# You can use the htdigest program to create the password database:
# htdigest -c "/etc/httpd/user.passwd" DAV-upload admin
AuthUserFile "/etc/httpd/user.passwd"
<LimitExcept GET OPTIONS>
require user admin
</LimitExcept>
My understanding is that the parser is smart enough to insert the Dav On and associated text inside the existing virtualhost 1.1.1.1:443 where the ServerName is www.files.mydomain.com and where the Directory is /home/username/domains/mydomain.com/private_html/files. It seems my logic is flawed.
Can anyone give me some pointers? Can this be done from the web interface or should I edit the conf by hand?