homepage Welcome to WebmasterWorld Guest from 23.22.29.137
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
shared folder for different websites
moonsikbe




msg:4075208
 11:36 pm on Feb 5, 2010 (gmt 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

 

g1smd




msg:4075216
 11:51 pm on Feb 5, 2010 (gmt 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.

moonsikbe




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

g1smd




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

galaxian




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

jdMorgan




msg:4075412
 1:17 pm on Feb 6, 2010 (gmt 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

moonsikbe




msg:4075450
 4:01 pm on Feb 6, 2010 (gmt 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.

moonsikbe




msg:4076917
 12:09 pm on Feb 9, 2010 (gmt 0)

problem solved with mod_alias. topic can be closed. thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved