Welcome to WebmasterWorld Guest from 23.22.140.143

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

shared folder for different websites

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

New User

5+ Year Member

joined:Feb 5, 2010
posts:4
votes: 0


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)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


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)

New User

5+ Year Member

joined:Feb 5, 2010
posts:4
votes: 0


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)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


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)

New User

5+ Year Member

joined:Feb 6, 2010
posts:13
votes: 0


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)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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)

New User

5+ Year Member

joined:Feb 5, 2010
posts:4
votes: 0


@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)

New User

5+ Year Member

joined:Feb 5, 2010
posts:4
votes: 0


problem solved with mod_alias. topic can be closed. thanks
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members