[opencms-dev] strange - login box comes up again (out of office)

Erik Lyons ELyons at cityofsalem.net
Fri Dec 23 10:23:45 CET 2005


I am out of the office until Tuesday, December 27. If you have an
emergency, please contact the IT Help Desk at x6367. 


>>> opencms-dev 12/23/05 01:22 >>>

I installed OpenCms 6.0.3 as ROOT app.
The server disguises as three servers:

cms.mydomain.de (the workplace server)
test.mydomain.de (the www test server)
test.mydomain.com (the www test server - to test the english content)


When I login into the workplace server

cms.mydomain.de 

everything is fine.

If I use

localhost

instead, things are messed with the following symptom:
Whenever I click on something, e.g. 'demopages',
an extra login box appears in the right hand side frame

This is from my server.xml:

 <Connector port="8080" maxHttpHeaderSize="8192"
             proxyName="cms.mydomain.de" ...
 <Connector port="8081" maxHttpHeaderSize="8192"
            proxyName="test.mydomain.de" ...

httpd.conf:

<VirtualHost *:80>
	ServerName cms.mydomain.de
# I tried with and without the following line
#        ServerAlias localhost  
     
	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:8080/opencms/handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING}
[P]

    # Redirect all 404 errors to OpenCms
    # ErrorDocument     404               /system/shared/handle404.html

    # Basic proxy rules
    ProxyPreserveHost                     On
    RedirectPermanent /opencms/           http://cms.mydomain.de/
    ProxyPass         /opencms/           !

    ProxyPass         /resources/         !
    ProxyPass         /export/            !
    ProxyPass         /skins/             !
    ProxyPass	      /syscp/			  !
  
    ProxyPass         /                   http://127.0.0.1:8080/opencms/
    ProxyPassReverse  /                   http://127.0.0.1:8080/opencms/
</VirtualHost>


#=======
<VirtualHost *:80>
	ServerName test.mydomain.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_STRING}
[P]

    # Redirect all 404 errors to OpenCms
    # ErrorDocument     404               /system/shared/handle404.html

    # Basic proxy rules
    ProxyPreserveHost                     On
    RedirectPermanent /opencms/           http://test.mydomain.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>
<VirtualHost *:80>
	ServerName test.mydomain.com
	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_STRING}
[P]

    # Redirect all 404 errors to OpenCms
    # ErrorDocument     404               /system/shared/handle404.html

    # Basic proxy rules
    ProxyPreserveHost                     On
    RedirectPermanent /opencms/           http://test.mydomain.com/
    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>


opencms-system.xml:

                <sites>
                   
<workplace-server>http://cms.mydomain.de</workplace-server>
                    <default-uri>/sites/mydomain/</default-uri>
                    <site server="http://cms.mydomain.de"
uri="/sites/default/"
/>
                    <site server="http://test.mydomain.com"
uri="/sites/mydomain/"
>
                    <alias server="http://test.mydomain.de" />
                    </site>
                </sites>


Any ideas?


--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de


_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list