The directory layout stuff can be solved using a relatively simple rewrite rule:

RewriteEngine On
RewriteRule ^/([^/]+)/(.*) /home/$1/public-html/$2 

You could even enhance it so that it does the rewrite only if the user home 
directory actually exists:

RewriteEngine On
RewriteCond /home/$1/public-html -d
RewriteRule ^/([^/]+)/(.*) /home/$1/public-html/$2 


Don't forget:

<DirectoryMatch /home/[^/]+/public-html/>
        Allow from all
        Order Deny,Allow
</DirectoryMatch>

or something allowing Apache to serve documents from the home directories.


With respect to your default document, I did not really get your point, but I 
am sure that this can be dealt with using mod_rewrite.

-ascs


-----Original Message-----
From: Matt Richards [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 14, 2006 6:20 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] proxy only asp files

hello :)

cheers for your feedback,   i have just tried what you said and i'm 
getting this ...

<%pageTitle="Page Title" %>

which just says the .asp files arn't being parsed by IIS

oh and i think i got something working with mod_rewrite but i had a big problem 
of ...

if i had a default document setup of say ..
index.php index.asp index.htm

if there was a default document of index.htm it will say file not found because 
apache was asking IIS for the .asp file for the default document and IIS was 
giving back html code that was sent on the to browser. :( and having the .asp 
file at the end of the Default document line ment that if there wasn't a 
default document an index listing wasn't shown, but i want an apache index 
listing if there isn't a default document.

I wish it would just work like that, would be so much easier

also the dir layout that is being hosted it set out something like the 
following ...

http://srvaddr/userid/*

* = users file, could be anything
so its not just a single application if it was i would just sit it on a single 
dir and reverse proxy that single dir, i have done that before.

I have started writing a perl app that will submit requests the same as what 
the client requested, lol should be good for learning :).

Cheers,

Matty.


---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to