| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|shared folder for different websites|
Hello, I'm a complete newbie in linux/apache
I'm making 3 websites (same content in different languages with different domain names) driven from a same mysql database.
I wonder if I can make a single folder for storing images for all 3 sites, somewhere outside of all 3 site root folders.
I guess I'd have to make some httpd.conf changes?
Any easy solutions to that?
Yes, an internal rewrite can take care of that.
You'll need to be very selective as to exactly which URL requests match the pattern that triggers the rewrite.
Thanks, can you be more specific?
Some simple example maybe?
I'm new at url rewritng too, but I'm using it and I understand the basics.
Let's see your example code, properly commented.
There's been several other threads discussing rewrites today and yesterday, and there are always several every week.
You could also try setting up a photobucket account and store all the pics there, then link to them all via their http url. Free service and it's easy to use.
Apache mod_alias may prove useful for this application. It's a very good choice when you have access to the server at the config level. See the docs at apache.org.
I have no interesting code to show, it's standard upload, crop, resize, imagejpeg (...). I just wanted to get some fast advice like "write this in httpd.conf"
We can't use photobucket, they have some transfer limit... :) We have enough storage and bandwidth on Virtual private server.
Thanks, I'll look into mod_alias. I'm a designer, just a few months ago started with php/mysql so it's all rather new and complicated. We have access to the root with Virtual private server.
problem solved with mod_alias. topic can be closed. thanks
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved