Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
03-04-2009, 09:25 PM #1
- Join Date
- May 2008
- Thanked 0 Times in 0 Posts
Looking for SSI help - pulling from a subdomain
I'm wondering if anyone can come up with an alternative to using a "#include file" command. The situation I currently have is thus:
On my primary domain, I am attempting to use a server side include to insert the text from a file in a subdomain. The reason for this is that the subdomain is run by someone else, and I'm not about to give them full access to the entirity of the domain and tell them to only edit their folder.
So anyway, I've been attempting to use:
<!--#include file="/var/www/vhosts/zebeth.com/subdomains/subsector/httpdocs /ztest.txt"-->
unable to include file "/var/www/vhosts/zebeth.com/subdomains/subsector/httpdocs/ztest.txt" in parsed file /var/www/vhosts/zebeth.com/httpdocs/planetzebeth/test2.html
Long story short, after much testing with the server support, they concluded the following:
The server is having suexec enabled and so the website code running under cgi or ssi will be running under the identity of the corresponding user.
Main domain and subdomain are having different suexec users and so
is working well which is accessing the page from domain itself.
URL http://www.zebeth.com/planetzebeth/test2.html which is your code is taking from the subdomain which doesn't work because of the suexec mode.
So from what I can gather, I'm basically stuck trying to go down the '#include file' direction. The server provider isn't about to change base permissions of an entire server for one random website taking up a very small portion of it.
Thus, I'm looking for possible alternatives that would bypass this suexec problem. I currently have it running through an iFrame, which sucks in general, the least of which is not the non-variable height.
Any help you could throw my way would be greatly appreciated.
If it helps, the webroots for the site are:
Main domain - /var/www/vhosts/zebeth.com/httpdocs
Subdomain - /var/www/vhosts/zebeth.com/subdomains/subsector/httpdocs
And if it's of any value, my 'test' page is at http://www.zebeth.com/planetzebeth/test2.html .