cluther wrote:
> On Sep 5, 2008, at 9:06 AM, guym wrote:
> 
> > I'm trying to use apache as the webserver with fast-cgi to interact  
> > with zenoss. I've seen instructions of how to do this with zope 
> > (http://svn.zope.org/*checkout*/Zope/trunk/doc/WEBSERVER.txt 
> > ) but can't get this working with zenoss. I want to do it this way  
> > so I can use our webauth single sign on (i.e. apache will pass the  
> > credentials over to zenoss).
> > 
> > I think i'm some of the way there, but when I log in I get: Not  
> > found The requested URL /zport/dmd/ was not found on this server.
> > 
> 
> I'd be reluctant to go down the FastCGI route. You may want to take a  
> look at the following article instead that explains how to set  
> something like this up using mod_rewrite/mod_proxy instead.
> 
> http://www.washington.edu/webinfo/case/zope/
> 


Thanks for your help. I've got a little further, using mod_rewrite and FastCGI. 
Is the problem with FastCGI that it is depreciated?

Anyway, I'm getting to the zenoss site with stylesheet applied but get the 
following:

#############################

Site error

An error was encountered while publishing this resource. The requested resource 
does not exist.
Please click here to return to the Zenoss dashboard
Request Information
form
cookies
__utma  '49557048.1743943641.1214824692.1220624252.1221041496.39'
__utmz  
'49557048.1221041496.39.13.utmccn=(organic)|utmcsr=google|utmctr=at+risk+period|utmcmd=organic'
__utmc  '49557048'
webauth_at      
'SMjnzCmIdjyagXYCBPeiqdKEpFSdFekvv0hQFKHICb0b6neMj0IanmvSxKXNOBO+lUER+DFz47ujZeTvPOeiHy0cWwb3lfgT/0rWZrEBp3aZ2si4'
lazy items
SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager 
at /session_data_manager>>
other
TraversalRequestNameStack       []
AUTHENTICATED_USER      Anonymous User
URL     'https://<siteurl>/zport/dmd'
VIRTUAL_URL     'https://<siteurl>/zport/dmd'
URL2    'https://<siteurl>'
VirtualRootPhysicalPath ('',)
SERVER_URL      'https://<siteurl>'
AUTHENTICATION_PATH     ''
BASE0   'https://<siteurl>'
BASE1   'https://<siteurl>'
BASE2   'https://<siteurl>/zport'
BASE3   'https://<siteurl>/zport/dmd'
URL0    'https://<siteurl>/zport/dmd'
PUBLISHED       <DataRoot at /zport/dmd>
URL1    'https://<siteurl>/zport'
ACTUAL_URL      'https://<siteurl>/zport/dmd/'
VIRTUAL_URL_PARTS       ('https://<siteurl>', 'zport/dmd')
URL0    https://<siteurl>/zport/dmd
URL1    https://<siteurl>/zport
URL2    https://<siteurl>
BASE0   https://<siteurl>
BASE1   https://<siteurl>
BASE2   https://<siteurl>/zport
BASE3   https://<siteurl>/zport/dmd
environ
AUTH_TYPE       'WebAuth'
HTTP_REFERER    
'https://<webauthurl>/login?RT=SMjnyr6DzdlpOleeYu0WS8hH1JDq4Z9WiVadhiymcTwdr6P1Tz1+9NcnIsEMhRbxZzS30KbnFqJQCLZhdAEcFCu/pARYrI+PbvRgCHyImJx19+oRgu7NH7R6PyPLKeG/HZxL91KQ5QuVTPHVFtgn3XCni+u66kHSA/5sjf/B0Uc6J4eJLNCn6X+swAc3RZ3K+jheEqA06FpKeYJ0DVICRdtV8WBekHIq6kosWLQe76FOrP+RmE2UlZ9BJsgnQbXDeJXJZw==;ST=SMjny5fTfa7qHEUSE6l5vpBPcwfI4PKj0wnp8KyXou+yEqrWDJ8ENmkTNx4sxHzfqjgs/FeQqAPcJ76XPTjQV13+tLXHZOToqOKYkoyXfwr5PBxoOYFMogUH84XtgwQW/knwxQtt+pafxNaIjHdWZ9HI//RC1GkSM2SpriDJ2xwy1uDt5drthxyiI27SRpno8/B4GQ=='
SERVER_SOFTWARE 'Apache/2.2.3 (CentOS)'
SCRIPT_NAME     '/foo'
SERVER_SIGNATURE        '<address>Apache/2.2.3 (CentOS) Server at <siteurl> 
Port 443</address>\n'
REQUEST_METHOD  'GET'
PATH_INFO       
'/VirtualHostBase/https/<siteurl>:443/VirtualHostRoot/zport/dmd/'
SERVER_PROTOCOL 'HTTP/1.1'
QUERY_STRING    ''
PATH    '/sbin:/usr/sbin:/bin:/usr/bin'
HTTP_ACCEPT_CHARSET     'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
REMOTE_USER     'guym'
HTTP_CONNECTION 'keep-alive'
HTTP_COOKIE     
'__utma=49557048.1743943641.1214824692.1220624252.1221041496.39; 
__utmz=49557048.1221041496.39.13.utmccn=(organic)|utmcsr=google|utmctr=at+risk+period|utmcmd=organic;
 __utma=107475804.221730075.1215523706.1219393442.1220351701.6; 
__utmz=107475804.1219393442.5.2.utmccn=(organic)|utmcsr=google|utmctr=oxford+university+map|utmcmd=organic;
 __utmc=49557048; 
webauth_at=SMjnzCmIdjyagXYCBPeiqdKEpFSdFekvv0hQFKHICb0b6neMj0IanmvSxKXNOBO+lUER+DFz47ujZeTvPOeiHy0cWwb3lfgT/0rWZrEBp3aZ2si4'
SERVER_NAME     '<siteurl>'
REMOTE_ADDR     '<myip>'
WEBAUTH_USER    'guym'
WEBAUTH_TOKEN_CREATION  '1221126092'
PATH_TRANSLATED 
'/srv/foo/VirtualHostBase/https/<siteurl>:443/VirtualHostRoot/VirtualHostBase/https/<siteurl>:443/VirtualHostRoot/zport/dmd/'
SERVER_PORT     '443'
SERVER_ADDR     '<serverip>'
DOCUMENT_ROOT   '/srv/'
WEBAUTH_TOKEN_EXPIRATION        '1221158893'
SCRIPT_FILENAME '/srv/foo'
SERVER_ADMIN    '[EMAIL PROTECTED]'
SCRIPT_URI      'https://<siteurl>/zport/dmd/'
HTTP_USER_AGENT 'Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.1) 
Gecko/2008072820 Firefox/3.0.1'
HTTP_HOST       '<siteurl>'
SCRIPT_URL      '/zport/dmd/'
HTTPS   'on'
REQUEST_URI     '/zport/dmd/'
HTTP_ACCEPT     
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
GATEWAY_INTERFACE       'CGI/1.1'
REMOTE_PORT     '60580'
HTTP_ACCEPT_LANGUAGE    'en-gb,en;q=0.5'
HTTP_ACCEPT_ENCODING    'gzip,deflate'
HTTP_KEEP_ALIVE '300'

#############################

My apache conf is now:

Listen <serverip>:80
<VirtualHost <serverip>:80>
        ServerName <siteurl>
        ErrorLog /var/log/httpd/http-error
        RewriteEngine On
        RewriteRule /.* https://<siteurl>/ [R]
</VirtualHost>

Listen <serverip>:443
<VirtualHost <serverip>:443>
        <Directory *>
                SSLRequireSSL
                Options None
                AllowOverride AuthConfig
                Allow from all
                WebAuthExtraRedirect on
                AuthType WebAuth
                Require user guym
        </Directory>
        FastCgiExternalServer /srv/foo \
                      -host <siteurl>:8889 \
                      -pass-header Authorization
        <Location /foo>
                SetHandler fastcgi-script
        </Location>
        ServerName <siteurl>
        DocumentRoot "/srv/"
# SSL CONF ############################################
    SSLEngine on
    SSLCertificateFile /etc/httpd/ssl/zenoss-crt.pem
    SSLCertificateKeyFile /etc/httpd/ssl/zenoss-key.pem
    SSLCertificateChainFile /etc/httpd/ssl/ukerna-ca-chain.pem
    <Files ~ "\.(cgi|shtml|phtml|mhtml|php3?)$">
            SSLOptions +StdEnvVars
    </Files>
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown 
downgrade-1.0 force-response-1.0
    CustomLog /var/log/httpd/networks-ssl-request.log "%t %h %{SSL_PROTOCOL}x 
%{SSL_CIPHER}x \"%r\" %b"
# END SSL CONF ########################################
        RewriteEngine On
        RewriteRule ^/(.*) \
        /foo/VirtualHostBase/https/<siteurl>:443/VirtualHostRoot/$1 [PT]
</VirtualHost>

I think my rewrite rule must be pointing at the wrong bit on the zenoss site 
(but close enough to pick up the stylesheet). 

Please help!

Guy




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=24969#24969

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to