Jump to content

"Selective aliasing"


eric1235711

Recommended Posts

Hello

 

I got a doubt, and I don't know if that's possible to do.

 

Supose that I got a "frameworked" system with a directory system like this:

 

/www
    /core
    /system
    /config
    /userfiles
    index.php

 

Core got the framework's core files.

System got my software files.

Config is the configurations directory.

And userfiles contais the files uploaded by the system users.

 

Well, supose that I got many copies of this structure for each of my subdomais in my linux server, such:

/home/foo/www/
/home/bar/www/
/home/foobar/www/
/home/yadayadayada/www/
/home/blablabla/www/
/* etc */

 

And now I got some problems. Each new customer I get I'll have more disk space spent with redundat files; and if I need to update the core or the system, I'll spend many time copying to each directory. And etc.

 

Isn't there a way to alias only core, system, and the root files? Is there a way to make all the subdomains access the general files in only one directory?

 

Consider that there are may other files in index.php level, and also consider that /config directory got "general" files and "personal" files.

 

thanks in advance...

Link to comment
https://forums.phpfreaks.com/topic/52697-selective-aliasing/
Share on other sites

apache handles symbolic links as linux does?

 

so may I instead of using aliasing, use symbolic links?

 

but I still got a problem:

 

the devellopers of the system I'm working on have put all the system/program files in the root. And we gotta alias all te root's files, but not some files inside config and no files inside the userfiles directory...

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/52697-selective-aliasing/#findComment-260726
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.