Solved

Apache subdirectory pointing elsewhere

Posted on 2011-02-28
3
279 Views
Last Modified: 2012-06-22
Hi,

I am on Windows, so no symlinks. I want the following scenario.

http://mydomain/ goes to E:/www/mydomain
http://mydomain/files goes to E:/files/mydomain

This is simply so my files directory can live out side of subversion. Any clues what I need to put in my vhosts file to achieve this?

Regards,
Michael
0
Comment
Question by:mstrelan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Assisted Solution

by:larsrohr
larsrohr earned 200 total points
ID: 35004217
So, you have "mydomain" configured as a vhost, with its DocumentRoot set to "E:/www/mydomain", right?

What you want to add in that vhost config is an Alias, e.g.:
    Alias /files  "E:/files/mydomain"

You will also probably have to add a corresponding Directory section, e.g.:
<Directory "E:/files/mydomain">
    Options Indexes
    Order allow,deny
    Allow from all
</Directory>
0
 
LVL 15

Accepted Solution

by:
Insoftservice earned 200 total points
ID: 35004326
hi,

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_26690192.html

Hi,
Not through  htaccess but via
httpd.conf

ServerName .....
Alias /datafiles E:/files/mydomain
      <Directory "/datafiles/">
            AllowOverride None
            Options None
            Order allow,deny
            Allow from all
      </Directory>

And u will get ur datafiles on ur webserver
0
 
LVL 12

Assisted Solution

by:Kent W
Kent W earned 100 total points
ID: 35004887
Microsoft has symlinks, they just call them "junction points".
I actually use this a lot, especially with SAN array disks to divide up particular directories to actually be contained on separate FC drives.  Will work the same way for what you are trying to accomplish.

http://support.microsoft.com/?kbid=205524
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question