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 10th December 2007, 14:40
dekat dekat is offline
Junior Member
 
Join Date: Nov 2006
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default Plone, Apache2, and ISPConfig

Season's Greetings Everyone!

I'd like help getting plone to work with apache2 and ISPConfig on my Ubuntu 7.10.

Here's the deal:

1. I have one Web site (http://www.site1.com) on apache and located at /var/www/web1/web

2. I created another Web site, site2 (http://www.site2.org) located at /var/www/web2/web

3. I created a plone instance site2, and accessible at http://www.site1.com:8080/site2

4. I would now like to have the address http://www.site2.org point to the plone instance site2

I've looked at some examples (http://plone.org/documentation/how-t...e-with-apache), enabled the relevant apache modules, and tried my hand at rewrite rules, but its just not working out. I'd thus appreciate it if any one can provide me some pointers or copies of configurations that have worked for them under similar circumstances.

Thanks in advance for your help.

Katim
Reply With Quote
Sponsored Links
  #2  
Old 11th December 2007, 14:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You can use ISPConfig's forward feature for Co-Domains, or you use the Apache Directives field to create some rewrite rules: http://httpd.apache.org/docs/2.2/misc/rewriteguide.html
__________________
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 11th December 2007, 23:43
dekat dekat is offline
Junior Member
 
Join Date: Nov 2006
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
You can use ISPConfig's forward feature for Co-Domains, or you use the Apache Directives field to create some rewrite rules: http://httpd.apache.org/docs/2.2/misc/rewriteguide.html
Hi Falko,

I tried the forward feature of ISPConfig, but it didn't quite work out. Thus, creating a new forward to http://www.site2.org:8080/site2 did not get me to the plone site. I also looked at the Apache directives documentation you linked to, but I couldn't see any code that I could use for me needs.

For your information, here's the relevant snippet from my Vhosts_ispconfig.conf file (with real names replaced by site2):

<VirtualHost site2-ipaddress:80>
ServerName www.site2.org:80
RewriteEngine On
RewriteRule ^($|/.*) http://127.0.0.1:8080/VirtualHostBase/http/www.site2.org:80/site2/VirtualHostRoot/$1 [L,P]
# DocumentRoot /var/www/web2/web



What am I doing wrong?

Katim
Reply With Quote
  #4  
Old 12th December 2007, 16:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Try this:

Code:
RewriteEngine On
RewriteRule ^(.*)$ http://127.0.0.1:8080/VirtualHostBase/http/www.site2.org:80/site2/VirtualHostRoot/$1 [L,P]
Of course, http://127.0.0.1:8080 will work only on localhost, not from another computer.
__________________
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
  #5  
Old 12th December 2007, 17:44
dekat dekat is offline
Junior Member
 
Join Date: Nov 2006
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko
Try this:

Code:
RewriteEngine On
RewriteRule ^(.*)$ http://127.0.0.1:8080/VirtualHostBase/http/www.site2.org:80/site2/VirtualHostRoot/$1 [L,P]
Of course, http://127.0.0.1:8080 will work only on localhost, not from another computer.
Hi Falko,

I tried the above, and ended with an error message:

Forbidden
You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


For your information, I included site2.org in my /etc/hosts file (so 127.0.0.1 would also resolve to it), and still got the above message.

My additional questions is: what happens if I add another, or more plone sites? Would I have to add additional rewrite rules for them, and if so what format would they take?

Again, thanks in advance for your help.

Katim
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
PerfectSetup etch 4.0 ISPConfig - Apache2 !!! marowiliams HOWTO-Related Questions 2 25th June 2007 17:56
server with Apache2 / Apache 1.3 (and ISPConfig) akaiser Server Operation 3 8th February 2007 20:26
Apache2 dies after manual removal of ISPConfig showe1966 Installation/Configuration 1 4th January 2007 12:59
ISPConfig apache2 howto module_proxy glasprilla Installation/Configuration 2 4th October 2006 17:27
PHP on Apache2 no longer works after ISPconfig azorman Installation/Configuration 6 23rd July 2006 22:06


All times are GMT +2. The time now is 16:33.


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