Jump to content

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


Witz

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?

Link to comment
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.

Link to comment
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>

Link to comment
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.

Link to comment
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?

Link to comment
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.