| Author |  | 
| christoph 
 
 
 Joined: 15 Sep 2007
 Posts: 3
 
 
 | 
|  Posted: Sat 15 Sep '07 22:38    Post subject: help with directory |   |  
| 
 |  
| 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: 7442
 Location: EU, Germany, Next to Hamburg
 
 |  | 
| Back to top |  | 
| christoph 
 
 
 Joined: 15 Sep 2007
 Posts: 3
 
 
 | 
|  Posted: Sun 16 Sep '07 16:28    Post subject: |   |  
| 
 |  
| 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: 7442
 Location: EU, Germany, Next to Hamburg
 
 | 
|  Posted: Sun 16 Sep '07 19:06    Post subject: |   |  
| 
 |  
| 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
 
 
 | 
|  Posted: Sun 16 Sep '07 22:13    Post subject: |   |  
| 
 |  
| 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 |  |