I want to install apache webserver with another homedirectory for users, so not the default ‘public_html’ but make a directory ‘webspace’ for users to upload their content. I read the conf files and there was said i had to change it in the apache.spec but when i install it these options ain’t there. So it would be nice if someone could give me a hint on how to achieve that?
DocumentRoot /srv/www/vhosts/directory_to_yor_site
ErrorLog /var/log/apache2/sitename-error.log
CustomLog /var/log/apache2/sitename-access.log combined
HostnameLookups Off
UseCanonicalName Off
ServerSignature On
<IfModule mod_userdir.c>
UserDir public_html
Include /etc/apache2/mod_userdir.conf
</IfModule>
<Directory "/srv/www/vhosts/directory_to_yor_site">
Options Indexes FollowSymLinks
AllowOverride AuthConfig
Order Allow,Deny
Allow from all
</Directory>
automaticly, then you need to change a lot of stuff (I guess)
or do it manually.
my choice would be manually because you have more control and do what you want.
if you wanna give users a http directory, accessable thru apache, then just create a bunch of virtual hosts.
For file upload you need something like ftp. there you make the start directory of each user, the same directory of the apache/virtualhost directory
But there are a loot of tools too, that can do the job.