Jump to content


Photo

Virtual Host Help Needed


  • Please log in to reply
3 replies to this topic

#1 Doomboy

Doomboy
  • New Members
  • Pip
  • Newbie
  • 2 posts
  • LocationOttawa, ON, Canada

Posted 06 March 2003 - 09:10 PM

Hello everyone

I am trying to configure 2 virtual hosts (name based) using 1 public ip only.

I beleive its possible but not luck to get it working.


Would it be possible to help me out a bit with this....

Here\'s what I have in my config..


NameVirtualHost www.ezpchardware.com

<VirtualHost www.ezpchardware.com>
ServerAdmin ezpchardware@hotmail.com
DocumentRoot C:Program FilesApache GroupApachehtdocsezpchardware
ServerName www.ezpchardware.com
ErrorLog /logs/ezpchardware_error_log
TransferLog /logs/ezpchardware_access_log
</VirtualHost>

NameVirtualHost www.debarn.com

<VirtualHost www.debarn.com>
ServerAdmin admin@debarn.com
DocumentRoot C:Program FilesApache GroupApachehtdocsdebarn
ServerName www.debarn.com
ErrorLog C:Program FilesApache GroupApachelogsdebarn_error_log
TransferLog C:Program FilesApache GroupApachelogsdebarn_access_log
</VirtualHost>

----> error: Syntax error on line 1041 of C:..........

DocumentRoot takes one argument, Root directory of the document tree

----------------------------------------------------------------


Any help would be appreciated

Thanks !


Mars

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 07 March 2003 - 01:31 AM

try using (only one) NameVirtual Host * and the back slashes should be forward slashes i think... :D
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 Doomboy

Doomboy
  • New Members
  • Pip
  • Newbie
  • 2 posts
  • LocationOttawa, ON, Canada

Posted 07 March 2003 - 03:04 PM

Thanks for your reply...


NameVirtualHost *

<VirtualHost www.ezpchardware.com>
ServerAdmin ezpchardware@hotmail.com
DocumentRoot C:/Program Files/Apache Group/Apache/htdocs/ezpchardware
ServerName www.ezpchardware.com
ErrorLog C:/Program Files/Apache Group/Apache/logs/ezpchardware_error_log
TransferLog C:/Program Files/Apache Group/Apache/logs/ezpchardware_access_log
</VirtualHost>


<VirtualHost www.debarn.com>
ServerAdmin admin@debarn.com
DocumentRoot C:/Program Files/Apache Group/Apache/htdocs/debarn
ServerName www.debarn.com
ErrorLog C:/Program Files/Apache Group/Apache/logs/debarn_error_log
TransferLog C:/Program Files/Apache Group/Apache/logs/debarn_access_log
</VirtualHost>


Syntax error on line 1060 of c:/........

Document Root Takes one argument, Root Directory of the document tree.

Anything else I should try ?

Thanks

mars :cry:

#4 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 07 March 2003 - 04:48 PM

ah ha! you have spaces in your path... double quote the path.
if that doesn\'t help you can also try replacing <VirtualHost domainname> with <VirtualHost *>
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users