Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual Directory Structure

Status
Not open for further replies.

marcoBR

Programmer
Apr 20, 2001
7
BR
Hello!

I'm using this apache config to creating a virtual directory structure:

Code:
<VirtualHost myhost> 
   ServerAdmin webmaster@myhost 
   ServerName  yourhost 
   DocumentRoot &quot;/my/web/path/site.php&quot; 
</VirtualHost>

All requests to myhost is forced to execute site.php script ... it's working properly, but the problem is when i make requests to real directories on relative html paths, eg: /images;/includes;/cgi-bin;etc, it doesn't find this directories.

Is there any mod_rewrite rule, cond or another solutions to resolve this problem???


Kindest Regards,

marcoBR
 
Thankyou, but it's also works with filefor me.

The only problem is how to scape real directories.
 
That is impossible, I think. Why would you want to make your document root a file anyway? //Daniel
 
The reason it does not find the directories is because you are using a file as your document root. Files don't have subdirectories.
 
Let's look at the problem from the positive end....What is it you are trying to do any why?
 
Couldn't you just change the DirectoryIndex to site.php to achieve the same result? Depending of course on your other virtual hosts. [smurf]
01101000011000010110010001110011
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top