Support » Installing WordPress » multiple blogs with apache alias

  • 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

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘multiple blogs with apache alias’ is closed to new replies.