Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th January 2007, 00:00
KenKnight KenKnight is offline
Senior Member
 
Join Date: Nov 2005
Posts: 137
Thanks: 0
Thanked 3 Times in 2 Posts
Default mod_proxy / rewrite rules

Hi all,

I'm trying to test the mod_proxy stuff here. My goal is to have a XP server running apache behind my linux box and then if the URL has /app in it, it will pull from the xp server for my dynamic content applications I'm writing.

The reason for this is the engine that I'm using has more features and is more powerful on the windows side vs the linux side.

So in ISPconfig for my site, as a test, I added the following to the apache directives area;
======================================

ProxyRequests Off

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

ProxyPass /app http://192.168.11.1
ProxyPassReverse /app http://192.168.11.1

=======================================

However, after a save and check again, I get 'NOT SUPPORT' messages with my stuff commented out. So my question is, how do I accomplish this?

Thanks,
Ken

PS. I'm basically sending it to my router website as a test.
Reply With Quote
Sponsored Links
  #2  
Old 11th January 2007, 20:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Is mod_proxy enabled in your Apache configuration?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th January 2007, 05:39
KenKnight KenKnight is offline
Senior Member
 
Join Date: Nov 2005
Posts: 137
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Hi Falko,

Thanks for replying. Doh! No I didn't have it enabled. I issued a a2enmod proxy which appears to be the mod_proxy.so module.

After enabling it, it still did not work, so I decided to try some different settings. By using the Directory directive. Still no joy.

Any thoughts?

Thanks,
Ken
Reply With Quote
  #4  
Old 13th January 2007, 12:28
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

As you are on a local LAN (and probably not direct Internet link), you could try
Code:
ProxyRequests On
Reply With Quote
  #5  
Old 14th January 2007, 06:36
KenKnight KenKnight is offline
Senior Member
 
Join Date: Nov 2005
Posts: 137
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Thanks Martin. . . nope, didn't work.

======== edit ===============

Hi all,

Looks like the problem is that my ISPconfig is not updating the Vhosts file. Any reason why it would stop writing to the file??

Thanks,
Ken

Last edited by KenKnight; 14th January 2007 at 07:00.
Reply With Quote
  #6  
Old 14th January 2007, 12:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

You can locate the error as described here:

http://www.howtoforge.com/forums/showthread.php?t=7719
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 22nd January 2007, 00:25
KenKnight KenKnight is offline
Senior Member
 
Join Date: Nov 2005
Posts: 137
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Thanks till. Still no go on getting ISPConfig to update the vhosts file.

How can I "Force" ISPConfig to rewrite the entire file?

Thanks,
Ken
Reply With Quote
  #8  
Old 22nd January 2007, 00:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

You can not force it or it will break your apache configuration. Thats why ISPConfig does not update it.

Please locate the error as described in the thread I posted above:

Quote:
1) Make a backup of /etc/apache2/vhosts/Vhosts_ispconfig.conf
2) Rename the latest file /etc/apache2/vhosts/Vhosts_ispconfig.conf_.... that has a date appended to /etc/apache2/vhosts/Vhosts_ispconfig.conf
3) run

httpd -t

and post the output.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 22nd January 2007, 01:04
KenKnight KenKnight is offline
Senior Member
 
Join Date: Nov 2005
Posts: 137
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Hi Till,

Sadly there is no "latest file with a date appended to it" available to rename to Vhosts_ispconfig.conf.

Ken
Reply With Quote
  #10  
Old 22nd January 2007, 01:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
 
Default

Please go to the directory where the Vhost_ispconfig.conf file is and execute:

ls -la Vhosts_ispconfig.conf*

and post the output here.

Please post also the output of:

ls -la /root/ispconfig/.ispconfig_lock

and:

ps aux | grep wconf
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
iptables rules for ftp flourishing Installation/Configuration 5 14th April 2008 22:18
gallerie and rewrite fpl Installation/Configuration 20 14th February 2007 16:21
How to add permanently rules to the ISPConfig Bastille-firewall ? arnaud Installation/Configuration 3 4th August 2006 14:26
Drupal and Apache Rewrite Rules andre Server Operation 10 4th May 2006 22:04
SpamAssassin rules stiffmeister Technical 1 13th May 2005 17:48


All times are GMT +2. The time now is 22:28.


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