Welcome to WebmasterWorld Guest from 54.159.190.106

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

shared folder for different websites

   
11:36 pm on Feb 5, 2010 (gmt 0)

5+ Year Member



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?
Thanks
11:51 pm on Feb 5, 2010 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.
12:00 am on Feb 6, 2010 (gmt 0)

5+ Year Member



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.
1:24 am on Feb 6, 2010 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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.
5:35 am on Feb 6, 2010 (gmt 0)

5+ Year Member



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.
1:17 pm on Feb 6, 2010 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

Jim
4:01 pm on Feb 6, 2010 (gmt 0)

5+ Year Member



@g1smd:
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"

@galaxian
We can't use photobucket, they have some transfer limit... :) We have enough storage and bandwidth on Virtual private server.

@jdMorgan
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.
12:09 pm on Feb 9, 2010 (gmt 0)

5+ Year Member



problem solved with mod_alias. topic can be closed. thanks
 

Featured Threads

Hot Threads This Week

Hot Threads This Month