Apache Includes
Hi, new to the community
Hope someone could help me please.
I have a wordpress installed with wpthree broadcast. On this account i have many addon domains, I used addons so that I can have access to files from other domains within the group without going outside my directory and running in to permission group permission issues.
For broadcast to work I have to set the DocumentRoot to the wordpress install which works well.
However, this means that other directories such as /forums/ do not work as it keeps resolving to the DocumentRoot which points to wordpress
I guess i need to use Apache includes so I need to know how to use the Includes Editor to make an alias for the forums. See below
DocumentRoot /home/domain/public_html/wordpress/
Alias /forums /home/domain/public_html/addon-domain/forums/
Wordpress is in main account and the addon domains all have forums so I need an alis to make sure the forums load as they should.
How would I do this with Includes, or is their a much better way (without redirection)
cheers
-
i have created a custom conf file and added it to the include path ran the script /scripts/ensure_vhost_includes --all-users This then unhashed the include path. Saus it built the httpd.conf fine But it still does not work In my conf file it says Alias /forums /home/username/public_html/addon-domain.com/forums/ Alias /legacy /home/username/public_html/addon-domain.com/legacy/ Alias /public /home/username/public_html/addon-domain.com/public/ Alias /images /home/username/public_html/addon-domain.com/images/ Alias /media /home/username/public_html/sharedresources/media/ Would this work? 0 -
Hello, Could you elaborate on the configuration you are looking for, with specific examples? For instance, do you want /forums to work on all addon domain names and go to the same location? Thank you. 0 -
Hi I managed to get this working by using the hashed include in the httpd.conf I added my aliases Then used /scripts/ensure_vhost_includes --all-users which found the new conf file worked a charm. 0 -
I am happy to see the issue is now resolved. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
4 comments