[opencms-dev] Remove /opencms/ from url

Deiverson Silveira deiverson at solutioncms.com
Mon Oct 21 11:34:57 CEST 2013


ops... in 1-Edit and remove comments this line Apache2.2\conf\httpd.conf,,,
your apache 2.x


2013/10/21 Deiverson Silveira <deiverson at solutioncms.com>

> Hi Babak,
>
> Try for remove with method ProxyPass:
> 1-Edit and remove comments this line:
> # Virtual hosts
> Include conf/extra/httpd-vhosts.conf
> and
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
> LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
> LoadModule proxy_connect_module modules/mod_proxy_connect.so
> LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
>
> 2- Edit file Apache\conf\extra\http-vhosts.conf and add:
> <VirtualHost www.yoursite.com:80>
> ServerName yoursite.com
>   <Proxy *>
>      Allow from all
>   </Proxy>
>
> ProxyPass            /opencms/   http://www.yoursite.com:8080/opencms/
>  ProxyPassReverse /opencms/   http://www.yoursite.com:8080/opencms/
>  ProxyPass            /
> http://www.yoursite.com:8080/opencms/opencms/
> ProxyPassReverse /   http://www.yoursite.com:8080/opencms/opencms/
> </VirtualHost>
>
> 3 - Edit file opencms-importexport.xml and remove
> ${CONTEXT_NAME}${SERVLET_NAME}:
>
> <vfs-prefix></vfs-prefix>
>
> 4 - Restart your server app and apache
>
> Regards,
>
> Deiverson
>
>
> 2013/10/20 BigAdmin <bigadmin at wjug.ca>
>
>>  Hi Deiverson,
>>
>> Thank you for response, but since Apache is serving other websites as
>> well as opencsm,
>> can't change tomcat port to 80.
>>
>> I already tried changing opencms.war to ROOT.war and that worked
>> but not a good option if you are planning to host other websites with
>> different
>> requirements.
>>
>> my question is , should we rewrite two /opencms/ or one ?
>>
>> I have followed step by step as it is instructed in wiki page, and
>> website shows up fine,
>> without having /opencms/ , it is just the admin page that is having
>> problem.
>>
>> when I access admin page on on port 80, CSS is not working and when I
>> login , following error shows up:
>>
>> Error reading resource from path "/resources/commons/empty.html".
>> Reason: Unable to read resource "/resources/commons/empty.html".
>>
>> on port 8180, CSS working:
>> http://wjug.ca:8180/opencms/opencms/system/login
>> but after entering credentials, it goes to following address
>> http://wjug.ca:8180/system/login/index.html
>>
>> so rewrite is not applying by accessing to login page, it is only
>> applying after credential is entered.
>>
>>
>>
>> Thanks
>> Babak
>>
>>
>>
>> On 10/20/13 18:25, Deiverson Silveira wrote:
>>
>> hi, babak
>>
>>  try this:
>>
>> http://www.opencms-wiki.org/wiki/Removing_the_/opencms/opencms_prefix_without_using_Apache
>>
>>  good luck
>>
>>  PS: try remove with proxypass with apache
>>
>>  Regards,
>>
>>  Deiverson
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visithttp://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>>
>> _______________________________________________
>> 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
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>>
>>
>
>
> --
> *
> www.solutioncms.com
>  The Brazilian
> Official Provider OpenCms
> *
>



-- 
*
www.solutioncms.com
The Brazilian
Official Provider OpenCms
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20131021/36fc9be1/attachment.htm>


More information about the opencms-dev mailing list