Serverside includes

jep

Verified User
Joined
Nov 12, 2003
Messages
79
Hi,

I'm using my own parser to parse a clients data to virtualhosts, and they look like this:

<virtualhost 80.247.213.51>
servername abonnementen.recreatief.nl
documentroot /home/recreatief/public_html/gids/abonnementen/
transferlog /var/log/httpd/domains/recreatief.nl.log
errorlog /var/log/httpd/domains/recreatief.nl.error
</virtualhost>

I've put them in the httpd.conf from the user reactief. It works, but serverside includes don't.

I tried to add something like this to the virtualhost:

<Directory /home/recreatief/>
Options +Includes -Indexes
php_flag engine on
php_admin_value safe_mode 1
</Directory>

php_admin_value open_basedir /home/recreatief/:/tmp/:/var/www/:/usr/lib/php/

But that doesn't work. It would be nice to enable the SSI's for the whole /home/username/ directory i choose. Is this possible? The other option is to re-parse the data and make some changes in the virtualhost, but i can't find the right syntax for this yet.
 
Hmm.. the SSI should work by default unless there are any weird commands..

Is the document root you've mentioned above just for example?
Because the directory in the VH's uses the full path, not the symlinked one:

/home/recreatief/domains/recreatief.nl/public_html/gids/abonnementen/

and not

/home/recreatief/public_html/gids/abonnementen/

also the <Directory ..> we use points to the documentroot, not the /home/username directory.. so the deeper Directory setting would have higher priority.

You could always play with the virtual_host.conf templates as needed to remove the options settings if you want to do it manually (possibly only call it once from the main httpd.conf)..

John
 
Back
Top