sheppardj Posted March 25, 2007 Share Posted March 25, 2007 I am beginning to work with Apache (initally on Windows XP) and am having a problem setting up my test sites. Much of my problem I expect is thinking Apache rather than IIS but hopefully someone will walk me through the process of setting up my config file. The answer is I expect very siple but I lost in a maze of directives and other terms. Using the default setting at installation DocumentRoot is shown as: "C:/Program Files/Apache Group/Apache/htdocs" I have test sites on another drive at: G:\Stoneyburn, G:\WSomOPC and G:\msnoront for example. How do I configure Apache to serve up the files in these directories? Thanks for you patience Jim Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 25, 2007 Share Posted March 25, 2007 You will want to use virtual hosts if you have more than one document root. However if G: driver only holds your websites then you should be able to set DocumentRoot to just "G:/" Then when you go to your website you will get a directory listing of all files and folders in the G: drive. However setting up a virtual host for each site would be better. Quote Link to comment Share on other sites More sharing options...
sheppardj Posted March 25, 2007 Author Share Posted March 25, 2007 Thanks, so something like this should do the trick? <VirtualHost *:80> DocumentRoot G:/Stoneyburn # Do the others go here or between their own <VirtualHost *:80> tags? </VirtualHost> Jim Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 25, 2007 Share Posted March 25, 2007 no you have set each site its own virtual host. I am not experienced on this so I would recommend you to read the Apache documentation on virtual hosts. 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.