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
Share on other sites

What you can do is create a symbolic link or hard link between folders.

 

e.g.

 

ln -s /home/mainuser/www/core /home/otheruser/www/core

 

I would suggest if all users are going to have it do this through /etc/skel or /etc/profile

Link to comment
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
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.