I am a fairly new web developer and am hoping someone here could answer a couple of questions regarding proper directory setup for multiple projects and configuring the server accordingly. I havn't done much sys admin stuff so please bear with me.
Currently I have one project I am working on. However I had to set the DocumentRoot of the server to the projects html folder in order for everything to work properly. This was something I was told to do by the person who helped set the project up for me. So under my default file I have
- Code: Select all
And it accessed by going to http://localhost.
My question is how would I add another project to this server and access it? I'm thinking I would have to add another <virtualhost> but am not sure. Could anyone show an example of how this could be achieved?
One more quick question regarding proper directory structure for multiple projects. I'm thinking I will just do something like www/project1 , www/project2, www/project3 is that what is typically done or should I be doing something else?
Any advice anyone could give me would be very much appreciated. Thank much!