PDA

View Full Version : [WebServer] Changing Location...


jashsayani
07-10-2008, 04:11 PM
I want to change the location of the HTTP folder from /Library/WebServer/Documents to /Interpub

How do I do it..?

volkspost
07-10-2008, 04:19 PM
I want to change the location of the HTTP folder from /Library/WebServer/Documents to /Interpub

How do I do it..?

in httpd.conf

volkspost

jashsayani
07-10-2008, 04:33 PM
in httpd.conf

volkspost

Well, I already did that. The whole thing got screwed up.
Now, it just shows Failed to Connect. Even tried restarting and shutting down and starting the Mac.

volkspost
07-10-2008, 04:49 PM
Well, I already did that. The whole thing got screwed up.
Now, it just shows Failed to Connect. Even tried restarting and shutting down and starting the Mac.

shut down websharing first

in httpd.conf two instances
DocumentRoot "/Library/WebServer/Documents"
and
<Directory "/Library/WebServer/Documents">


start websharing again

volkspost

jashsayani
07-10-2008, 04:58 PM
shut down websharing first

in httpd.conf two instances
DocumentRoot "/Library/WebServer/Documents"
and
<Directory "/Library/WebServer/Documents">


start websharing again

volkspost

Thanks. Just tried it. But no luck !

I had also edited a couple of other files like httpd.conf in Apache2/original/
and in apache2/users/


What do I do now... ?

Any way to reset the apache service and start all over again...? Like getting a fresh copy for Mac and replacing Apache2 folder..?

Then I can try and change the location again...

volkspost
07-10-2008, 05:40 PM
Thanks. Just tried it. But no luck !

I had also edited a couple of other files like httpd.conf in Apache2/original/
and in apache2/users/


What do I do now... ?

Any way to reset the apache service and start all over again...? Like getting a fresh copy for Mac and replacing Apache2 folder..?

Then I can try and change the location again...

Did you backup the originals? You should always have. Playing around with the conf file is not always fun. There is no single install of Apache2 in Mac OS X 10.5, it gets installed when you install the system.

jashsayani
07-11-2008, 12:28 PM
Did you backup the originals? You should always have. Playing around with the conf file is not always fun. There is no single install of Apache2 in Mac OS X 10.5, it gets installed when you install the system.

Ok. great. Now what do I do....?

jashsayani
07-11-2008, 06:04 PM
Ok. I have Leopard installed onto an External HD. Now how do I locate the apache2 folder on that HD. Theres no address bar also.

When I type the foll. in Safari, I get the apache2 folder on my Mac: /private/etc/
But when I type disk2s2/private/etc/ nothing happens.