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.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th March 2007, 10: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

Hello!

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:

Code:
ProxyRequests off
ProxyPass /ispconfig/ http://127.0.0.1:81/
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...

Thanks!

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

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
  #3  
Old 15th March 2007, 18:52
crapufish crapufish is offline
Junior Member
 
Join Date: Mar 2007
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
 
Thumbs up

Hello!

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:

Code:
ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /ispconfig http://127.0.0.1:81
ProxyPassReverse /ispconfig http://127.0.0.1:81
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:
Code:
if(isset($_SERVER['HTTP_HOST'])){
  $go_info["server"]["server_url"] = 'http://'.$_SERVER['HTTP_HOST'];
} else {
  $go_info["server"]["server_url"] = "http://www.mydomain.com:81";
}
with this

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

Happy ISPConfig'ing!

Dorian
Reply With Quote
Reply

Bookmarks

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 16:33
My php scripts don't send e-mail html forms. CombatGod Installation/Configuration 5 8th November 2006 10:16
ispconfig on port 443 (standard secure port) gjcomputer Installation/Configuration 8 1st October 2006 13:38
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40
Sequring TPS Fedora4 Hagforce HOWTO-Related Questions 17 28th March 2006 17:36


All times are GMT +2. The time now is 12:49.


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