Results 1 to 3 of 3

Thread: Vhost Problem

  1. #1

    Vhost Problem

    When trying to add a Vhost in Apache the error that keeps occuring is:

    documentRoot takes one argument, Root directory of the document

    What does that mean? here is the code i used to add it:

    <VirtualHost *:80>
    ServerName http://www.almost-online.net
    ServerAdmin webmaster@theouternet.net
    DocumentRoot C:\Program Files\Apache Group\Apache\htdocs\Usr\justin
    </VirtualHost>

    Whats wrong with that?

  2. #2
    Jaded Network Admin nebulus200's Avatar
    Join Date
    Jun 2002
    Posts
    1,356
    Try using quotes around it?

    That is about the only major difference I see between what you have and one of my configurations has...I did do some stuff with naming my virtual host outside of the <VirtualHost> directive that I seem to remember was a requirement for what I was doing at the time...and then used that name instead of *:<port>. You might want to check the documentation on that...

    For starters, check here: http://httpd.apache.org/docs/vhosts/details.html

    /nebulus
    There is only one constant, one universal, it is the only real truth: causality. Action. Reaction. Cause and effect...There is no escape from it, we are forever slaves to it. Our only hope, our only peace is to understand it, to understand the 'why'. 'Why' is what separates us from them, you from me. 'Why' is the only real social power, without it you are powerless.

    (Merovingian - Matrix Reloaded)

  3. #3
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401

    Re: Vhost Problem

    Originally posted here by inf0streaker
    <VirtualHost *:80>
    ServerName http://www.almost-online.net
    ServerAdmin webmaster@theouternet.net
    DocumentRoot C:\Program Files\Apache Group\Apache\htdocs\Usr\justin
    </VirtualHost>
    Remove the :80 in the <VirtualHost *> tag.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •