

ProxyPass / ProxyPassReverse / ProxyPreserveHost On That sub path will now be CrushFTP while everything else on your Lion server remains the same.Īlternate Lion Server 10.7 / MT Lion 10.8Īnother way is to edit the conf file in OSX Server for one of your Apache ports / sites.Ĭd /Library/Server/Web/Config/apache2/sites/ Applications/CrushFTP8_OSX/CrushFTP8.app/Contents/Resources/Java/nfĢ.)Issue: sudo webappctl start com.crushftpģ.)Setup a CrushFTP HTTP port 9090, with a reverse proxy path of /crush/ Click ok, then click Save in the main Server Admin window to save changes and re-start Apache.ġ0.7 1.) place this '' attachments file in /etc/apache2/webapps/ġ0.8 1.) place this '' attachments file in /Library/Server/Web/Config/apache2/webapps/ Enter any four-digit number in the 'route' field (this is just an identifying number for the 'sub-server') and enter '100' in the 'Load Factor' window below it (this will ensure that Apache sends all network traffic to your CrushFTP server). To add the CrushFTP server, click the '+' button below the window below, and enter '' (if you have a CrushFTP server answering at port 8080) in the 'Server URL' field.

Now you have to add a 'load balancer' server: this function is usually for spreading web traffic seamlessly between several 'worker' servers, but here our second server (CrushFTP) is internal. Go to the "proxy" tab for your selected site, click "enable reverse proxy", then enter the proxy path you want the server to answer to in the field below (for example's sake, here we will use '/crushftp/'). If you have to create a new site, do so, but just keep in mind that the home folder location isn't important for proxying, as it is ignored by the 'proxy server' you are creating. This is less intuative, as Leopard Server's 'Server Admin' wants to control everything and treats proxies in a slightly different way.Ĭhoose the 'Web' service in Server Admin, and select the website (under 'sites') whose port 80 (or whatever) url you want to forward to CrushFTP. Then restart Apache (System Preferences/Sharing - un-click and click "web sharing" in the panel to the left. Ideally you may want to forward / to the URL, and forward a sub directory to another server. What the above means is that the Apache server will forward all calls to 'to the CrushFTP server, and map all answers back through the same URL. Now add the following lines after the section about 'Document Root': Make sure there is no 'addmodule' directive for the 'proxy_module' as well (there shouldn't be for Leopard) if there is, un-comment it as well. Scroll down to '#LoadModule proxy_module libexec/httpd/libproxy.so' and remove the '#'. Through BBedit/TextWrangler, simply open the file (shift-command-g in the Finder and type '/etc/apache2' to access the apache2 directory where the nf file lies).


Use BBEdit or TextWrangler to edit the /etc/apache2/nf file as follows: Leave that window open as we will come back to it later. Instead, go to your CrushFTP preferences, and change your http server to listen on another port, say, 8080 which is the default (this will be used in the example below). If you are running an http CrushFTP server on port 80, this won't work, as CrushFTP will take all http calls before apache will. One should note that CrushFTP operates in its own server environment and Apache in another: this will create a 'bridge' between the two. ( *** For IIS, you need a third party module.
#Textwrangler sftp how to#
This document describes how to forward all calls to an apache server, through the apache 'proxy_module' module, to the CrushFTP server environment.
