8000 proxy configuration in apache2 · Issue #25 · posativ/weave-minimal · GitHub
[go: up one dir, main page]

Skip to content

proxy configuration in apache2 #25

Open

Description

@ecolas

Hi !
And a happy new year !

Thank you for the work !

On my raspberrypi, with raspbianstable, the server is running and is OK.

I've got a problem with the proxy :
you propose to use
<Location /sync>
ProxyPass http://127.0.0.1:8080
RequestHeader set X-Forwarded-Proto "https"

so in apache2 I activated
sudo a2enmod proxy_http

and in /etc/apache2/sites-enabled/default I put :

<VirtualHost *:80>
ServerName localhost
ProxyVia On
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:8080/ keepalive=On
ProxyPassReverse / http://localhost:8080/

RequestHeader set X-Forwarded-HTTPS "0"

<Proxy *>
  Order deny,allow
  Allow from all
</Proxy>

Then I restart the services, but it's not working : I get invalide adress when I try to login in Firefox Sync.

Thank's.

Activity

  1. posativ commented on Jan 2, 2014

    @posativ
    Owner

    ServerName localhost

    Can you reach Apache from your device? Like telnet rpi.local 80?

  2. ecolas commented on Jan 2, 2014

    @ecolas
    Author
    Hello, 
      I made some changes according to your message : 
      an internet site localy available with a index.html page on the
      root, 
      available at http://rapsberrypi:80 when weave-minimal is stop
      And unavailable when it is start : http://raspberrypi:8080/
      Not Implemented
      <VirtualHost *:80>
          ServerName raspberrypi
          DocumentRoot /var/www/raspberrypi
          ProxyVia On
          ProxyRequests Off
          ProxyPreserveHost On
          ProxyPass / http://raspberrypi:8080/ keepalive=On
          ProxyPassReverse / http://raspberrypi:8080
      #    RequestHeader set X-Forwarded-HTTPS "0"
          <Proxy *>
            Order deny,allow
            Allow from all
          </Proxy>
      </VirtualHost>
      The URL is no more invalide, but i now have a problem with the
      captchca : no more image.
      Any idea ?
      EC.
    Le 02/01/2014 11:27, Martin Zimmermann
      a écrit :
    
    
        ServerName localhost
    
      Can you reach Apache from your device? Like telnet
          apache.local 80?
      —
        Reply to this email directly or view
          it on GitHub.
    
    -- 
    

    ~~
    Le fichier 0x9A447D4A.asc contient ma signature électronique.
    Empreinte : 8EDE E9B4 0DE4 1BE7 0E9B 450E 6A7B 3BE3 9A44 7D4A
    gpg --keyserver pgp.mit.edu --recv-keys 0x9A447D4A
    https://home.evab.org/dokuwiki/doku.php?id=signature_electronique

  3. posativ commented on Jan 2, 2014

    @posativ
    Owner

    And unavailable when it is start: http://raspberrypi:8080/
    Not Implemented

    If this means, you get a 501 Not Implemented "error", weave-minimal is working correctly.

    The URL is no more invalide, but i now have a problem with the captchca : no more image.

    There is no CAPTCHA validation in weave-minimal, only if you use the official sync servers (you should see a crack though).

  4. ecolas commented on Jan 2, 2014

    @ecolas
    Author
    I can't see the crack image : it's blind
      and it says "unknown error"
    Where can i read the apropriate log ?Le 02/01/2014 13:49, Martin Zimmermann
      a écrit :
    
    
        And unavailable when it is start: http://raspberrypi:8080/
          Not Implemented 
    
      If this means, you get a 501 Not Implemented "error",
        weave-minimal is working correctly.
    
        The URL is no more invalide, but i now have a problem with
          the captchca : no more image.
    
      There is no CAPTCHA validation in weave-minimal, only if you
        use the official sync servers (you should see
          a crack though.
      —
        Reply to this email directly or view
          it on GitHub.
    
    -- 
    

    ~~
    Le fichier 0x9A447D4A.asc contient ma signature électronique.
    Empreinte : 8EDE E9B4 0DE4 1BE7 0E9B 450E 6A7B 3BE3 9A44 7D4A
    gpg --keyserver pgp.mit.edu --recv-keys 0x9A447D4A
    https://home.evab.org/dokuwiki/doku.php?id=signature_electronique

  5. posativ commented on Jan 2, 2014

    @posativ
    Owner

    If there are any errors, you can find them in the terminal where you run weave-minimal. Also, Apache certainly logs errors to something like /var/log/apache/error.log (disclaimer: I never used Apache).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0