[opencms-dev] After modifying opencms for ROOT and multisite, online project for second site does not show up!
Gaith Bader
gaithb at cse.unsw.edu.au
Wed Jul 19 07:45:51 CEST 2006
Hello everybody,
There is something that that has been driving me crazy and I hope
that someone can spot what I might be missing here!
Since I did the multisite and installing opencms in ROOT with
mod_proxy and using apache2 I have not been able to see the online
project, I can only see the offline project and the normal opencms
workplace, I did searches on the net, googled until google told me to
go away! read and re-read the setup and settings I have, but it still
does not work, I can't seem to be able to spot the problem.
I am hoping by posting the setup, a fresh pair of eyes might be able
to spot the problem, I would really appreciate anyone's help on this.
Hardware: G4 1GB ram,
### Setup software ############
OS X 10.4.6
Java 1.5.0_06
Apache 2.2.2 with mod_proxy
tomcat 5.5.17
postgres 8.1.3
opencms 6.2.1 setup as ROOT
###########################
both entries below are for the same ip going to the same test machine
that hosts all the above software
opencms.cse.unsw.edu.au
cisv.cse.unsw.edu.au
.
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------------------------------
### httpd.conf ################
NameVirtualHost *:80
<VirtualHost *:80>
<Directory "/usr/local/tomcat/webapps/ROOT/">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerName opencms.cse.unsw.edu.au
ServerAdmin opencms at cse.unsw.edu.auu
DocumentRoot "/usr/local/tomcat/webapps/ROOT/"
ErrorLog /logs/cisv_cse_unsw_edu_au-error.log
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "\/opencms\/*" redirect
CustomLog /logs/cisv_cse_unsw_edu_au-redirect.log common
env=redirect
CustomLog /logs/cisv_cse_unsw_edu_au-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://127.0.0.1:8080/opencms/
handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]
ProxyPass /opencms/ !
RedirectPermanent /opencms/ http://
opencms.cse.unsw.edu.au/
ProxyPass /resources/ !
ProxyPass /export/ !
ProxyPass / http://
127.0.0.1:8080/opencms/
ProxyPassReverse / http://
127.0.0.1:8080/opencms/
</VirtualHost>
<VirtualHost *:80>
<Directory "/usr/local/tomcat/webapps/ROOT/">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ServerName cisv.cse.unsw.edu.au
ServerAdmin opencms at cse.unsw.edu.au
DocumentRoot "/usr/local/tomcat/webapps/ROOT/"
ErrorLog /logs/cisv_cse_unsw_edu_au-error.log
# Log only non-redirect requests in "normal" log file
SetEnvIf Request_URI "\/opencms\/*" redirect
CustomLog /logs/cisv_cse_unsw_edu_au-redirect.log common
env=redirect
CustomLog /logs/cisv_cse_unsw_edu_au-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://127.0.0.1:8081/opencms/
handle404?exporturi=%{REQUEST_URI}&%{QUERY_STRING} [P]
ProxyPass /opencms/ !
RedirectPermanent /opencms/ http://
cisv.cse.unsw.edu.au/
ProxyPass /resources/ !
ProxyPass /export/ !
ProxyPass / http://
127.0.0.1:8081/opencms/
ProxyPassReverse / http://
127.0.0.1:8081/opencms/
</VirtualHost>
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------------------------------
### opencms-importexport.xml ##############################
<rendersettings>
<rfs-prefix>/export</rfs-prefix>
<vfs-prefix>${CONTEXT_NAME}</vfs-prefix>
<userelativelinks>false</userelativelinks>
<exporturl>http://127.0.0.1:8080/$
{CONTEXT_NAME}/handle404</exporturl>
<plainoptimization>true</plainoptimization>
<testresource uri="/system/shared/page.dtd"/>
<resourcestorender>
<regex>/sites/.*</regex>
<regex>/system/galleries/.*</regex>
<regex>/system/modules/.*/
resources/.*</regex>
</resourcestorender>
</rendersettings>
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------------------------------
### opencms-system.xml #################################
<sites>
<workplace-server>http://opencms.cse.unsw.edu.au</workplace-
server>
<default-uri>/sites/default/</default-uri>
<site server="opencms.cse.unsw.edu.au" uri="/sites/default/"/>
<site server="cisv.cse.unsw.edu.au" uri="/sites/cse/"/>
</sites>
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------------------------------
### server.xml #################################
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<Service name="Tomcat-Standalone">
<Connector port="8080"
maxThreads="200" minSpareThreads="8"
maxSpareThreads="50"
enableLookups="false" redirectPort="8443"
acceptCount="20"
proxyName="opencms.cse.unsw.edu.au" proxyPort="80"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
<Connector port="8081"
maxThreads="200" minSpareThreads="8"
maxSpareThreads="50"
enableLookups="false" redirectPort="8443"
acceptCount="20"
proxyName="cisv.cse.unsw.edu.au" proxyPort="80"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"
autoDeploy="true">
<!-- You can change "unpackWARs" and "autoDeploy" to false after the
installation is finished -->
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
</Host>
</Engine>
</Service>
</Server>
------------------------------------------------------------------------
------------------------------------------------------------------------
---------------------------------------------
when I go to page:
http://opencms.cse.unsw.edu.au/system/login/index.html
it works just fine, however, when I try to go to :
http://cisv.cse.unsw.edu.au/
it returns the following error:
----------------------------------------------------------------
A system error reading a resource occured!
Server error 404
Not Found
The requested resource "/opencms/" was not found on the server.
Probably you used an outdated link or an old bookmark.
If you followed a link on our site, please try it again in a few
minutes.
----------------------------------------------------------------
The interesting thing is that the title of that page would be
"Welcome to CSE" which is the title of the cse folder i.e (/sites/
cse/) so it seems to find the folder at least...
if I try to go directly to a page I know is there, like http://
cisv.cse.unsw.edu.au/index.html the same error shows.....
based on suggestions, I tried to change the virtual host's
DocumentRoot of cisv.cse.unsw.edu.au to something point to another
page and delete anything related to opencms to see if virtual hosting
works, and it did go to the other page just fine.
have any ideas?
Thank you for your help,
Gaith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060719/c6127e53/attachment.htm>
More information about the opencms-dev
mailing list