PDA

View Full Version : How do I change the web-host directory??


Porter
29th May 2006, 20:26
Right now, in order to view a page I have to put my php and html scripts in:

/srv/www/htdocs

Apache created public_html files for each user and I would like to use the files to store the hosting scripts but can't seem to find a way to change the directories?

till
29th May 2006, 21:01
Did you look trough your apache2.conf and the related includes in the mods_enabled directory?

In many configurations, moduserdir is used for user html directorys.

Porter
29th May 2006, 22:12
I did go in and edit the apache2.conf file and my apache-mods look like this:

APACHE_MODULES="actions alias auth_basic autoindex cgi dir include log_config mime negotiation setenvif ssl suexec userdir php5 rewrite"


Is this what your talking about or is it a different mod??

falko
30th May 2006, 01:25
Looks ok. Normally you use something like http://www.example.com/~username to access the user's web directory.