aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Webserver - external connection - a solution  (Read 2291 times)

sentral

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Webserver - external connection - a solution
« on: June 17, 2004, 10:23:45 PM »

Hello folks !

Today, I've installed aMule for the first time on my SuSE 8.2 Professional...
First of all, I installed the wxBase package from your website, then aMule 1.2.6 - the stable version... And it crashed, so I read the forum and saw that the wxGTK was the problem. So I purged the wxGTK of the distribution from the system and installed your version. Then I wanted to use the webserver within 1.2.6 and after a while I switched to 2.0.0rc3  :P
I read your HOWTO / FAQ on the Webserver and it worked, but only at localhost. So I went back to the forum (the search function is very important  :D ) and read the problems with the external connections...

So - I should have to download the sources, the patch and do everything again ? No way ;)

What can you do to make external connections work without patching and being able to use the rpms ?
The solution can be found in the Apache module mod_proxy ;)

What do you have to do now ?

Edit your httpd.conf and:
- enable Proxy functionality !
- secure your Proxy (Allow directive)
- add the following lines to your favourite VirtualHost directive:
Code: [Select]
# Weiterleitung von /amule auf den internen Webserver von aMule !
ProxyPass /amule [URL]http://localhost:4711/[/URL]
# RewriteRule, um die Bilder korrekt durchzureichen ;)
RewriteEngine on
RewriteCond /srv/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.+\.(gif|jpg))$ /amulegfx/$1
- create a new directory at DOCUMENT_ROOT (e.g. amulegfx)
- copy the webserver files there

The Rewrite* directives assure that the aMule graphics will be found ! Due the
proxying, the graphics seem to be located at the document root directory of the
webserver ! You have to adjust the path using mod_rewrite !

If you don't know how to do the above steps, you should really really read the Apache docs in depth !

With this solutions I can use the aMule web-interface using my webserver with a SSL connection... I think it is a secure work-around that prevents patching and compiling :]

If someone else already posted this, I wasn't able to find it in this forum; so sorry
in advance if it was already there...

Comments and suggestions are welcome !

Greets,
Sentral
Logged