Page 1 of 1

Multiple Blog installation in sub directories...

Posted: Thu Oct 07, 2004 5:04 am
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?

Re: Multiple Blog installation in sub directories...

Posted: Thu Oct 07, 2004 10:55 am
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.

Absolutely

Posted: Thu Oct 07, 2004 4:57 pm
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/