httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cody Harris <h...@ns.sympatico.ca>
Subject Re: [users@httpd] How to make two directories share one url?
Date Mon, 06 Oct 2003 23:26:34 GMT
On Mon, 6 Oct 2003 18:55:38 -0400,
Someone named "Victor B. Gonzalez" <apacheusergroup@vbgunz.com> wrote:

> Hello Apache Users,
> 
> I would like to make one directory on my machine share the htdocs
> directory... In other words I do not wish to put some content directly
> into the htdocs directory but would like that content to be accessible
> through the htdocs directory.
> 
> I.e. htdocs currently has four files in it. Another directory called
> webroot has four files in it. It would be nice if a person can reach
> all files through one path...
> 
>       www.shareddocs.com/1.php  (htdocs)
>       www.shareddocs.com/2.php  (htdocs)
>       www.shareddocs.com/3.php  (htdocs)
>       www.shareddocs.com/4.php  (htdocs)
>       www.shareddocs.com/5.php  (webroot)
>       www.shareddocs.com/6.php  (webroot)
>       www.shareddocs.com/7.php  (webroot)
>       www.shareddocs.com/8.php  (webroot)
> 
> Is this safe and wise? I am not trying to run a virtual host but am
> curious if this is at all possible? I am a single user (not a web
> host) and if this is possible may some one please help me out a bit :)
> 
> I've tried alias and looked at aliamatch but I am not at all fair with
> regex and the such. Also, I thought maybe looking into the virtual
> host might help but I am not trying to host others... What is the
> single user solution for this?
> 
> Thank you for your time on reading this. I thank you again.
> 
> -- 
> Best regards,
>  Victor B. Gonzalez                          
> 
> apache_2.0.46-win32-x86-no_src
> Windows XP 5.1 Build 2600 Service Pack 1

If you were using Linux, you could use sym links. But i don't know how that would work for
Windows. Maybe a rewrite? The guys will tell you more in depth.

> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


-- 
+------------------+-----------------------------+
| Cody Harris      | Signed with GnuPG signature |
| KeyID: 610031E2A | vectec.net/~cody/key.asc    |
+------------------------------------------------+

Mime
View raw message