Apache newbie: map folder outside c:\apache2\htdocs to localhost

This is a discussion on Apache newbie: map folder outside c:\apache2\htdocs to localhost within the Apache Web Server forums, part of the Web Server and Related Forums category; Thanks for spending some time to read a newbie question! I have recently installed Apache2Triad to develop a web application ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-09-2004
Bert Geenen
 
Posts: n/a
Default Apache newbie: map folder outside c:\apache2\htdocs to localhost

Thanks for spending some time to read a newbie question!

I have recently installed Apache2Triad to develop a web application
using PHP and mySQL. Before I had Apache2Triad installed, I uploaded
my php pages to my provider, and tested them online. I installed
Apache2Triad mainly to get rid of the uploading time delays (and to
have my own playground, of course).

From the documentation, I have understood that my pages should go
to the directory c:\apache2\htdocs. I created a subfolder MySite and
can now use http://localhost/mysite/index.php. Works fine.

However, the folder in which I originally developped the site has the
following structure (simplified):

c:\myproject
+--- supporting files
+--- templates
+--- libary
+--- mysite
+--- index.php
+--- my other php pages, images etc.

What I originally uploaded to my provider was only the contents of the
'mysite' subfolder.

With Apache, if I would move the entire folder "my project" under
"c:\apache2\htdocs", than I would create an additional level under
localhost, and I would have to use http://localhost/myproject/mysite
instead of just http://localhost/mysite.

My question: can I leave the files where they are (in c:\myproject)
and tell Apache that when I ask for http://localhost/mysite/index.php
it should get it from c:\myproject\mysite\index.php.

I am sure that this must be explained SOMEWHERE in the tons of
documentation, but I don't know what topic I should look for
(what feature should I search for).

I am just running Apache/php/mySQL/... to develop the site, I am not
using my PC to host it on the internet.
I use Windows XP Home Edition.

Any help or reference to the proper documentation files is welcome.
If I should have posted this question to another group instead, don't
hesiate to tell me.

Best regards,

Bert Geenen / Belgium
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0