Multiple Blog installation in sub directories...

Having trouble installing serendipity?
Post Reply
vincentrich
Posts: 3
Joined: Sat Jul 31, 2004 8:16 am
Location: Singapore
Contact:

Multiple Blog installation in sub directories...

Post by vincentrich »

http://www.s9y.org/41.html Reference to this URL,

Is it possible to install multiple blogs on my web server in sub directories like:

www.domain.com/blogs/tom/
www.domain.com/blogs/jim/

instead of subdomains like:

tom.domain.com
jim.domain.com

because my web host doesn't allow me access to creating sub domains like that and i have limited number of sub domains to give away.

do you have instructions to do this?
Oasis Fanatic is an online community of Oasis fans. Join us for FREE to share photos with your friends, socialize in the forums, post your reviews, receive regular Oasis news updates and much more!
Check out -> http://www.OasisFanatic.com
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Multiple Blog installation in sub directories...

Post by garvinhicking »

Hi Vincent!

Yes, this is possible as well; you only need to migrate what was put into the VirtualHost configuration container on our manual into a .htaccess file.

Of course you will loose the per-user open_basedir settings, but setting the include_path inside .htaccess is the most important thing to do and this should work.

Best regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jbalcorn
Regular
Posts: 5
Joined: Fri Oct 31, 2003 6:00 pm
Location: Cleveland Heights, OH
Contact:

Absolutely

Post by jbalcorn »

If you have access to your web server configuration it's a pice of cake.

http://jalcorn.net/weblog/
http://jalcorn.net/politics/

Both those blogs are running from a shared installation. Follow the instructions for a shared installation in the distribution.

in httpd.conf:

<Directory "...<deleted>.../htdocs/weblog">
AllowOverride All
</Directory>

<Directory "...<deleted>.../htdocs/politics">
AllowOverride All
</Directory>

And then I use the mod_rewrite option and the .htaccess in the files is set up with:
RewriteEngine On
RewriteBase /weblog/
Post Reply