If you want your SlimServer to be available as a subdirectory of your
main Apache server (for example, as http://www.example.com/slimserver/
instead of http://www.example.com:9000/), you can use Apache's proxying
capabilities.

Here is my httpd configuration that seems to work with Apache 2.0.53
and SlimServer 6.5.0:

---------- BEGIN /etc/httpd/conf.d/slimserver.conf

<IfModule !mod_proxy_html.c>
LoadFile /usr/lib/libxml2.so.2
LoadModule proxy_html_module modules/mod_proxy_html.so
</IfModule>

<IfModule !mod_ext_filter.c>
LoadModule ext_filter_module modules/mod_ext_filter.so
</IfModule>

# this is new for SlimServer 6.5.0 (not needed in 6.3.1)
# so that "Server Settings" and "Player Settings" can flip
# pages.. probably should be fixed by developers..
ExtFilterDefine slimserver-sed mode=output intype=text/html
cmd="/bin/sed -e 's#\\(url\\s*=\\s*./\\)#\\1slimserver/#g'"

<Location /slimserver/>
RequestHeader set Referer http://localhost:9000/
ProxyPass http://localhost:9000/
ProxyPassReverse http://localhost:9000/
SetOutputFilter proxy-html;slimserver-sed
ProxyHTMLURLMap / /slimserver/
</Location>

---------- END /etc/httpd/conf.d/slimserver.conf

I thought, I'd share it with folks.. Thanks!


-- 
scratchy
------------------------------------------------------------------------
scratchy's Profile: http://forums.slimdevices.com/member.php?userid=5236
View this thread: http://forums.slimdevices.com/showthread.php?t=31571

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to