This is a discussion on problem with apache within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hi I have apache instaled on my ext. hard disk, and the root directory is ( e:/xampp/xampp/ ) When I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
I have apache instaled on my ext. hard disk, and the root directory is ( e:/xampp/xampp/ ) When I change the computer, the drive letter on this hard disk is g:/ and my apache is not working. Any solution to fix the apache to work form two root directory? without instaling another instance of apache. tnx |
|
|||
|
On 02 Jun 2007, xxpepoxx@gmail.com wrote in
comp.infosystems.www.servers.ms-windows: > I have apache instaled on my ext. hard disk, and the root > directory is ( e:/xampp/xampp/ ) When I change the computer, the > drive letter on this hard disk is g:/ and my apache is not > working. Any solution to fix the apache to work form two root > directory? without instaling another instance of apache. You don't say what the problem is, but the first thing I'd do would be to examine httpd.conf and adjust any incorrect paths. |
|
|||
|
> You don't say what the problem is, but the first thing I'd do would be > to examine httpd.conf and adjust any incorrect paths. hi The problem is that I would like to use ext. hard disk, with one instance of apache on two diffrent computers. The hard disk have two diffrent drive letters on each computer. On one is e:/ and on the otherone is g:/ . The xampp is installed on e:/xampp. All this paths are e:/xampp in the httpd.conf. I will like to know if there is some solution to put two root working directory in the httpd.conf or somewhere in the xampp folder. On that way I wil have one instance of apache working on two diffrent computers. If I change the incorrect paths, then apache will not work on the previos computer. tnx |
|
|||
|
On 03 Jun 2007, xxpepoxx@gmail.com wrote in
comp.infosystems.www.servers.ms-windows: > The problem is that I would like to use ext. hard disk, with one > instance of apache on two diffrent computers. The hard disk have > two diffrent drive letters on each computer. On one is e:/ and on > the otherone is g:/ . The xampp is installed on e:/xampp. All > this paths are e:/xampp in the httpd.conf. I will like to know if > there is some solution to put two root working directory in the > httpd.conf or somewhere in the xampp folder. On that way I wil > have one instance of apache working on two diffrent computers. If > I change the incorrect paths, then apache will not work on the > previos computer. So, you will hand carry the external drives and run apache on one computer or the other at various times? I don't know anything about "xampp", but with plain old apache, I would create two different httpd.conf files, one for each computer showing the appropriate drive letter designations. I would then invoke apache on each computer with the "-f" command-line option, which can tell apache which of the two ..conf files to use. http://httpd.apache.org/docs/2.2/invoking.html Another possibility might be to use the "-d" startup option, as described here: http://httpd.apache.org/docs/2.2/programs/httpd.html I've never used it, so I don't know the pitfalls, if any. |