I'm trying to setup a DA server so that we can enable use of the server's SSL certificate for customers on a specific plan only. The server is running Freebsd 5.4. I have full access to it.
I've noticed that by default, the following work for all users:
http://server.example.com/~username
https://server.example.com/~username
This is a problem in two ways:
1. If a customer is smart, they can reference images and files in their web in this way and thus use our bandwidth rather than his.
2. Every customer is able to access our SSL certificate, irrespective of whether they have SSL enabled for their account.
Ideally, I would like to disable this feature (with the "UserDir disabled" directive in Apache), but at the same time have the system create an Alias for each SSL enabled user so that they may use:
"https://server.example.com/userdomain.com/"
which would point to the user's public_html directory.
I'm pretty new to DirectAdmin so I have 2 questions:
1. I looked in "/etc/httpd/conf/httpd.conf" to disable the UserDir directive but the only entry for it is:
<IfModule mod_userdir.c>
#UserDir public_html
UserDir disabled
</IfModule>
This indicates that it is already disabled in the server configuration.
Looking at the apache processes on the server, I see that DA starts apache with "-DHAVE_USERDIR" on the command line, overriding any "UserDir disable" directive in httpd.conf.
What is the correct way to prevent Apache starting with this parameter enabled?
2. Ideally, I'd like all SSL enabled customers to have an "Alias" entry in the reseller's domain, so as to be able to use the SSL certificate for that host.
Is there a mechanism with which I can achieve this automatically for a specific package?
Thanks for any help.
I've noticed that by default, the following work for all users:
http://server.example.com/~username
https://server.example.com/~username
This is a problem in two ways:
1. If a customer is smart, they can reference images and files in their web in this way and thus use our bandwidth rather than his.
2. Every customer is able to access our SSL certificate, irrespective of whether they have SSL enabled for their account.
Ideally, I would like to disable this feature (with the "UserDir disabled" directive in Apache), but at the same time have the system create an Alias for each SSL enabled user so that they may use:
"https://server.example.com/userdomain.com/"
which would point to the user's public_html directory.
I'm pretty new to DirectAdmin so I have 2 questions:
1. I looked in "/etc/httpd/conf/httpd.conf" to disable the UserDir directive but the only entry for it is:
<IfModule mod_userdir.c>
#UserDir public_html
UserDir disabled
</IfModule>
This indicates that it is already disabled in the server configuration.
Looking at the apache processes on the server, I see that DA starts apache with "-DHAVE_USERDIR" on the command line, overriding any "UserDir disable" directive in httpd.conf.
What is the correct way to prevent Apache starting with this parameter enabled?
2. Ideally, I'd like all SSL enabled customers to have an "Alias" entry in the reseller's domain, so as to be able to use the SSL certificate for that host.
Is there a mechanism with which I can achieve this automatically for a specific package?
Thanks for any help.