Witz Posted August 22, 2003 Share Posted August 22, 2003 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? Quote Link to comment Share on other sites More sharing options...
gizmola Posted August 22, 2003 Share Posted August 22, 2003 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. Quote Link to comment Share on other sites More sharing options...
Witz Posted August 23, 2003 Author Share Posted August 23, 2003 # 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> Quote Link to comment Share on other sites More sharing options...
Witz Posted August 23, 2003 Author Share Posted August 23, 2003 do I have to delete all of the main server configurations or leave them there? Quote Link to comment Share on other sites More sharing options...
effigy Posted August 23, 2003 Share Posted August 23, 2003 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. Quote Link to comment Share on other sites More sharing options...
Witz Posted August 23, 2003 Author Share Posted August 23, 2003 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? Quote Link to comment Share on other sites More sharing options...
effigy Posted August 23, 2003 Share Posted August 23, 2003 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... Quote Link to comment Share on other sites More sharing options...
Witz Posted August 23, 2003 Author Share Posted August 23, 2003 got everything set up, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.