Page 1 of 1

How to run Apache and WingFTP simultaneously with port 80

Posted: Fri Feb 18, 2011 6:40 am
by FTP
If you want to run WingFTP and Apache on the same machine, there are lots of solutions available, using different ports, proxying method or same port with different IP address. If you want to run Apache and WingFTP on the same IP address and with the same HTTP port 80, OK, just take a few steps:

1. Let your Apache server run on port 80, and WingFTP's web client runs on port 8080.

2. Enable the Apache module "proxy_module".

3. Modify the Apache configuration

Code: Select all

<VirtualHost *:80>
    ServerName fileserver.YourDomain.com
    ProxyRequests Off
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
  </VirtualHost>

Done! When you visit the primary domain "www.YourDomain.com", then you will access the Apache's website. When you visit the second domain "fileserver.YourDomain.com", then you will access the web client of WingFTP.