Quote:
|
Or am I totally missing the point ?
|
Yes you are totally missing the point. php function cannot connect on different ports. A few scenarios
a) as a subdomain
images.domain.com -> lighttpd to send images
www.domain.com -> Apache with PHP (all images and static pages linked from images.domain.com)
b) Lighttpd as proxy
lighttpd run on port 8080 on same server
Apache run on port 80 with proxy_module
You configure Apache to serve images via lighttpd stored in /images directory by adding following line of code to httpd.conf:
Code:
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /images http://0.0.0.0:8080/
ProxyPassReverse / http://0.0.0.0:8080/
Above setup is more common, but some people use lighttpd for all kind of work.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!
If you have knowledge, let others light their candles at it.
Certified to work on
HP-UX /
Sun Solaris /
RedHat