Jump to content

Archived

This topic is now archived and is closed to further replies.

Witz

looked around, couldn't find any already posted topics..

Recommended Posts

alright, I wanted to set up my apache to work with virtual hosts instead of just the main host. I have the tags and what not but when I configure the virtual host tags in the httpd.conf file then apache wont start up, I tried moving the tags into the vhost.conf file it doesn\'t work, how exactly do I get the vhosts to work?

Share this post


Link to post
Share on other sites

All I can tell you is that I have vhost statements in my httpd.conf. You should not have to move them into a seperate file or set of files for it to work.

 

It sounds like you have a syntax problem. Post the vhosts section of your httpd.conf.

Share this post


Link to post
Share on other sites

# Use name-based virtual hosting.

#

NameVirtualHost

 

#

# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.

# The first VirtualHost section is used for requests without a known

# server name.

#

<VirtualHost enetwork.sytes.net>

ServerAdmin james@eskriptz.net

DocumentRoot C:Program FilesApache GroupApache2htdocs

ServerName enetwork.sytes.net

ErrorLog logs/error_log

CustomLog logs/access_log common

</VirtualHost>

Share this post


Link to post
Share on other sites

do I have to delete all of the main server configurations or leave them there?

Share this post


Link to post
Share on other sites

i think it should be NameVirtualHost *

 

it also looks like the directories may be the problem, take note of the different syntax:

 

DocumentRoot C:Program FilesApache GroupApache2htdocs  

ServerName enetwork.sytes.net  

ErrorLog logs/error_log  

CustomLog logs/access_log common

 

to try to get further information check apache\'s error log in the log directory.

Share this post


Link to post
Share on other sites

well, I had forgotten to take the # away from infront of the load vhost module, but now when I test my configuration it gives me document takes one arguement, root directory of the document tree, what does that mean?

Share this post


Link to post
Share on other sites

the space in your path after \"Program\"

 

DocumentRoot C:Program FilesApache GroupApache2htdocs

 

try quoting the path. i cannot remember if you use single or double, or if it does not matter...

Share this post


Link to post
Share on other sites

×

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.