Jump to content

setting doc_root for virtual host in httpd.conf


spitster

Recommended Posts

Hi,

I've been learning to setup a server. I'm using Redhat fc4, apache 2.0.54 and php5. I've been able to get several virtual host websites up and going so far. I've been struggling to get doc_root and user_dir set in the virtual hosts. I've learned the hardway I can't set them via an htaccess file. I attempted to add them into the vhost definitions but I still can't get the local value set. I'm trying to use /home/user*/public_html as the doc_root and user_dir local values for each of the virtual hosts.

Have I missed something in the php.ini file that should have told it to use the php statements in the virtual host definitions in httpd.conf? The global value is setup for the main server of /var/www/html but I wanted to set up each of the virtual hosts with their own configurations. I can use the htaccess file to modify other php settings so I did get something right, just not this one... I could sure use some help and a lesson here...

Thanks!

  Den

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.