Plone with Apache Proxy

前端 未结 3 1178
-上瘾入骨i
-上瘾入骨i 2021-01-25 00:26

I have a plone zinstance set up through Apache Proxy on OS X Server 10.5. The server is set up with a single vhost on port 80, with Proxy & Proxypass directives to the Plon

3条回答
  •  孤独总比滥情好
    2021-01-25 00:57

    I'd recommend rolling your configuration into a virtual host block. You can deliver static content directly form apache by rewriting a specific path. Here's an example

    
      ServerName yoursite.com
      Alias /static /var/www/some/path/
    
      
        Options Includes FollowSymLinks
        AllowOverride All
      
    
      # Zope rewrite.
      RewriteEngine On
      RewriteRule /static - [L]
      RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/%{SERVER_NAME}:80/Plone/VirtualHostRoot/$1 [L,P]
    
    

提交回复
热议问题