I'm a little stuck and need some help. I've looked at the httpd.conf file and I know what changes need to be made to it in order to make the main domain serve the /usr/share/wordpress/ directory instead of /primary. I've even changed it manually and restarted apache and verified it will work. I expanded the template again and have my default httpd.conf file back. I just manually changed it to verify my thoughts were correct.
I'm looking at the templates located at /etc/e-smith/templates/etc/httpd/conf/httpd.conf. I believe the file that creates the line for the DocumentRoot is contained in /etc/e-smith/templates/etc/httpd/conf/httpd.conf/80VirtualHosts but I can't figure it out. It looks like the information should be stored in the domains database but it's not listed with db domains show. Where in the heck is that line coming from?
I also spent some time working with webapps-common but I can't get it to change the primary domain. It just adds <VirtualDomain></VirtualDomain> directives outside of the directive for the primary domain.
I also modified /etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress and added code similar to the code found in
http://wiki.contribs.org/Web_Application_Redirect_Tutorial. I created a wordpress property called domain and stored the domain I want to redirect there. The template change worked and added a new <VirtualDomain> directive with the correct DocumentRoot. However, apache didn't use it. I can't find in the apache 2.2.3 docs anything about precedence of <VirtualDomain> directives but it seems like once there's a declaration, apache ignores any similar directives.
I'm going to use the SEF URL suggestion in
http://wiki.contribs.org/Joomla to modify the <Directory> directive to work with wordpress so that is the last piece. Until I get a solution to the DocumentRoot though, the rest doesn't matter.
As mentioned, I do know the changes that need to be made to the documentroot, but I can't find the point to make the change. Any push in the right direction or explanation will be greatly appreciated.
The direction I'm going in is:
1. Find the way to change the documentroot for the primary domain on the server.
2. Remove the Rewriterule for /wordpress
3. Change the directory directive for /usr/share/wordpress to allow symlinks, indexes, and AllowOverride for .htaccess.