Menu

Proxy on port 80

Uncle Buzz
2012-04-05
2012-11-26
  • Uncle Buzz

    Uncle Buzz - 2012-04-05

    Hi !

    Could we use any proxy to use port 80 instead of port 8080 ? Can we use the module proxy from apache2 by example ?
    Could we use proxy to affect url like project.mydomain.tld to project.mydomain.tld:8080/libreplan ?

    Thanks

     
  • Manuel Rego Casasnovas

    Hi,

    yes you can use a proxy to use port 80.

    For example we have configured nginx in the demo as you can see in the URL:
    http://demo.libreplan.org/libreplan/

    We have also used Apache other times with success.

    Bye,
       Rego

     
  • Nobody/Anonymous

    How do I nginx as https proxy? e.g. https://demo.libreplan.org/libreplan

     
  • Manuel Rego Casasnovas

    This is the configuration for demo.libreplan.org is in the file "/etc/nginx/sites-available/demo-libreplan" with the following content:

    server {
        listen   80; ## listen for ipv4
        server_name  demo.libreplan.org;
        access_log  /var/log/nginx/demo-libreplan.access.log;
        location / {
                    rewrite / /libreplan/ permanent;
        }
            location /libreplan {
                    proxy_pass        http://localhost:8080;
                    proxy_set_header  X-Real-IP  $remote_addr;
            proxy_set_header  Host $host;
            }
    }
    

    Bye,
       Rego

     
  • Nobody/Anonymous

    Hi !

    since I have a servername dedicated to Libreplan, how could I config the rewrite rule to remove libreplan/  from url with nginx ?

    Thanks.

     

Log in to post a comment.