httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Georges <li...@fgeorges.org>
Subject Re: [users@httpd] Redirect a whole site from port 80 to a servlet container
Date Wed, 25 Mar 2009 13:55:58 GMT

Richard Peacock wrote:

> The lines you put in you conf file would be something like:

> ProxyRequests Off
> ProxyPass /app1/ http://the.target.server:port/

  It seems I misunderstood something...  I created a new site
file for the new domain name, say www.new.com, and used a2ensite
successfully.  The file contains the following:

    NameVirtualHost www.new.com:80

    <VirtualHost www.new.com:80>
        ProxyRequests Off
        ProxyPass / http://localhost:1234/container/app/
    </VirtualHost>

  I used a2enmod successfully for both proxy and proxy_http,
stopped and started again Apache.  When I try to access either
website (with the new or the original domain name,) I get a "403
Forbidden" error:

    Forbidden
    You don't have permission to access / on this server.

  If I a2dissite, stop then start, I can access the original site
again.  But I cannot figure how to configure the new site.  I
don't have any clue.  Any thought?

  Thanks for your help.  Regards,

-- 
Florent Georges
http://www.fgeorges.org/






















      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message