[opencms-dev] Workplace login-problem, wants to popup on port :8081 and not :80
Yves Glodt
yg at mind.lu
Mon Mar 3 14:42:24 CET 2008
On Monday 03 March 2008, Christoph P. Kukulies wrote:
> On Sun, Mar 02, 2008 at 10:47:46PM +0100, Yves Glodt wrote:
> > Hello list,
> >
> >
> > Also, could it be that there is a typo in the static-export howto...?:
> >
> > It's written:
> > RewriteRule .*
> > http://127.0.0.1:8081/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}
> > [P]
> >
> > But I guess it should be:
> > RewriteRule .*
> > http://127.0.0.1:8081/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_
> >STRING} [P]
>
> This is indeed, if not a typo, so at least different from what is
> working with me here. What you are guessing, should be correct (with the
> opencms).
>
> Could you post your VirtualHost section? And what entries do you have in
> server.xml of tomcat regarding the 8081?
my server.xml section is exactly as in the documentation here:
/opencms/opencms/alkacon-documentation/howto_apache_httpd/mod_proxy.html
Except that I use port 8180, and of course I put my hostname in place.
Virtualhosting seems to be ok in my setup.
My vh from apache follows here:
<VirtualHost *:80>
<Directory "/var/lib/tomcat5.5/webapps/ROOT/">
Order allow,deny
Allow from all
</Directory>
ServerName www.mysite.com
ServerAdmin webmaster at mysite.com
DocumentRoot "/var/lib/tomcat5.5/webapps/ROOT/"
LogLevel debug
CustomLog /var/log/apache2/www.mysite.com.log combined
ErrorLog /var/log/apache2/www.mysite.com.err
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "\/opencms\/*" redirect
CustomLog /var/log/apache2/localhost-access.log common env=!redirect
#RewriteEngine on
#RewriteCond %{REQUEST_URI}
^/export/(.*) [NC]
#RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
#RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html" !-f
#RewriteRule .*
http://localhost:8180/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}
[P]
##RewriteRule .*
http://localhost:8180/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]
ErrorDocument 404 /system/shared/handle404.html
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
#ProxyPreserveHost On
RedirectPermanent /opencms/ http://www.mysite.com/
ProxyPass /opencms/ !
ProxyPass /resources/ !
ProxyPass /export/ !
ProxyPass / http://localhost:8180/opencms/
ProxyPassReverse / http://localhost:8180/opencms/
</VirtualHost>
My OpenCms config:
<sites>
<workplace-server>http://www.mysite.com</workplace-server>
<default-uri>/unknown</default-uri>
<site server="http://www.mysite.com" uri="/sites/mysite.com" />
</sites>
My apache and tomcat are on the same machine, in a DMZ. My host www.mysite.com
resolves to it's *public* address through the /etc/hosts.
I can access the site through apache, the proxying seems to work. I did not
yet test the export-on-demand, since I made a static one-time export.
The only thing that does not work is the workspace, See my post here:
http://lists.opencms.org/pipermail/opencms-dev/2008q1/029269.html
tail -f /var/log/apache2/localhost-access.log gives the following:
192.168.0.1 - - [03/Mar/2008:14:26:18 +0100] "POST /system/login/index.html
HTTP/1.1" 200 4164
192.168.0.1 - - [03/Mar/2008:14:26:19
+0100] "GET /system/workplace/views/workplace.jsp HTTP/1.1" 302 -
192.168.0.1 - - [03/Mar/2008:14:26:19
+0100] "GET /system/login/index.html?__loginform=true&requestedResource=%2Fsystem%2Fworkplace%2Fviews%2Fworkplace.jsp
HTTP/1.1" 200 4304
My problem seems to be located between the 2nd and 3rd line.
Anyone has an idea, I start to get desperate :-(
Regards,
Yves
> What is in opencms-importexport.xml? This should be there:
>
> <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
> <vfs-prefix>${CONTEXT_NAME}</vfs-prefix>
>
>
> NameVirtualHost *:80
>
> <VirtualHost *:80>
> ServerName cms.mysite.de
> DocumentRoot "G:/Programme/Apache_Group/Tomcat 5.5/webapps/ROOT/"
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> </Directory>
>
>
> # Possible values include: debug, info, notice, warn, error,
> # crit,
> # alert, emerg.
> LogLevel warn
>
> ServerSignature Off
>
>
> SetEnvIf Request_URI "\/opencms\/*" redirect
>
> # Redirect all request to non-existing file in the export directory
> # to OpenCms which will generate the files "on the fly"
> RewriteEngine on
>
> # Redirection for static export
> RewriteCond %{REQUEST_URI} ^/export/(.*) [NC]
> RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
> RewriteCond "%{DOCUMENT_ROOT}%{REQUEST_FILENAME}/index_export.html"
> !-f RewriteRule .*
> http://127.0.0.1:8081/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_ST
>RING} [P]
>
> # Redirect all 404 errors to OpenCms
> # ErrorDocument 404 /system/shared/handle404.html
>
> # Basic proxy rules
> ProxyPreserveHost On
> RedirectPermanent /opencms/ http://cms.mysite.de/
> ProxyPass /opencms/ !
>
> ProxyPass /resources/ !
> ProxyPass /export/ !
> ProxyPass /skins/ !
> ProxyPass /syscp/ !
>
> ProxyPass / http://127.0.0.1:8081/opencms/
> ProxyPassReverse / http://127.0.0.1:8081/opencms/
> </VirtualHost>
>
>
> #=======
>
>
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
More information about the opencms-dev
mailing list