Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/201-virtual-host-help-needed/
Share on other sites

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:

Link to comment
https://forums.phpfreaks.com/topic/201-virtual-host-help-needed/#findComment-605
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.