Re: Proxy to different port

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

 



On Mon, 2011-10-24 at 10:04 +0200, Igor Cicimov wrote:
> mod_proxy_html?
> 
> 
> On Oct 24, 2011 6:52 PM, "Josu Lazkano"
> <josu.lazkano@xxxxxxxxxxxxxxxxxx> wrote:
>         Hello list, I am trying to proxy a web interface on 81 port
>         (http://host:81) to a site on my Apache (http://host/SITE) on
>         same
>         server.
>         
>         This is the site configuration that I try:
>         
>              ProxyPass /site http://localhost:81
>              ProxyPassReverse /site http://localhost:81
>         
>              <Location /site>
>                      Order allow,deny
>                      Allow from all
>              </Location>
>         
>         I have problem with html links, this is the html code:
>         
>         <input type="button" value="Start"
>         onclick="parent.location='/'">
>         <input type="button" value="Link"
>         onclick="parent.location='/link'">
>         
>         If I go to http://host/site, the web looks well. But on the
>         "Start" link
>         it goes to http://host/ and on "Link" goes to
>         http://host/link, and I
>         need to go to http://host/site/ and http://host/site/link.
>         
>         Should I use and other module or directive?
>         
>         Thanks for your help, regards.
>         
>         --
>         Josu Lazkano
>         
>         
>         ---------------------------------------------------------------------
>         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
>         


Thanks Igor, this my aenables mods:

# ls -lh /etc/apache2/mods-enabled/
total 0
lrwxrwxrwx 1 root root 28 Dec  5  2010 alias.conf
-> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 Dec  5  2010 alias.load
-> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 Dec  5  2010 auth_basic.load
-> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Dec  5  2010 authn_file.load
-> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 Dec  5  2010 authz_default.load
-> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 Dec  5  2010 authz_groupfile.load
-> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 Dec  5  2010 authz_host.load
-> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Dec  5  2010 authz_user.load
-> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Dec  5  2010 autoindex.conf
-> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 Dec  5  2010 autoindex.load
-> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 26 Dec  5  2010 cgi.load
-> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 26 May 20 18:39 dav.load
-> ../mods-available/dav.load
lrwxrwxrwx 1 root root 30 May 20 18:39 dav_svn.conf
-> ../mods-available/dav_svn.conf
lrwxrwxrwx 1 root root 30 May 20 18:39 dav_svn.load
-> ../mods-available/dav_svn.load
lrwxrwxrwx 1 root root 30 Dec  5  2010 deflate.conf
-> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 Dec  5  2010 deflate.load
-> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 Dec  5  2010 dir.conf
-> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Dec  5  2010 dir.load
-> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Dec  5  2010 env.load
-> ../mods-available/env.load
lrwxrwxrwx 1 root root 27 Dec  5  2010 mime.conf
-> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 Dec  5  2010 mime.load
-> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 Dec  5  2010 negotiation.conf
-> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 Dec  5  2010 negotiation.load
-> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27 Dec  5  2010 php5.conf
-> ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 Dec  5  2010 php5.load
-> ../mods-available/php5.load
lrwxrwxrwx 1 root root 28 May  7 16:08 proxy.conf
-> ../mods-available/proxy.conf
lrwxrwxrwx 1 root root 33 May  7 16:04 proxy_html.conf
-> ../mods-available/proxy_html.conf
lrwxrwxrwx 1 root root 33 May  7 16:04 proxy_html.load
-> ../mods-available/proxy_html.load
lrwxrwxrwx 1 root root 33 May  7 16:08 proxy_http.load
-> ../mods-available/proxy_http.load
lrwxrwxrwx 1 root root 28 May  7 16:08 proxy.load
-> ../mods-available/proxy.load
lrwxrwxrwx 1 root root 33 Dec  5  2010 reqtimeout.conf
-> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 Dec  5  2010 reqtimeout.load
-> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 31 Dec  5  2010 setenvif.conf
-> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 Dec  5  2010 setenvif.load
-> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 26 May 20 18:34 ssl.conf
-> ../mods-available/ssl.conf
lrwxrwxrwx 1 root root 26 May 20 18:34 ssl.load
-> ../mods-available/ssl.load
lrwxrwxrwx 1 root root 29 Dec  5  2010 status.conf
-> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 Dec  5  2010 status.load
-> ../mods-available/status.load


The mod_proxy is enabled, it works well on first link, but not on
others. It looks that is a html code problem.

Thanks and best regards.


---------------------------------------------------------------------
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