Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 15th March 2007, 11:53
crapufish crapufish is offline
Junior Member
Join Date: Mar 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using ProxyPass to "hide" the port 81


I am trying to forward all the requests made to http://www.mydomain.com/ispconfig/ to the ISPConfig web interface using Apache's ProxyPass. Unfortunately this is not working...

I edited /etc/apache2/apache2.conf and added at the end of the file this:

ProxyRequests off
ProxyPass /ispconfig/
Now, when I try to access http://www.mydomain.com/ispconfig/ it shows a "403 Access forbidden" page. Any idea why this doesn't work? It seems apache clearly wants to redirect to ISPConfig, but something goes wrong...


Reply With Quote
Sponsored Links
Old 15th March 2007, 15:20
Ben Ben is offline
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts

What do you see in the error / access log of the apache serving mydomain.com?
Eventually it is helpfull to set the LogLevel to debug for that purpose...
Reply With Quote
Old 15th March 2007, 19:52
crapufish crapufish is offline
Junior Member
Join Date: Mar 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up


I resolved this... Here is my solution (in case someone else might need it):

I added at the end of the Apache2 config file (/etc/apache2/apache2.conf) the following code:

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all

ProxyPass /ispconfig
ProxyPassReverse /ispconfig
Now everytime I go to http://www.mydomain.com/ispconfig/ Apache forwards my request to localhost:81

I had however to edit /home/admispconfig/ispconfig/lib/config.inc.php as well because the HTML code for some images and css style files were generated using the full real url (the one with :81).

Here are the changes I made:

I replaced this:
  $go_info["server"]["server_url"] = 'http://'.$_SERVER['HTTP_HOST'];
} else {
  $go_info["server"]["server_url"] = "http://www.mydomain.com:81";
with this

$go_info["server"]["server_url"] = "http://www.mydomain.com/ispconfig";

Happy ISPConfig'ing!

Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 17:33
My php scripts don't send e-mail html forms. CombatGod Installation/Configuration 5 8th November 2006 11:16
ispconfig on port 443 (standard secure port) gjcomputer Installation/Configuration 8 1st October 2006 14:38
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 23:40
Sequring TPS Fedora4 Hagforce HOWTO-Related Questions 17 28th March 2006 18:36

All times are GMT +2. The time now is 10:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.