<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Deiverson,<br>
<br>
That worked.<br>
<br>
Thank you very much, appreciate your help.<br>
<br>
Regards<br>
Babak<br>
<br>
On 10/21/13 04:34, Deiverson Silveira wrote:<br>
</div>
<blockquote
cite="mid:CAF1gz3tn53iO5PMKQj4DQPEaWO+KF73X8hzTDqzV+Rxfx0FwDA@mail.gmail.com"
type="cite">
<div dir="ltr">ops... in <span
style="font-family:arial,sans-serif;font-size:13px">1-Edit and
remove comments this line </span><font face="arial,
sans-serif">Apache2.2\conf\httpd.conf,,, your apache 2.x</font></div>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">2013/10/21 Deiverson Silveira <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:deiverson@solutioncms.com" target="_blank">deiverson@solutioncms.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Babak,
<div><br>
</div>
<div>Try for remove with method ProxyPass:</div>
<div>
<div>1-Edit and remove comments this line:</div>
<div>
<div># Virtual hosts</div>
<div>Include conf/extra/httpd-vhosts.conf</div>
</div>
<div>and<br>
</div>
<div>LoadModule proxy_module modules/mod_proxy.so<br>
</div>
<div>
<div>LoadModule proxy_ajp_module
modules/mod_proxy_ajp.so</div>
<div>LoadModule proxy_balancer_module
modules/mod_proxy_balancer.so</div>
<div>
LoadModule proxy_connect_module
modules/mod_proxy_connect.so</div>
<div>LoadModule proxy_ftp_module
modules/mod_proxy_ftp.so</div>
<div>LoadModule proxy_http_module
modules/mod_proxy_http.so</div>
</div>
<div><br>
</div>
<div>
2- Edit file Apache\conf\extra\http-vhosts.conf and
add:</div>
<div><VirtualHost <a moz-do-not-send="true"
href="http://www.yoursite.com:80" target="_blank">www.yoursite.com:80</a>></div>
<div><span style="white-space:pre-wrap"> </span>ServerName
<a moz-do-not-send="true" href="http://yoursite.com"
target="_blank">yoursite.com</a></div>
<div> <Proxy *></div>
<div> Allow from all</div>
<div> </Proxy></div>
<div> </div>
<div><span style="white-space:pre-wrap"> </span>ProxyPass
/opencms/ <a moz-do-not-send="true"
href="http://www.yoursite.com:8080/opencms/"
target="_blank">http://www.yoursite.com:8080/opencms/</a></div>
<div><span style="white-space:pre-wrap"> </span>ProxyPassReverse
/opencms/ <a moz-do-not-send="true"
href="http://www.yoursite.com:8080/opencms/"
target="_blank">http://www.yoursite.com:8080/opencms/</a></div>
<div><span style="white-space:pre-wrap"> </span></div>
<div><span style="white-space:pre-wrap"> </span>ProxyPass
/ <a moz-do-not-send="true"
href="http://www.yoursite.com:8080/opencms/opencms/"
target="_blank">http://www.yoursite.com:8080/opencms/opencms/</a></div>
<div><span style="white-space:pre-wrap"> </span>ProxyPassReverse
/ <a moz-do-not-send="true"
href="http://www.yoursite.com:8080/opencms/opencms/"
target="_blank">http://www.yoursite.com:8080/opencms/opencms/</a></div>
</div>
<div></VirtualHost><br>
</div>
<div><br>
</div>
<div>3 - Edit file opencms-importexport.xml and remove
${CONTEXT_NAME}${SERVLET_NAME}:</div>
<div>
<p align="left"><vfs-prefix></vfs-prefix></p>
<p align="left">
4 - Restart your server app and apache</p>
<p align="left">Regards,</p>
<p align="left">Deiverson<br>
</p>
</div>
</div>
<div class="gmail_extra">
<div>
<div class="h5"><br>
<br>
<div class="gmail_quote">2013/10/20 BigAdmin <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:bigadmin@wjug.ca" target="_blank">bigadmin@wjug.ca</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi Deiverson,<br>
<br>
Thank you for response, but since Apache is
serving other websites as well as opencsm,<br>
can't change tomcat port to 80. <br>
<br>
I already tried changing opencms.war to
ROOT.war and that worked <br>
but not a good option if you are planning to
host other websites with different<br>
requirements.<br>
<br>
my question is , should we rewrite two
/opencms/ or one ?<br>
<br>
I have followed step by step as it is
instructed in wiki page, and website shows up
fine,<br>
without having /opencms/ , it is just the
admin page that is having problem. <br>
<br>
when I access admin page on on port 80, CSS is
not working and when I login , following error
shows up:<br>
<br>
Error reading resource from path
"/resources/commons/empty.html".<br>
Reason: Unable to read resource
"/resources/commons/empty.html". <br>
<br>
on port 8180, CSS working:<br>
<a moz-do-not-send="true"
href="http://wjug.ca:8180/opencms/opencms/system/login"
target="_blank">http://wjug.ca:8180/opencms/opencms/system/login</a><br>
but after entering credentials, it goes to
following address <br>
<a moz-do-not-send="true"
href="http://wjug.ca:8180/system/login/index.html"
target="_blank">http://wjug.ca:8180/system/login/index.html</a><br>
<br>
so rewrite is not applying by accessing to
login page, it is only applying after
credential is entered.<br>
<br>
<br>
<br>
Thanks<br>
Babak
<div>
<div><br>
<br>
<br>
On 10/20/13 18:25, Deiverson Silveira
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">hi, babak
<div><br>
</div>
<div>try this:
<div><a moz-do-not-send="true"
href="http://www.opencms-wiki.org/wiki/Removing_the_/opencms/opencms_prefix_without_using_Apache"
target="_blank">http://www.opencms-wiki.org/wiki/Removing_the_/opencms/opencms_prefix_without_using_Apache</a><br>
</div>
<div><br>
</div>
<div>good luck</div>
<div><br>
</div>
<div>PS: try remove with proxypass
with apache</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Deiverson</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<div>
<pre>_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a moz-do-not-send="true" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</div>
</blockquote>
<br>
</div>
<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>
<a moz-do-not-send="true"
href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"
target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<span class="HOEnZb"><font color="#888888">-- <br>
<i>
<div><span style="font-style:normal"><i>
<div><span style="font-style:normal"><i>
<div style="display:inline!important">
<span style="font-style:normal"><i><a
moz-do-not-send="true"
href="http://www.solutioncms.com"
target="_blank">www.solutioncms.com</a></i></span></div>
</i></span></div>
<div><span style="font-style:normal"><i><span
style="font-style:normal"><i>
<div><span style="font-style:normal"><i>
<div
style="display:inline!important"><span
style="font-style:normal"><i><span
style="font-style:normal"><i>
<div
style="display:inline!important">
<i>The Brazilian </i><span
style="font-style:normal"><i>
<div
style="display:inline!important"><span
style="font-style:normal"><i><span style="font-style:normal"><i>
<div
style="display:inline!important"><i>Official
Provider
OpenCms</i></div>
</i></span></i></span></div>
</i></span></div>
</i></span></i></span></div>
</i></span></div>
</i></span></i></span></div>
</i></span></div>
</i>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<i>
<div><span style="font-style:normal"><i>
<div><span style="font-style:normal"><i>
<div style="display:inline!important"><span
style="font-style:normal"><i><a
moz-do-not-send="true"
href="http://www.solutioncms.com"
target="_blank">www.solutioncms.com</a></i></span></div>
</i></span></div>
<div><span style="font-style:normal"><i><span
style="font-style:normal"><i>
<div><span style="font-style:normal"><i>
<div style="display:inline!important"><span
style="font-style:normal"><i><span
style="font-style:normal"><i>
<div
style="display:inline!important">
<i>The Brazilian </i><span
style="font-style:normal"><i>
<div
style="display:inline!important"><span
style="font-style:normal"><i><span style="font-style:normal"><i>
<div
style="display:inline!important"><i>Official
Provider
OpenCms</i></div>
</i></span></i></span></div>
</i></span></div>
</i></span></i></span></div>
</i></span></div>
</i></span></i></span></div>
</i></span></div>
</i>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>