Jump to content


Photo

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


  • Please log in to reply
7 replies to this topic

#1 Witz

Witz
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 22 August 2003 - 08:52 AM

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?

#2 gizmola

gizmola
  • Administrators
  • Advanced Member
  • 4,667 posts
  • LocationLos Angeles, CA USA

Posted 22 August 2003 - 04:38 PM

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.

#3 Witz

Witz
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 23 August 2003 - 05:54 AM

# 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>

#4 Witz

Witz
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 23 August 2003 - 05:55 AM

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

#5 effigy

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

Posted 23 August 2003 - 06:01 AM

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.
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#6 Witz

Witz
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 23 August 2003 - 06:35 AM

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?

#7 effigy

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

Posted 23 August 2003 - 02:25 PM

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...
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#8 Witz

Witz
  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 23 August 2003 - 08:47 PM

got everything set up, thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users