Running ISPConfig On Port 80 Using Apache's Reverse Proxy Feature (Debian Etch)
|
Submitted by falko (Contact Author) (Forums) on Wed, 2007-05-23 15:26. :: Debian | Apache | Control Panels
Running ISPConfig On Port 80 Using Apache's Reverse Proxy Feature (Debian Etch)Version 1.0 This article shows how you can configure a Debian Etch system that has the webhosting control panel ISPConfig installed so that ISPConfig can be accessed on port 80. By default ISPConfig uses port 81 which is a non-standard port and is blocked by some firewalls and ISPs. By using Apache's mod_proxy module, we can avoid this problem. It lets us create a reverse proxy that can fetch the pages from ISPConfig on port 81. I do not issue any guarantee that this will work for you!
1 Preliminary NoteI have tested this on a Debian Etch system. While some commands in this tutorial are Debian-specific, most of it can be applied to any other Linux distribution (especially the Apache configuration). I'm using the hostname ispconfig.example.com in this tutorial. The goal of this tutorial is to access ISPConfig under the URL http://ispconfig.example.com. I'm going to show how to do this in two separate chapters: one chapter if ISPConfig is installed under http://ispconfig.example.com:81 (http), and one chapter if ISPConfig is installed under https://ispconfig.example.com:81 (https).
2 ISPConfig Using http (http://ispconfig.example.com:81)In order to create a reverse proxy for http requests, we need the Apache modules mod_proxy and mod_proxy_http. These are already installed in a standard Debian Etch Apache 2.2 installation, so all we have to do is enable them: a2enmod proxy Afterwards, we have to reload Apache: /etc/init.d/apache2 force-reload Next, we must configure Apache. Open /etc/apache2/apache2.conf and search for this section: vi /etc/apache2/apache2.conf
Right before this section, we add the following lines:
so that it looks like this:
Then restart Apache: /etc/init.d/apache2 restart If you get warning like this one: server1:~/ispconfig/httpd/conf# /etc/init.d/apache2 restart then you can either comment out the line Include /etc/apache2/sites-enabled/ in /etc/apache2/apache2.conf: vi /etc/apache2/apache2.conf
or you comment out the line NameVirtualHost * at the beginning of /etc/apache2/sites-available/default: vi /etc/apache2/sites-available/default
Restart Apache: /etc/init.d/apache2 restart The warnings should be gone now. Finally we have to modify the ISPConfig configuration file /home/admispconfig/ispconfig/lib/config.inc.php. You should find something like this in it: vi /home/admispconfig/ispconfig/lib/config.inc.php
Modify it so that it looks like this:
That's it. Open a browser and type in http://ispconfig.example.com, and you should see the ISPConfig login prompt.
3 ISPConfig Using https (https://ispconfig.example.com:81)In order to create a reverse proxy for http requests, we need the Apache modules mod_proxy and mod_proxy_http. These are already installed in a standard Debian Etch Apache 2.2 installation, so all we have to do is enable them: a2enmod proxy Because our Apache reverse proxy must be able to "talk" to an https site (https://ispconfig.example.com:81), we also need the modules mod_proxy_connect and mod_ssl: a2enmod proxy_connect Afterwards, we have to reload Apache: /etc/init.d/apache2 force-reload Next, we must configure Apache. Open /etc/apache2/apache2.conf and search for this section: vi /etc/apache2/apache2.conf
Right before this section, add the following lines:
so that it looks like this:
Then restart Apache: /etc/init.d/apache2 restart If you get warning like this one: server1:~/ispconfig/httpd/conf# /etc/init.d/apache2 restart then you can either comment out the line Include /etc/apache2/sites-enabled/ in /etc/apache2/apache2.conf: vi /etc/apache2/apache2.conf
or you comment out the line NameVirtualHost * at the beginning of /etc/apache2/sites-available/default: vi /etc/apache2/sites-available/default
Restart Apache: /etc/init.d/apache2 restart The warnings should be gone now. Finally we have to modify the ISPConfig configuration file /home/admispconfig/ispconfig/lib/config.inc.php. You should find something like this in it: vi /home/admispconfig/ispconfig/lib/config.inc.php
Modify it so that it looks like this:
Please make sure that it reads http://ispconfig.example.com, not https://ispconfig.example.com! That's it. Open a browser and type in http://ispconfig.example.com, and you should see the ISPConfig login prompt.
4 Links
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com







Recent comments
20 hours 51 min ago
22 hours 19 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 11 hours ago