[opencms-dev] mod_proxy configuration missing resources folder

John Edwards john.edwards at dna.co.uk
Fri Oct 1 11:49:38 CEST 2004


Hi,

I've been having fun and games configuring Apache through PLESK to proxy requests throught to OpenCMS. It's been a struggle - more to do with understanding PLESK than with OpenCMS but now I'm almost there.

I have one final problem.

The OpenCMS CMS application works, the online site works and the offline site works. But the resources folder can't be found by Tomcat so all images in OpenCMS are missing and so is the stylesheet.

The resources have been exported to the file system but requests for, for example http://the.site/resources/opencms.gif can't be resolved. 

Can anyone help with this?

Here's a copy of the virtual host from the httpd.conf file:

<VirtualHost 192.168.1.71:80>
	ServerName   opencms.domain.co.uk:80
	ServerAdmin  "john.edwards at dna.co.uk"
	DocumentRoot /home/httpd/vhosts/opencms.domain.co.uk/httpdocs
	CustomLog  /home/httpd/vhosts/opencms.domain.co.uk/statistics/logs/access_log combined
	ErrorLog   /home/httpd/vhosts/opencms.domain.co.uk/statistics/logs/error_log
<IfModule mod_userdir.c>
	UserDir /home/httpd/vhosts/opencms.domain.co.uk/web_users
</IfModule>
	Alias  /webstat /home/httpd/vhosts/opencms.domain.co.uk/statistics/webstat/
	Alias  /ftpstat /home/httpd/vhosts/opencms.domain.co.uk/statistics/ftpstat/
	<IfModule mod_ssl.c>
		SSLEngine off
	</IfModule>
	<Directory /home/httpd/vhosts/opencms.domain.co.uk/httpdocs>
	<IfModule sapi_apache2.c>
		AddType text/plain .php .php4 .php3 .phtml
		php_admin_flag engine off
	</IfModule>
		Options -Includes -ExecCGI
	</Directory>
	Alias "/error_docs" "/home/httpd/vhosts/opencms.domain.co.uk/error_docs"
	ErrorDocument 400 /error_docs/bad_request.html
	ErrorDocument 403 /error_docs/forbidden.html
	ErrorDocument 404 /error_docs/not_found.html
	ErrorDocument 500 /error_docs/internal_server_error.html

    # Log only non-redirect requests in "normal" log file
    SetEnvIf Request_URI "\/opencms\/*" redirect
    CustomLog logs/opencms-access.log common env=!redirect

    ProxyPass         /opencms/                 !
    RedirectPermanent /opencms/                 http://opencms.domain.co.uk/

    ProxyPass         /resources/               !
    ProxyPass         /export/                  !
       
    ProxyPass         /                         http://127.0.0.1:8082/opencms/
    ProxyPassReverse  /                         http://127.0.0.1:8082/opencms/

</VirtualHost>


Thanks in advance,

John





More information about the opencms-dev mailing list