Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

vhosts outside the default document root

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Document Root - Hi all, I am having a problem with setting the document root on my Linux box. I have updated to along with I then restarted apache again. The..

document root - hi, my document root is but all the files apache is serving is in whats going on?? on a seperate issue, how can i check if ive installed 2 copies of apache. ie it came with the then i downloded the..

Document root on another PC - Hi! Using a windows 2000 Network I have got one PC all the documents for the internet. The Apache is installed on another PC and I wanted to set the to the location at the Doecument doesn't work this way:

the really document root - I have this setting: Document root I read that a document root is the only from internt but really also this is inner there are the folder type: site1.com site2.com etc... qustion: what is the row..

Apache Document Root - Hi, i am using OpenBSD 3.5 with Apache 1.3.29. I have two Disks installed on the system wd0 and wd1 I have changed the Document Root from [/var is mounted on wd0] to [/pub is mounted on wd1] ..
Next:  Apache: Typical directory location for websites?  
Author Message
PI

External


Since: Oct 04, 2007
Posts: 1



(Msg. 1) Posted: Thu Oct 04, 2007 11:00 am
Post subject: vhosts outside the default document root
Archived from groups: alt>apache>configuration (more info?)

Hi guys,
I need someone to help me crack this please:

the default DocumentRoot is /var/www/html on a Fedora core machine. I
have successfully configured a couple of vhosts within the default
DocumentRoot. I however need to create a different vhost outside the
file structure/hierarchy of the default document root to say, /home/
data/hosts - this has simply refused to work

I have my directory directives:
<Directory /home/data/hosts>
....
....
and my vhosts set to include the alternative path as in

<virtualhost /scan>
DocumentRoot /home/....
.....
.....
but it simply will not see it. Please tell me what I need to do.
thanks.

 >> Stay informed about: vhosts outside the default document root 
Back to top
Login to vote
phantom

External


Since: Aug 23, 2007
Posts: 21



(Msg. 2) Posted: Thu Oct 04, 2007 1:58 pm
Post subject: Re: vhosts outside the default document root [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"PI" <ire.ogunsina RemoveThis @gmail.com> wrote in message
news:1191506556.819139.86440@y42g2000hsy.googlegroups.com...
> Hi guys,
> I need someone to help me crack this please:
>
> the default DocumentRoot is /var/www/html on a Fedora core machine. I
> have successfully configured a couple of vhosts within the default
> DocumentRoot. I however need to create a different vhost outside the
> file structure/hierarchy of the default document root to say, /home/
> data/hosts - this has simply refused to work
>
> I have my directory directives:
> <Directory /home/data/hosts>
> ...
> ...
> and my vhosts set to include the alternative path as in
>
> <virtualhost /scan>
> DocumentRoot /home/....
> ....
> ....
> but it simply will not see it. Please tell me what I need to do.
> thanks.

Your virtual host definition looks wrong...

You should have a line somewhere in your config file:

NameVirtualHost *
or maybe
NameVirtualHost *:80

The * or *:80 needs to match in the VirtualHost entry -

<VirtualHost *:80>
ServerName blah.com
DocumentRoot /home/...
....

 >> Stay informed about: vhosts outside the default document root 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]