Give any users an own apache config?

LennardF

New member
Joined
Dec 19, 2006
Messages
2
Hi all,

At first: I'm not an server hoster (yet), I'm just questioning around.

So, here we go:
Is it possible to give a user access to hes apache config file? If it's not there, can I add it without reseting settings after I make another change.

Like: I add the following to httpd.conf
"Include www/user/LennardF/config.conf"

Then the user can edit hes Config file.

Is there also a way to prevent the httpd.conf to reset this line (which happens I believe).

Second, does every users already has such kind of a file at the moment he gets created? If so, where would it be located?

I suppose this will bring some security issues (correct me if not)... so... is there a way to prevent the user from using some options, like he may use virtualhost, but cannot use +ExecCGI (par example).

Help much appreciated,

Best Regards,
Lennard Fonteijn
 
look at the end of httpd.conf, you will see lines like:

Include /usr/local/directadmin/data/users/peter/httpd.conf
 
PerfecT! Than that's solved, but, what if some makes a typo in that file, will that stop apache from running when you try to restart... and will the user be limited to the main server config (like, he cannot set allowcgi when it's disabled by the admin).

Also, will any made changes to the user config be active immidiatly, after a apache restart, or after a change in the DA Panel (like when adding and then removing a subdomain).

Second, one of the things i don't like is that if you create a subdomain through DirectAdmin, it will point to a dir with the same name

lol.foobar.com -> www/web/lol

I want to be able to point it to any dir I want, how? (probably the same way like in my next question)

When someone is limited to 1 domain in DirectAdmin, he won't be able to add a subdomain like a domain on its own, right?
Well, can this be bypassed so that a subdomain still can have a directory as it is a domain? (So you can add subdomains, but no new domains).

Quote to illustrate what i mean:
A domain set up as a domain, as opposed to a subdomain, will point to:

/home/username/domains/example.com/public_html.

A subdomain set up as a subdomain of the above, for example sub.example.com, will point to:

/home/username/domains/example.com/public_html/sub/.

But there's nothing to stop you from setting up a subdomain as it's own domain on the server, in which case the subdomain, like a domain, would point to:

/home/username/domains/sub.example.com/public_html

Ofcourse, the 1 domain limit can be bypassed by the use of VirtualHost (it only won't show in the DA Panel), is this right?

By the way, thanks for the quick reply.

Lennard Fonteijn
 
Last edited:
LennardF said:
what if some makes a typo in that file, will that stop apache from running when you try to restart...
Yes. Which is why DA doesn't allow each other to create his own Apache config.
and will the user be limited to the main server config (like, he cannot set allowcgi when it's disabled by the admin).
Any included config will be limited by Apache; exactly how apache containers work is well beyond the scope of this forum.
Also, will any made changes to the user config be active immidiatly, after a apache restart, or after a change in the DA Panel (like when adding and then removing a subdomain).
DA has no included function for changing or creating an include, or for the user to change or create the included file. If you build something like that (perhaps a plugin) you'd have to either reload or restart httpd, depending on what you're doing and what apache requires.
Second, one of the things i don't like is that if you create a subdomain through DirectAdmin, it will point to a dir with the same name

lol.foobar.com -> www/web/lol

I want to be able to point it to any dir I want, how?
DA doesn't let you do that. You may be able to figure out a way to customize something.
When someone is limited to 1 domain in DirectAdmin, he won't be able to add a subdomain like a domain on its own, right?
Well, can this be bypassed so that a subdomain still can have a directory as it is a domain? (So you can add subdomains, but no new domains).
When you use DA to create a subdomain it first checks to see if the user has additional subdomains available based on the domain package.

The user can set up a domain, and if he has DNS control, he can set up the subdomain in DNS, but since DA doesn't have a facility for the user to be able to change his apache config, he can't make it work like a subdomain. If you're going to write a plugin to allow this, you'll have to make sure you do your own checks.
Ofcourse, the 1 domain limit can be bypassed by the use of VirtualHost (it only won't show in the DA Panel), is this right?
The user has no ability to change his virtual host container unless you write it for him.

Jeff
 
Back
Top