mohammed ibrahim wrote:
> Hi
> I had a problem for serving html pages with apache that located in the
> documentroot /var/www/html. I followed in setting up plone with apache
> the "plone-with-apache-1.3"  and
> I got plone site when I type http://localhost/plone but apache is
> serving the htmls in the document root no moreI followed "Mixing Local
> Apache and Proxyed Content" tutorial but it still not working
>  
> I tried to add a new entry for the apache root, still not working, this
> is my virtualhost definition:
> <VirtualHost *>
>    ServerName localhost
>    ServerAlias localhost
>    DocumentRoot /var/www/html
>    ServerAdmin root:[EMAIL PROTECTED]
>    ProxyPass /
> http://localhost:8080/VirtualHostBase/https/localhost:443/MohPlone/VirtualHostRoot/
>    #ProxyPass /
> http://localhost:8080/VirtualHostBase/http/localhost:80/MohPlone/VirtualHostRo
> ot/
>    ProxyPassReverse /
> http://localhost:8080/VirtualHostBase/http/localhost:80/MohPlone/VirtualHostRoot/
>     </VirtualHost>
>  
> And this is the rewrite rule I used:
> RewriteEngine On
>  
> RewriteRule ^/localhost(.*)
> http://localhost:8080/VirtualHostBase/http/localhost:80/VirtualHostRoot/_vh_loocalhost$1
> [P,L]
>  
>   RewriteCond %{REQUEST_URI} !^/html(.*)
>   RewriteRule ^/(.*)
> http://localhost:8080/VirtualHostBase/http/localhost:80/MohPlone/VirtualHostRoot/$1
> [P,L]
>  
> And this is the new entry I added:
> <VirtualHost *:80>
>     ServerAdmin root:[EMAIL PROTECTED]
>     DocumentRoot /var/www/html
>     ProxyPass /MohPlone/
> http://localhost:8080/VirtualHostBase/https/localhost:443/MohPlone/#VirtualHostRoot/_vh_MohPlone/
>     ServerName 127.0.0.1
>     ErrorLog /var/www/html/log
> </VirtualHost>
>  
> Please please may any one know how I can solve this problem?         

You're mixing all sorts of things in one file and piling command upon
command: that won't work.

Basic advice when debugging something like this: start with a very basic
config (in this case one that only serves your original apache pages)
and work from there.

Some comments to help you on your way:

* Don't use both proxypass and rewriterules.

* If it is one hostname, it should be one virtualhost, not multiple.

* Just switch on the rewriterule, add the RewriteCond (which looks ok),
and add the RewriteRule.

* Oh, and enable apache's rewritelog for the time being: it'll show you
exactly what's going wrong (or right) :-)

Reinout

-- 
Reinout van Rees                       r.van.rees @ zestsoftware.nl
http://vanrees.org/weblog/                  http://zestsoftware.nl/
"Military engineers build missiles. Civil engineers build targets."


_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to