<font size=2 face="sans-serif">Hi Paul,</font>
<br><font size=2 face="sans-serif">
Thanks Paul for
your help but i am getting this error after perform all your steps, when
i run site :</font>
<br>
<br><tt><font size=3>org.opencms.main.CmsInitException: Critical error
during OpenCms initialization: Unable to read the OpenCms XML configuration.<br>
org.opencms.main.OpenCmsCore.getInstance(OpenCmsCore.java:323)<br>
org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:123)<br>
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)<br>
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</font></tt>
<br>
<br><font size=2 face="sans-serif">With Regards</font>
<br><font size=2 face="sans-serif">Manoj Kumar Sharma</font>
<br>
<p>
<br>
<br>
<table width=100%>
<tr>
<td>
<td width=100%>
<table width=100%>
<tr valign=top>
<td width=100%><font size=2 face="sans-serif"><b>opencms-dev Digest, Vol
158, Issue 2</b></font></table>
<br>
<table width=100%>
<tr>
<td><font size=2 color=#e26200 face="sans-serif"><b>opencms-dev-request
</b></font>
<td><font size=2 color=#8f8f8f face="sans-serif">to:</font>
<td><font size=2 face="sans-serif">opencms-dev</font>
<td>
<div align=right><font size=1 face="sans-serif">11/05/2014 04:32 PM</font></div></table>
<br>
<table width=100%>
<tr>
<td>
<table width=100%>
<tr>
<td><font size=2 color=#8f8f8f face="sans-serif">Sent by:</font>
<td width=100%><font size=2 color=#e26200 face="sans-serif"><b>opencms-dev-bounces@opencms.org</b></font></table>
<br><font size=1 face="sans-serif"><b>Please respond to opencms-dev</b></font>
<td>
<div align=right></div></table>
<br></table>
<br>
<br>
<hr>
<br>
<br>
<br><tt><font size=2>Send opencms-dev mailing list submissions to<br>
opencms-dev@opencms.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
</font></tt><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"><tt><font size=2>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</font></tt></a><tt><font size=2><br>
or, via email, send a message with subject or body 'help' to<br>
opencms-dev-request@opencms.org<br>
<br>
You can reach the person managing the list at<br>
opencms-dev-owner@opencms.org<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of opencms-dev digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Configuring OPENCMS on apache front server and tomact
as<br>
backend. (Paul-Inge Flakstad)<br>
2. Re: Mapping multiple nested elements to a propertyList<br>
(Paul-Inge Flakstad)<br>
3. Configuring OPENCMS on apache front server and tomact
as<br>
backend. (Manoj.Sharma@nevagroup.com)<br>
4. No opencms.log file in version 9.5? (Tom Wolf)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 4 Nov 2014 12:41:43 +0100<br>
From: Paul-Inge Flakstad <flakstad@npolar.no><br>
To: The OpenCms mailing list <opencms-dev@opencms.org><br>
Subject: Re: [opencms-dev] Configuring OPENCMS on apache front server<br>
and tomact
as backend.<br>
Message-ID:<br>
<4D405B4872E4E54A95966E6CF909E7F34C0D52DFA3@ANTON.nett.npolar><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi,<br>
<br>
For what it's worth, here is the setup routine I use - works every time.
(Other routines are described on the OpenCms Wiki and elsewhere, and may
be better. However, they also tend to be more complex.)<br>
<br>
Note: The how-to assumes a Linux box with the OpenCms webapp home at {TOMCAT_HOME}/webapps/opencms/.<br>
<br>
Step 1. Configure OpenCms<br>
<br>
Add your site to the OpenCms configuration file opencms-system.xml:<br>
<br>
<sites><br>
<workplace-server></font></tt><a href=http://www.mysite.org/><tt><font size=2>http://www.mysite.org</font></tt></a><tt><font size=2></workplace-server><br>
<default-uri>/sites/default/</default-uri><br>
<shared-folder>/shared/</shared-folder><br>
<site server="</font></tt><a href=http://www.mysite.org/><tt><font size=2>http://www.mysite.org</font></tt></a><tt><font size=2>"
uri="/sites/default/"/><br>
</sites><br>
<br>
Note: Configuring a dedicated domain name (e.g. cms.mysite.org) for the
workplace is recommended, but not done here.<br>
<br>
Open the OpenCms configuration file opencms-importexport.xml and find the
staticexport->rendersettings node.<br>
<br>
Inside the rendersettings node, change this line:<br>
<br>
<vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix><br>
<br>
to this:<br>
<br>
<vfs-prefix></vfs-prefix><br>
<br>
Save the file.<br>
<br>
Step 2. Configure Tomcat<br>
<br>
We need to define a connector in Tomcat's configuration. Open the Tomcat
configuration file server.xml, and make sure the following connector is
defined:<br>
<br>
<Connector port="8009" emptySessionPath="true" enableLookups="false"
protocol="AJP/1.3" /><br>
<br>
Save the file and restart Tomcat.<br>
<br>
Step 3. Configure Apache<br>
<br>
Open Apache's main configuration file, httpd.conf:<br>
<br>
Apache must load the required modules, so first check and add/uncomment
these directives, if necessary:<br>
<br>
LoadModule rewrite_module modules/mod_rewrite.so<br>
LoadModule proxy_module modules/mod_proxy.so<br>
<br>
With those in place, all that remains is defining a virtual host. It is
typically added at or near the bottom (modify all paths to fit your actual
system):<br>
<br>
<VirtualHost *:80><br>
DocumentRoot "/usr/local/apache-tomcat-5.5.27/webapps/opencms/"<br>
ServerName </font></tt><a href=www.mysite.org><tt><font size=2>www.mysite.org</font></tt></a><tt><font size=2><</font></tt><a href=http://www.mysite.org/><tt><font size=2>http://www.mysite.org</font></tt></a><tt><font size=2>><br>
<br>
<Proxy ajp://localhost:8009*><br>
Allow from all<br>
</Proxy><br>
<br>
ProxyPass /opencms/ ajp://localhost:8009/opencms/<br>
ProxyPassReverse /opencms/ ajp://localhost:8009/opencms/<br>
<br>
ProxyPass /
ajp://localhost:8009/opencms/opencms/<br>
ProxyPassReverse / ajp://localhost:8009/opencms/opencms/<br>
</VirtualHost><br>
<br>
Save the file and restart Apache.<br>
<br>
That's it, you're done! You should now be able to access your site at </font></tt><a href=www.mysite.org><tt><font size=2>www.mysite.org</font></tt></a><tt><font size=2><</font></tt><a href=http://www.mysite.org/><tt><font size=2>http://www.mysite.org</font></tt></a><tt><font size=2>>
and the workplace login at </font></tt><a href=www.mysite.org/system/login><tt><font size=2>www.mysite.org/system/login</font></tt></a><tt><font size=2><</font></tt><a href=http://www.mysite.org/system/login><tt><font size=2>http://www.mysite.org/system/login</font></tt></a><tt><font size=2>>.<br>
<br>
Cheers,<br>
Paul<br>
<br>
From: opencms-dev-bounces@opencms.org [</font></tt><a href="mailto:opencms-dev-bounces@opencms.org"><tt><font size=2>mailto:opencms-dev-bounces@opencms.org</font></tt></a><tt><font size=2>]
On Behalf Of Manoj.Sharma@nevagroup.com<br>
Sent: 3. november 2014 06:06<br>
To: opencms-dev@opencms.org<br>
Subject: [opencms-dev] Configuring OPENCMS on apache front server and tomact
as backend.<br>
<br>
Hi All,<br>
I have a website which in develop
in OponCms 9.x, i have configure that website on apache as front server
and tomcat as backend. the website working perfectly but the issue is when
i perform redirect operation on site like when user submit feedback and
then i redirect user to another thank you page or logout from site then
website URL will get modified as IP address and (:) colon removed from
the URL and website no longer available. I'll get the the message in browser
"The web page is not available." Example :<br>
<br>
I enter URL in google chrom as mywebsite.com and login into the website
as admin, then i logout from site then the url change to http// 123.11.23.23/system/login
not to mywebsite.com/system/login.<br>
<br>
i am not able to under stand why this is happing, it just a issue in redirect
whenever redirect operation perform then url will modify automatically.
I am sure there is something that i ahve missed in configuration, but question
i what ? i am putting my configuration that i have done on server
please look into and let me know the issue.<br>
<br>
opencms-system.xml<br>
<br>
<sites><br>
<workplace-server></font></tt><a href=http://www.mywebsite.in/><tt><font size=2>http://www.mywebsite.in</font></tt></a><tt><font size=2><</font></tt><a href=http://www.mywebsite.in/><tt><font size=2>http://www.mywebsite.in/</font></tt></a><tt><font size=2>></workplace-server><br>
<default-uri>/sites/default/</default-uri><br>
<shared-folder>/shared/</shared-folder><br>
<site server="</font></tt><a href=http://www.mywebsite.in/><tt><font size=2>http://www.mywebsite.in</font></tt></a><tt><font size=2><</font></tt><a href=http://www.mywebsite.in/><tt><font size=2>http://www.mywebsite.in/</font></tt></a><tt><font size=2>>"
uri="/sites/default/" title="" position="3.4028235E38"
webserver="true"/><br>
</sites><br>
<br>
opencms-importexport.xml<br>
<rendersettings><br>
<rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix><br>
<vfs-prefix>${CONTEXT_NAME}</vfs-prefix><br>
<userelativelinks>false</userelativelinks><br>
<exporturl></font></tt><a href=http://127.0.0.1:8080$/><tt><font size=2>http://127.0.0.1:8080$</font></tt></a><tt><font size=2><</font></tt><a href=http://127.0.0.1:8080$/><tt><font size=2>http://127.0.0.1:8080$/</font></tt></a><tt><font size=2>>{CONTEXT_NAME}/handle404</exporturl><br>
<plainoptimization>true</plainoptimization><br>
<testresource uri="/system/shared/page.dtd" /><br>
<resourcestorender><br>
<regex>/sites/.*</regex><br>
<regex>/system/workplace/commons/style/.*</regex><br>
<regex>/system/galleries/.*</regex><br>
<regex>/system/modules/.*/resources/.*</regex><br>
</resourcestorender><br>
</rendersettings><br>
server.xml<br>
<?xml version="1.0" encoding="utf-8"?><br>
<Server port="8005" shutdown="SHUTDOWN" debug="0"><br>
<Service name="Tomcat-Standalone"><br>
<!-- Define a connector for the "public visible"
server name --><br>
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8080" minProcessors="5" maxProcessors="75"
proxyName="</font></tt><a href=http://123.114.23.42/><tt><font size=2>http://123.114.23.42</font></tt></a><tt><font size=2><</font></tt><a href=http://123.114.23.42/><tt><font size=2>http://123.114.23.42/</font></tt></a><tt><font size=2>>"
proxyPort="80" useBodyEncodingForURI="true" enableLookups="true"
redirectPort="8443" acceptCount="100" debug="0"
connectionTimeout="20000" useURIValidationHack="false"
disableUploadTimeout="true"/><br>
<Engine name="Standalone" defaultHost="localhost"
debug="0"><br>
<Host name="localhost" debug="0"
appBase="webapps" unpackWARs="true" autoDeploy="true"><br>
<!-- You can change "unpackWARs"
and "autoDeploy" to false after the installation is finished
--><br>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/><br>
</Host><br>
</Engine><br>
</Service><br>
<Service debug="0" name="PSA"><br>
<Connector port="9008" enableLookups="true"
protocol="AJP/1.3"/><br>
<Connector port="9080" maxThreads="15"
minSpareThreads="5" maxSpareThreads="75" enableLookups="true"
acceptCount="10" connectionTimeout="20000" disableUploadTimeout="true"/><br>
<Engine name="PSA" defaultHost="localhost"/><br>
</Service><br>
</Server><br>
<br>
<br>
httpd.conf<br>
<br>
#<br>
# Dynamic Shared Object (DSO) Support<br>
#<br>
# To be able to use the functionality of a module which was built as a
DSO you<br>
# have to place corresponding `LoadModule' lines at this location so the<br>
# directives contained in it are actually available _before_ they are used.<br>
# Statically compiled modules (those listed by `httpd -l') do not need<br>
# to be loaded here.<br>
#<br>
# Example:<br>
# LoadModule foo_module modules/mod_foo.so<br>
#<br>
<br>
LoadModule auth_basic_module modules/mod_auth_basic.so<br>
LoadModule auth_digest_module modules/mod_auth_digest.so<br>
LoadModule authn_file_module modules/mod_authn_file.so<br>
LoadModule authn_alias_module modules/mod_authn_alias.so<br>
LoadModule authn_anon_module modules/mod_authn_anon.so<br>
LoadModule authn_dbm_module modules/mod_authn_dbm.so<br>
LoadModule authn_default_module modules/mod_authn_default.so<br>
LoadModule authz_host_module modules/mod_authz_host.so<br>
LoadModule authz_user_module modules/mod_authz_user.so<br>
LoadModule authz_owner_module modules/mod_authz_owner.so<br>
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so<br>
LoadModule authz_dbm_module modules/mod_authz_dbm.so<br>
LoadModule authz_default_module modules/mod_authz_default.so<br>
LoadModule ldap_module modules/mod_ldap.so<br>
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so<br>
LoadModule include_module modules/mod_include.so<br>
LoadModule log_config_module modules/mod_log_config.so<br>
LoadModule logio_module modules/mod_logio.so<br>
LoadModule env_module modules/mod_env.so<br>
LoadModule ext_filter_module modules/mod_ext_filter.so<br>
LoadModule mime_magic_module modules/mod_mime_magic.so<br>
LoadModule expires_module modules/mod_expires.so<br>
LoadModule deflate_module modules/mod_deflate.so<br>
LoadModule headers_module modules/mod_headers.so<br>
LoadModule usertrack_module modules/mod_usertrack.so<br>
LoadModule setenvif_module modules/mod_setenvif.so<br>
LoadModule mime_module modules/mod_mime.so<br>
LoadModule dav_module modules/mod_dav.so<br>
LoadModule status_module modules/mod_status.so<br>
LoadModule autoindex_module modules/mod_autoindex.so<br>
LoadModule info_module modules/mod_info.so<br>
LoadModule dav_fs_module modules/mod_dav_fs.so<br>
LoadModule vhost_alias_module modules/mod_vhost_alias.so<br>
LoadModule negotiation_module modules/mod_negotiation.so<br>
LoadModule dir_module modules/mod_dir.so<br>
LoadModule actions_module modules/mod_actions.so<br>
LoadModule speling_module modules/mod_speling.so<br>
LoadModule userdir_module modules/mod_userdir.so<br>
LoadModule alias_module modules/mod_alias.so<br>
LoadModule substitute_module modules/mod_substitute.so<br>
LoadModule rewrite_module modules/mod_rewrite.so<br>
LoadModule proxy_module modules/mod_proxy.so<br>
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so<br>
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so<br>
LoadModule proxy_http_module modules/mod_proxy_http.so<br>
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so<br>
LoadModule proxy_connect_module modules/mod_proxy_connect.so<br>
LoadModule cache_module modules/mod_cache.so<br>
LoadModule suexec_module modules/mod_suexec.so<br>
LoadModule disk_cache_module modules/mod_disk_cache.so<br>
LoadModule cgi_module modules/mod_cgi.so<br>
LoadModule version_module modules/mod_version.so<br>
<br>
..... some more comments and configurations there then<br>
<br>
<VirtualHost *:80><br>
<Directory "${TOMCAT_HOME}/webapps/ROOT/"><br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
ServerName ${DOMAIN_NAME}<br>
ServerAdmin webmaster@alkacon.com<</font></tt><a href=mailto:webmaster@alkacon.com><tt><font size=2>mailto:webmaster@alkacon.com</font></tt></a><tt><font size=2>><br>
DocumentRoot "/usr/share/tomcat6/webapps/ROOT/"<br>
ErrorLog logs/error.log<br>
<br>
# Log only non-redirect requests in "normal" log
file<br>
SetEnvIf Request_URI "\/opencms\/*" redirect<br>
CustomLog logs/localhost-access.log common env=!redirect<br>
<br>
ProxyPass /opencms/ !<br>
RedirectPermanent /opencms/ </font></tt><a href=http://$/><tt><font size=2>http://$</font></tt></a><tt><font size=2><</font></tt><a href=http://$/><tt><font size=2>http://$/</font></tt></a><tt><font size=2>>{DOMAIN_NAME}/<br>
<br>
ProxyPass /resources/
!<br>
ProxyPass /export/
!<br>
<br>
ProxyPass /
</font></tt><a href=http://localhost:8080/opencms/><tt><font size=2>http://localhost:8080/opencms/</font></tt></a><tt><font size=2><br>
ProxyPassReverse /
</font></tt><a href=http://localhost:8080/opencms/><tt><font size=2>http://localhost:8080/opencms/</font></tt></a><tt><font size=2><br>
<br>
</VirtualHost><br>
<br>
<VirtualHost *:8080><br>
<Directory "${TOMCAT_HOME}/webapps/test/"><br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
ServerName ${DOMAIN_NAME}<br>
ServerAdmin webmaster@alkacon.com<</font></tt><a href=mailto:webmaster@alkacon.com><tt><font size=2>mailto:webmaster@alkacon.com</font></tt></a><tt><font size=2>><br>
DocumentRoot "${TOMCAT_HOME}/webapps/wewebsite/"<br>
ErrorLog logs/error.log<br>
<br>
# Log only non-redirect requests in "normal" log
file<br>
SetEnvIf Request_URI "\/wewebsite\/*" redirect<br>
CustomLog logs/localhost-access.log common env=!redirect<br>
<br>
ProxyPass /wewebsite/
!<br>
RedirectPermanent /wewebsite/
</font></tt><a href=http://$/><tt><font size=2>http://$</font></tt></a><tt><font size=2><</font></tt><a href=http://$/><tt><font size=2>http://$/</font></tt></a><tt><font size=2>>{DOMAIN_NAME}/<br>
<br>
<br>
#ProxyPass /
</font></tt><a href=http://localhost:8080/wewebsite/><tt><font size=2>http://localhost:8080/wewebsite/</font></tt></a><tt><font size=2><br>
#ProxyPassReverse /
</font></tt><a href=http://localhost:8080/wewebsite/><tt><font size=2>http://localhost:8080/wewebsite/</font></tt></a><tt><font size=2><br>
</VirtualHost><br>
<br>
<br>
i have fond these configuration from </font></tt><a href="http://www.opencms-wiki.org/wiki/Avoiding_/opencms/opencms_in_the_URL_(apache_%2B_mod_proxy)"><tt><font size=2>http://www.opencms-wiki.org/wiki/Avoiding_/opencms/opencms_in_the_URL_(apache_%2B_mod_proxy)</font></tt></a><tt><font size=2><br>
<br>
Please friends help me. and thanks paul for your last reply to my question.<br>
<br>
Manoj Kumar Sharma<br>
9718729491<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20141104/6c3ccbe9/attachment-0001.html"><tt><font size=2>http://lists.opencms.org/pipermail/opencms-dev/attachments/20141104/6c3ccbe9/attachment-0001.html</font></tt></a><tt><font size=2>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 4 Nov 2014 12:57:01 +0100<br>
From: Paul-Inge Flakstad <flakstad@npolar.no><br>
To: The OpenCms mailing list <opencms-dev@opencms.org><br>
Subject: Re: [opencms-dev] Mapping multiple nested elements to a<br>
propertyList<br>
Message-ID:<br>
<4D405B4872E4E54A95966E6CF909E7F34C0D52DFB0@ANTON.nett.npolar><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Diogo,<br>
<br>
I am not sure about this, but try removing the mapping in your inner XSD.<br>
<br>
Mapping to propertyList only make sense for repeating elements, and in
your inner XSD you are mapping a non-repeating element (it implicitly has
minOccurs="1" maxOccurs="1").<br>
<br>
Cheers,<br>
Paul<br>
<br>
From: opencms-dev-bounces@opencms.org [</font></tt><a href="mailto:opencms-dev-bounces@opencms.org"><tt><font size=2>mailto:opencms-dev-bounces@opencms.org</font></tt></a><tt><font size=2>]
On Behalf Of Diogo Rezende Brant<br>
Sent: 3. november 2014 11:12<br>
To: opencms-dev@opencms.org<br>
Subject: [opencms-dev] Mapping multiple nested elements to a propertyList<br>
<br>
Hi,<br>
<br>
I'm trying to map multiple dates from a nested elements using a propertyList.<br>
In my outer xsd i have:<br>
<xsd:element name="BlocoDia" type="OpenCmsBlocoDia"
minOccurs="1" maxOccurs="unbounded" /><br>
And mapping:<br>
<mapping element="BlocoDia/DataInicio" mapto="propertyList:collector.date"
/><br>
<br>
In my inner xsd:<br>
<xsd:element name="DataInicio" type="OpenCmsString"
/><br>
And mapping:<br>
<mapping element="DataInicio" mapto="propertyList:collector.date"
/><br>
<br>
The problem is only one element is mapped. How can I map every element?<br>
<br>
Thanks!<br>
<br>
<br>
<br>
Att,<br>
<br>
Diogo Rezende Brant<br>
Analista Desenvolvedor<br>
<br>
Squadra | Tecnologia inovando o seu neg?cio<br>
Belo Horizonte - Minas Gerais<br>
<br>
Geral: 55 (31) 2104.7800 - R 7847<br>
Cel: 55 (31) 9776-0366<br>
___________________________________________<br>
<br>
E-mail: diogo.brant@squadra.com.br<</font></tt><a href=mailto:diogo.brant@squadra.com.br><tt><font size=2>mailto:diogo.brant@squadra.com.br</font></tt></a><tt><font size=2>><br>
<br>
</font></tt><a href=www.squadra.com.br><tt><font size=2>www.squadra.com.br</font></tt></a><tt><font size=2><</font></tt><a href=http://emrede.squadra.com.br/><tt><font size=2>http://emrede.squadra.com.br/</font></tt></a><tt><font size=2>>
| Certificada - CMMI<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20141104/87343263/attachment-0001.html"><tt><font size=2>http://lists.opencms.org/pipermail/opencms-dev/attachments/20141104/87343263/attachment-0001.html</font></tt></a><tt><font size=2>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Tue, 4 Nov 2014 18:06:11 +0530<br>
From: Manoj.Sharma@nevagroup.com<br>
To: opencms-dev@opencms.org<br>
Subject: [opencms-dev] Configuring OPENCMS on apache front server and<br>
tomact
as backend.<br>
Message-ID:<br>
<OF1234EEEB.428CCF36-ON86257D85.00190EF3-65257D86.0044E15D@nevagroup.com><br>
<br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi All,<br>
I have a website which in develop
in OponCms 9.x, i have <br>
configure that website on apache as front server and tomcat as backend.
<br>
the website working perfectly but the issue is when i perform redirect
<br>
operation on site like when user submit feedback and then i redirect user
<br>
to another thank you page or logout from site then website URL will get
<br>
modified as IP address and (:) colon removed from the URL and website no
<br>
longer available. I'll get the the message in browser "The web page
is not <br>
available." Example : <br>
<br>
I enter URL in google chrom as mywebsite.com and login into the website
as <br>
admin, then i logout from site then the url change to http// <br>
123.11.23.23/system/login not to mywebsite.com/system/login.<br>
<br>
i am not able to under stand why this is happing, it just a issue in <br>
redirect whenever redirect operation perform then url will modify <br>
automatically. I am sure there is something that i ahve missed in <br>
configuration, but question i what ? i am putting my configuration
that i <br>
have done on server please look into and let me know the issue.<br>
<br>
opencms-system.xml<br>
<br>
<sites><br>
<workplace-server></font></tt><a href=http://www.mywebsite.in/><tt><font size=2>http://www.mywebsite.in</font></tt></a><tt><font size=2></workplace-server><br>
<default-uri>/sites/default/</default-uri><br>
<shared-folder>/shared/</shared-folder><br>
<site server="</font></tt><a href=http://www.mywebsite.in/><tt><font size=2>http://www.mywebsite.in</font></tt></a><tt><font size=2>"
uri="/sites/default/" <br>
title="" position="3.4028235E38" webserver="true"/><br>
</sites><br>
<br>
opencms-importexport.xml <br>
<rendersettings><br>
<rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix><br>
<vfs-prefix>${CONTEXT_NAME}</vfs-prefix><br>
<userelativelinks>false</userelativelinks><br>
<exporturl></font></tt><a href=http://127.0.0.1:8080$/><tt><font size=2>http://127.0.0.1:8080$</font></tt></a><tt><font size=2><br>
{CONTEXT_NAME}/handle404</exporturl><br>
<plainoptimization>true</plainoptimization><br>
<testresource uri="/system/shared/page.dtd" /><br>
<resourcestorender><br>
<regex>/sites/.*</regex><br>
<regex>/system/workplace/commons/style/.*</regex><br>
<regex>/system/galleries/.*</regex><br>
<regex>/system/modules/.*/resources/.*</regex><br>
</resourcestorender><br>
</rendersettings><br>
server.xml<br>
<?xml version="1.0" encoding="utf-8"?><br>
<Server port="8005" shutdown="SHUTDOWN" debug="0"><br>
<Service name="Tomcat-Standalone"><br>
<!-- Define a connector for the "public visible"
server name --><br>
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
<br>
port="8080" minProcessors="5" maxProcessors="75"
proxyName="<br>
</font></tt><a href=http://123.114.23.42/><tt><font size=2>http://123.114.23.42</font></tt></a><tt><font size=2>"
proxyPort="80" useBodyEncodingForURI="true" <br>
enableLookups="true" redirectPort="8443" acceptCount="100"
debug="0" <br>
connectionTimeout="20000" useURIValidationHack="false"
<br>
disableUploadTimeout="true"/><br>
<Engine name="Standalone" defaultHost="localhost"
debug="0"><br>
<Host name="localhost" debug="0"
appBase="webapps" unpackWARs="true" <br>
autoDeploy="true"><br>
<!-- You can change "unpackWARs"
and "autoDeploy" to false after
the installation is finished --><br>
<Logger className="org.apache.catalina.logger.FileLogger"
<br>
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/><br>
</Host><br>
</Engine><br>
</Service><br>
<Service debug="0" name="PSA"><br>
<Connector port="9008" enableLookups="true"
protocol="AJP/1.3"/><br>
<Connector port="9080" maxThreads="15"
minSpareThreads="5" <br>
maxSpareThreads="75" enableLookups="true" acceptCount="10"
<br>
connectionTimeout="20000" disableUploadTimeout="true"/><br>
<Engine name="PSA" defaultHost="localhost"/><br>
</Service><br>
</Server><br>
<br>
<br>
httpd.conf<br>
<br>
#<br>
# Dynamic Shared Object (DSO) Support<br>
#<br>
# To be able to use the functionality of a module which was built as a
DSO <br>
you<br>
# have to place corresponding `LoadModule' lines at this location so the<br>
# directives contained in it are actually available _before_ they are <br>
used.<br>
# Statically compiled modules (those listed by `httpd -l') do not need<br>
# to be loaded here.<br>
#<br>
# Example:<br>
# LoadModule foo_module modules/mod_foo.so<br>
#<br>
<br>
LoadModule auth_basic_module modules/mod_auth_basic.so<br>
LoadModule auth_digest_module modules/mod_auth_digest.so<br>
LoadModule authn_file_module modules/mod_authn_file.so<br>
LoadModule authn_alias_module modules/mod_authn_alias.so<br>
LoadModule authn_anon_module modules/mod_authn_anon.so<br>
LoadModule authn_dbm_module modules/mod_authn_dbm.so<br>
LoadModule authn_default_module modules/mod_authn_default.so<br>
LoadModule authz_host_module modules/mod_authz_host.so<br>
LoadModule authz_user_module modules/mod_authz_user.so<br>
LoadModule authz_owner_module modules/mod_authz_owner.so<br>
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so<br>
LoadModule authz_dbm_module modules/mod_authz_dbm.so<br>
LoadModule authz_default_module modules/mod_authz_default.so<br>
LoadModule ldap_module modules/mod_ldap.so<br>
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so<br>
LoadModule include_module modules/mod_include.so<br>
LoadModule log_config_module modules/mod_log_config.so<br>
LoadModule logio_module modules/mod_logio.so<br>
LoadModule env_module modules/mod_env.so<br>
LoadModule ext_filter_module modules/mod_ext_filter.so<br>
LoadModule mime_magic_module modules/mod_mime_magic.so<br>
LoadModule expires_module modules/mod_expires.so<br>
LoadModule deflate_module modules/mod_deflate.so<br>
LoadModule headers_module modules/mod_headers.so<br>
LoadModule usertrack_module modules/mod_usertrack.so<br>
LoadModule setenvif_module modules/mod_setenvif.so<br>
LoadModule mime_module modules/mod_mime.so<br>
LoadModule dav_module modules/mod_dav.so<br>
LoadModule status_module modules/mod_status.so<br>
LoadModule autoindex_module modules/mod_autoindex.so<br>
LoadModule info_module modules/mod_info.so<br>
LoadModule dav_fs_module modules/mod_dav_fs.so<br>
LoadModule vhost_alias_module modules/mod_vhost_alias.so<br>
LoadModule negotiation_module modules/mod_negotiation.so<br>
LoadModule dir_module modules/mod_dir.so<br>
LoadModule actions_module modules/mod_actions.so<br>
LoadModule speling_module modules/mod_speling.so<br>
LoadModule userdir_module modules/mod_userdir.so<br>
LoadModule alias_module modules/mod_alias.so<br>
LoadModule substitute_module modules/mod_substitute.so<br>
LoadModule rewrite_module modules/mod_rewrite.so<br>
LoadModule proxy_module modules/mod_proxy.so<br>
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so<br>
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so<br>
LoadModule proxy_http_module modules/mod_proxy_http.so<br>
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so<br>
LoadModule proxy_connect_module modules/mod_proxy_connect.so<br>
LoadModule cache_module modules/mod_cache.so<br>
LoadModule suexec_module modules/mod_suexec.so<br>
LoadModule disk_cache_module modules/mod_disk_cache.so<br>
LoadModule cgi_module modules/mod_cgi.so<br>
LoadModule version_module modules/mod_version.so<br>
<br>
..... some more comments and configurations there then <br>
<br>
<VirtualHost *:80><br>
<Directory "${TOMCAT_HOME}/webapps/ROOT/"><br>
Order allow,deny<br>
Allow from all<br>
</Directory> <br>
ServerName ${DOMAIN_NAME}<br>
ServerAdmin webmaster@alkacon.com<br>
DocumentRoot "/usr/share/tomcat6/webapps/ROOT/"<br>
ErrorLog logs/error.log<br>
<br>
# Log only non-redirect requests in "normal" log
file<br>
SetEnvIf Request_URI "\/opencms\/*" redirect<br>
CustomLog logs/localhost-access.log common env=!redirect<br>
<br>
ProxyPass /opencms/ !<br>
RedirectPermanent /opencms/ </font></tt><a href=http://$/><tt><font size=2>http://$</font></tt></a><tt><font size=2>{DOMAIN_NAME}/<br>
<br>
ProxyPass /resources/
!<br>
ProxyPass /export/
!<br>
<br>
ProxyPass /
<br>
</font></tt><a href=http://localhost:8080/opencms/><tt><font size=2>http://localhost:8080/opencms/</font></tt></a><tt><font size=2><br>
ProxyPassReverse /
<br>
</font></tt><a href=http://localhost:8080/opencms/><tt><font size=2>http://localhost:8080/opencms/</font></tt></a><tt><font size=2><br>
<br>
</VirtualHost><br>
<br>
<VirtualHost *:8080><br>
<Directory "${TOMCAT_HOME}/webapps/test/"><br>
Order allow,deny<br>
Allow from all<br>
</Directory> <br>
ServerName ${DOMAIN_NAME}<br>
ServerAdmin webmaster@alkacon.com<br>
DocumentRoot "${TOMCAT_HOME}/webapps/wewebsite/"<br>
ErrorLog logs/error.log<br>
<br>
# Log only non-redirect requests in "normal" log
file<br>
SetEnvIf Request_URI "\/wewebsite\/*" redirect<br>
CustomLog logs/localhost-access.log common env=!redirect<br>
<br>
ProxyPass /wewebsite/
!<br>
RedirectPermanent /wewebsite/
</font></tt><a href=http://$/><tt><font size=2>http://$</font></tt></a><tt><font size=2>{DOMAIN_NAME}/<br>
<br>
<br>
#ProxyPass /
<br>
</font></tt><a href=http://localhost:8080/wewebsite/><tt><font size=2>http://localhost:8080/wewebsite/</font></tt></a><tt><font size=2><br>
#ProxyPassReverse /
<br>
</font></tt><a href=http://localhost:8080/wewebsite/><tt><font size=2>http://localhost:8080/wewebsite/</font></tt></a><tt><font size=2><br>
</VirtualHost><br>
<br>
<br>
i have fond these configuration from <br>
</font></tt><a href="http://www.opencms-wiki.org/wiki/Avoiding_/opencms/opencms_in_the_URL_(apache_%2B_mod_proxy)"><tt><font size=2>http://www.opencms-wiki.org/wiki/Avoiding_/opencms/opencms_in_the_URL_(apache_%2B_mod_proxy)</font></tt></a><tt><font size=2><br>
<br>
Please friends help me. and thanks paul for your last reply to my <br>
question.<br>
<br>
Manoj Kumar Sharma<br>
9718729491<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20141104/027d8900/attachment-0001.html"><tt><font size=2>http://lists.opencms.org/pipermail/opencms-dev/attachments/20141104/027d8900/attachment-0001.html</font></tt></a><tt><font size=2>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 4 Nov 2014 13:24:24 +0000<br>
From: Tom Wolf <twb15@hotmail.com><br>
To: "opencms-dev@opencms.org" <opencms-dev@opencms.org><br>
Subject: [opencms-dev] No opencms.log file in version 9.5?<br>
Message-ID: <BLU171-W128DA4A4F53C978BBA131E9AA860@phx.gbl><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Is it just me?
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <</font></tt><a href="http://lists.opencms.org/pipermail/opencms-dev/attachments/20141104/5c77388f/attachment-0001.html"><tt><font size=2>http://lists.opencms.org/pipermail/opencms-dev/attachments/20141104/5c77388f/attachment-0001.html</font></tt></a><tt><font size=2>><br>
</font></tt>
<br><tt><font size=2>------------------------------<br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
</font></tt><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"><tt><font size=2>http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</font></tt></a><tt><font size=2><br>
<br>
End of opencms-dev Digest, Vol 158, Issue 2<br>
*******************************************<br>
</font></tt>
<br>