WordPress.org

Ready to get started?Download WordPress

Forums

multiple blogs with apache alias (6 posts)

  1. wmconlon
    Member
    Posted 9 years ago #

    I've looked through some posts here on multiple blogs, as well as the instruction in the codex. It looks like everyone installs a complete wordpress application for every blog. Shelley (http://weblog.burningbird.net/archives/2004/05/19/survival-guide-to-lamp-unlimited-weblogs/) posted an interesting approach using symlinks, but I'm curious if you can install a single wordpress application, and then use apache's alias directive.

    For example:
    1. install wordpress at /usr/local/apache2/php/wordpress

    2. create aliases within each virtual host, for example:
    <VirtualHost>
    ServerName http://www.myblog.com
    DocumentRoot /path-to-myblog/
    Alias /wordpress/ /usr/local/apache2/php/wordpress/
    Alias /wordpress/wp-config.php /my-file-outside-web-root
    </VirtualHost>
    <VirtualHost>
    ServerName http://www.yourblog.com
    DocumentRoot /path-to-yourblog/
    Alias /wordpress/ /usr/local/apache2/php/wordpress/
    Alias /wordpress/wp-config.php /your-file-outside-web-root</VirtualHost>

    Maybe there are some other files that also need to aliased to support other styles and plug-ins. But the essence is that there is a single instance of wordpress (easier to maintain and upgrade). The other part is that configuration info is NOT in the web root, which makes me more comfortable.

    Anyone have an opinion on whether this approach makes sense?

    thanks

  2. WDuluoz
    Member
    Posted 9 years ago #

    Skippy has a plugin to do something similiar to what you are suggestion. Its called vhosts.
    You can find it here.
    http://www.skippy.net/blog/2005/04/20/plugin-vhost/

  3. wmconlon
    Member
    Posted 9 years ago #

    Interesting -- a single blog used with multiple hosts.

    Not what I'm after, though. I want multiple weblogs, but each using the same wordpress php code. Mostly this is for ease of maintenance, so I only install once, though I configure each.

    Perhaps my experience with non-php (mod-perl, speedy, JRun, Witango) app servers is skewing my perspective on this. But I would think that having a single php file instance would permit mod_php to cache and compile certain components, if not now at least in future versions.

  4. tomhanna
    Member
    Posted 9 years ago #

  5. dingfelder
    Member
    Posted 9 years ago #

    any plan for implementing this type of functionality in the standard wordpress?

  6. skippy
    Member
    Posted 9 years ago #

    There's been talk about multi-blog options in future version of WordPress, but there's no clearly defined criteria or timeline yet.

Topic Closed

This topic has been closed to new replies.

About this Topic