Subdomains through ISPConfig for different purposes

Discussion in 'Tips/Tricks/Mods' started by wustl_2008, Jun 21, 2006.

  1. nenad

    nenad Member

    I put these lines into ISPConfig box:

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    After seting up SiteAcess according to the http://www.zope.org/Members/anser/apache_zserver
    I can not acess zope manage at http://www.web-hosting.co.yu:9673/manage/

    I permanantly receive 404 - Error! File not found.
    Now I don't know whats wrong?

    Apache proxy setup, or something with Zope....

    And I do not know where is file where SiteAcess wtites data, to reset it.
    As recommended as Base I put: http://www.web-hosting.co.yu , and "/" as I want that domain to holds Zope / Plone ...

    (Note: I had Plone / Zope working previously through :9673 port)
     
    Last edited: Jun 29, 2006
  2. wustl_2008

    wustl_2008 New Member

    Okay, in regards to proxy pass in proxy.conf I found this which *should* work for you (I can't access my specific setup now I'll check later if this doesn't work for you):

    This will have to work first before you can test your proxypass.


    <IfModule mod_proxy.c>

    #turning ProxyRequests on and allowing proxying from all may allow
    #spammers to use your proxy to send email.

    ProxyRequests Off

    <Proxy *>
    Order deny,allow
    Deny from all
    #Allow from .your_domain.com
    </Proxy>

    # allow to connect to localhost with port ending with 9673
    <ProxyMatch http://localhost:9673/.*>
    Order deny,allow
    Allow from all
    </ProxyMatch>

    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block

    ProxyVia On

    # To enable the cache as well, edit and uncomment the following lines:
    # (no cacheing without CacheRoot)

    CacheRoot "/var/cache/apache2/proxy"
    # 300MB
    CacheSize 307200
    # in hours
    CacheGcInterval 4
    CacheMaxExpire 24
    CacheLastModifiedFactor 0.1
    CacheDefaultExpire 1
    CacheForceCompletion 100
    # Again, you probably should change this.
    #NoCache a_domain.com another_domain.edu joes.garage_sale.com

    </IfModule>

    modified from: http://www.cheimes.de/opensource/docs/zope-apache2/zope-apache2-1

    -------------

    Before we get to your actual proxypass directives you need to make sure zope and plone work properly. Go to your zope/plone site at:

    http://web-hosting.co.yu:9673
    or
    http://server201.web-hosting.co.yu:9673

    and you should see the Zope quick start page.

    If not you have some debugging on your zope/plone setup before you can move to testing ProxyPass directives.

    -------------

    In regards to ProxyPass directives you currently have:

    You will probably need:

    ProxyPass / http://server201.web-hosting.co.yu:9673/VirtualHostBase/http/web-hosting.co.yu:80/VirtualHostRoot/
    ProxyPassReverse / http://server201.web-hosting.co.yu:9673/VirtualHostBase/http/http/web-hosting.co.yu:80/VirtualHostRoot/

    Usually you don't need the path for ProxyPass. What the one above should do is take whatever you see at the url:
    http://server201.web-hosting.co.yu:9673
    and make it display on:
    http://web-hosting.co.yu

    If the above doesn't work you can try this (using localhost instead of servername):

    ProxyPass / http://localhost:9673/VirtualHostBase/http/web-hosting.co.yu:80/VirtualHostRoot/
    ProxyPassReverse / http://localhost:9673/VirtualHostBase/http/http/web-hosting.co.yu:80/VirtualHostRoot/

    ---------------------------

    Please post any results you get on these steps. I promise we'll get you up and running, sometimes it's just a pain in the butt through the initial steps.
     
    Last edited: Jun 29, 2006
  3. nenad

    nenad Member

    Yes, I do have ZopeQuick start at:

    http://web-hosting.co.yu:9673/

    but I can't acess http://web-hosting.co.yu:9673/manage

    After seting up SiteAcess according to the http://www.zope.org/Members/anser/apache_zserver
    I can not acess zope manage at http://www.web-hosting.co.yu:9673/manage/

    I permanantly receive 404 - Error! File not found.

    Some where that script written data, and now I can't acess it.

    Falko, please if you are reading this, tell me where are located httpd.conf files for each separate domain ?

    --------------------------------------------
    BTW how do you manage to insert http here bypassing Vbuletin tendency to convert it to ? --------------------------------...ow I am back again, let's chat about proxy :)
     
    Last edited: Jun 29, 2006
  4. falko

    falko Super Moderator Howtoforge Staff

    The vhosts are all in Vhosts_ispconfig.conf.
     
  5. nenad

    nenad Member

    This:
    Code:
    ProxyPass / http://localhost:9673/VirtualHostBase/http/web-hosting.co.yu:80/VirtualHostRoot/
    ProxyPassReverse / http://localhost:9673/VirtualHostBase/http/http/web-hosting.co.yu:80/VirtualHostRoot/
    caused this:

    Code:
    Bad Gateway
    The proxy server received an invalid response from an upstream server.
    Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.
    and after enabling once again SiteAcess with site root http://www.web-hosting.co.yu

    this:
    Code:
    Site Error
    An error was encountered while publishing this resource. 
    
    Resource not found
    
    Sorry, the requested resource does not exist.
    Check the URL and try again.
    
    Resource: VirtualHostBase GET
    
    
    I think that basically both Zope and Plone are working: http://web-hosting.co.yu:9673/Plone Demo Site

    Probably I have to change this:
    SiteAcess with site root http://www.web-hosting.co.yu

    and make it point somewhere else...?

    BTW how to really check whether Proxy is doing it's job or not?

    -----------------------------------------------------------------------------------------------
    Actually, this works too (withouth SiteAcess rules), but look at the url which is necessery to acess site:

     
    Last edited: Jun 30, 2006
  6. wustl_2008

    wustl_2008 New Member

    What version of zope are you using? Check to make sure you have a VirtualHostMonster in the root of your zope site (assuming you can access your /manage interfaces somehow).

    Shaddo-X
     
  7. nenad

    nenad Member

    I am using debian package for Zope 2.6

    Yes, I can acess /manage (I resolved issue with SiteAcess)

    What if I do not want to use folder /foo but whole domain?

    BTW Where are phisically located all of the data for Zope/Plone site?
     
    Last edited: Jun 30, 2006
  8. nenad

    nenad Member

    I put VirtualHostMonster in the root folder of Zope, not into the root folder of my plone site and now at http://www.web-hosting.co.yu/

    I have Zope Quick Start

    But, I need Plone site, right?
     
  9. nenad

    nenad Member

    ++++++++++++++++++++++++++++
    + YAY!
    + It works!
    + http://www.web-hosting-solutions.biz
    ++++++++++++++++++++++++++++


    Finally!!

    Later I'll post what I done! :)

    Beer for everyone, on my bill ;)
     
    Last edited: Jul 1, 2006
  10. wustl_2008

    wustl_2008 New Member

    Success at last, success at last

    Congrats Nenad! Told you we'd get it sooner or later. Sorry if all the different messages were confusing. I think the SiteAccess stuff was messing it up possibly. Looking forward to your step by step. I've always used Zope and Plone from source as the .deb packages are usually out of date.

    wustl_2008
     
  11. nenad

    nenad Member

    @wustl_2008

    THANK YOU very much for your support!
     
  12. shalom

    shalom New Member

    Help about installing zope and ISPCONFIG

    wustl_2008 if you get this please update
    i cant find any info in google about installing ispconfig with zope except for this page
     

Share This Page