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 (https://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/wordpress2. create aliases within each virtual host, for example:
<VirtualHost>
ServerName https://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 https://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
- The topic ‘multiple blogs with apache alias’ is closed to new replies.