Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

DocumentRoot??

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  New to ASP - How to Upload to Webspace  
Author Message
truthowlnospam

External


Since: Apr 30, 2004
Posts: 1



(Msg. 1) Posted: Fri Apr 30, 2004 7:44 pm
Post subject: DocumentRoot??
Archived from groups: alt>apache>configuration (more info?)

Is there a way, besides using mod_rewrite and changing the
DocumentRoot to have my base url http://localhost or http://localhost/
point to http://localhost/Testing/ ?

Right now using DirectoryIndex I can do http://localhost and it will
go to http://localhosy/Testing/index.php just fine but if I try
http://localhost/testing.php I get a page cannot be found error. I
know I can change my DocumentRoot to achive this but I'd like to leave
it set where it's at so that I can easily go from my testing directory
to my site directory to try to implement something. Am I making sense?
If you need me to explain further let me know. I'm using Apache 2.0.49
or something like that on windows XP Pro with php 5. TIA

 >> Stay informed about: DocumentRoot?? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sat May 01, 2004 9:14 am
Post subject: Re: DocumentRoot?? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Kyote <truthowlnospam DeleteThis @charter.net> wrote:
 > Is there a way, besides using mod_rewrite and changing the
<font color=purple> > DocumentRoot to have my base url <a style='text-decoration: underline;' href="http://localhost" target="_blank">http://localhost</a> or <a style='text-decoration: underline;' href="http://localhost/</font" target="_blank">http://localhost/</font</a>>
 > point to <a style='text-decoration: underline;' href="http://localhost/Testing/" target="_blank">http://localhost/Testing/</a> ?

The DocumentRoot is the "Root" of your web server. So, it will always
be <a style='text-decoration: underline;' href="http://whatever/" target="_blank">http://whatever/</a> and stop. If you want to have go to a second
directory from there, you can easily put an index.html in the
DocumentRoot with a redirect that will switch you to whatever directory
you want. This won't change the DocumentRoot.

 > Am I making sense?

No.

Davide

--
| One advantage of talking to yourself is that you know at least
| somebody's listening.
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: DocumentRoot?? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]