Re: Redirect a whole site from port 80 to a servlet container

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux