RSS

Make apache/plesk proxy to lighttpd

05 Dec

I found out that you can use apache as a proxy to another server. ProxyPass does all of the magic. Since I plan to use lighttpd with rails apps running on another port, I created a fresh vhost.conf in the ~user/conf directory which is where Plesk keeps its config files. I added this line:

ProxyPass / http://anothersite.com:port/path/to/your/application/

Now, Plesk doesn’t include vhost.conf files by default, so you have to know about it.

/usr/local/psa/admin/sbin/websrvmng -u –vhost-name=yoursite.com

Restart the server:

/etc/rc.d/init.d/httpd restart

Enjoy!

Advertisements
 
1 Comment

Posted by on December 5, 2005 in Lighttpd, Linux

 

One response to “Make apache/plesk proxy to lighttpd

  1. ingo baab

    February 21, 2007 at 5:06 am

    Maybe just a typo?

    /usr/local/psa/admin/sbin/websrvmng -u –-vhost-name=yoursite.com
    dash was missing ———————^

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: