PDA

View Full Version : Apache problem (users own web-dir)


murmel
25th December 2007, 20:07
I know that it's possible for Apache to give every user on the server own web-directories. (ex. www.domain.com/~user)
And a friend of mine told me that it's configured in the httpd.conf , and that it should be there from the beginning. But my config is empty and I have to add it to them by hand. It's not that big of a problem but it would be nice not to.
And here's the question, how do I configure Apache (httpd.conf?) to give all the users own web-dirs without having to add them manually?
I use Debian Etch and "The Perfect Setup" (here at howtoforge.com).
Thanks! // Simon

Hans
25th December 2007, 20:28
I don't know if you're using ISPConfig for your Perfect server, but if you use it, do the following:

Create a non-administrative user/mailbox within ISPConfig for the website.
After that, you can visit the site of the user via http://www.domainname.tld/~loginname. That's all. :)

murmel
25th December 2007, 22:56
Oh, nope.. I don't use ISPConfig.. :/

mudder-board
26th December 2007, 01:42
You can make the entries manually, but your looking at a lot of time and learning. Since I do not know your needs its difficult to offer any assistance. But there are how toos on this site for ie how to add virtual ftp users. All of this is accomplished a lot easier with the use of ispconfig.

falko
26th December 2007, 14:03
Take a look here:
http://httpd.apache.org/docs/2.2/mod/mod_userdir.html#userdir
http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias

murmel
26th December 2007, 19:06
Thanks falko! That is what I'm looking for. I'll try it out =)