logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: help with directory
Author
christoph



Joined: 15 Sep 2007
Posts: 3

PostPosted: Sat 15 Sep '07 22:38    Post subject: help with directory Reply with quote

I am new here and very new to apache I am just using a simple all in one server xampp, my server works on the local host no problem. I changed the default directory with no problem have complete access to zen cart which I loaded on my machine to learn about it. however by setting the default directory to the zencart I no longer have access to the xampp/htdocs which I need as it gives me my phpadmin and security features. So basically I just want access using the local host for both things the zencart and the xampp/htdocs I have tried several times trying to edit the httpd file but each time I try to add xampp/htdocs the server wont start. Here is the actual path I am trying to add for the server..
d:/xampp/htdocs

The server is set to go to d:/shop
Very basic but I would like to learn.
Thanks
Chris.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sun 16 Sep '07 13:49    Post subject: Reply with quote

Do you want to geht the shop unter http://localhost/ or http://localhost/shop/ ?
Back to top
christoph



Joined: 15 Sep 2007
Posts: 3

PostPosted: Sun 16 Sep '07 16:28    Post subject: Reply with quote

Thanks for the reply....I am trying to get it under localhost/shop

Right now the default directory is localhost/xampp/htdocs I can change the default directory easily that much I have learnt.
but its to have access for both of these sectction.

I would like localhost/shop for default...but I would also like access to localhost/xampp/htdocs
how is that done?

Chris.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sun 16 Sep '07 19:06    Post subject: Reply with quote

You can use an [http://httpd.apache.org/docs/2.2/mod/mod_alias.html]alias[/url].

Code:

 Alias /shop "d:/shop"
<Directory "d:/shop>
Order allow,deny
Allow from all
</Directory>


For more details see the docs
Back to top
christoph



Joined: 15 Sep 2007
Posts: 3

PostPosted: Sun 16 Sep '07 22:13    Post subject: Reply with quote

Thank you very much!!
It worked! now I can move anywhere I want on my host providing its coded into it.

I tried on my own before but I had the same code as you minus this line.
Alias /shop "d:/shop/ it works much better with that line.

Chris.
Back to top


Reply to topic   Topic: help with directory View previous topic :: View next topic
Post new topic   Forum Index -> Apache