aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amulweb modproxy & prefix  (Read 3637 times)

egopfe

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
amulweb modproxy & prefix
« on: May 08, 2006, 09:56:16 AM »

Hi all,

I'm trying to publish amuleweb trought apache mod_proxy to ssl enable it.
The only problem is that every single page is reached using the root of the webserver.

is possible in any way to change the root of the amule web server to search the pages in... for example /amule ?

I suggest to include in the configure script a --amuleweb-prefix directive.

a possible workaround/solution is to use apache mod_rewrite, anyone tried this ?
Logged

egopfe

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
amulweb modproxy & prefix _SOLUTION_
« Reply #1 on: May 08, 2006, 10:22:34 AM »

The simple solution follows for apache for enabling ssl and authentincation:

ProxyRequests Off
SSLProxyEngine On
RewriteEngine On

Order deny,allow
Allow from all


ProxyPass /amule/ http://local.ip.where.amuleweb.resides:4711/
ProxyPassReverse /amule/ http://local.ip.where.amuleweb.resides:4711/


       SSLRequireSSL
       Options Indexes MultiViews
       #AllowOverride AuthConfig
       AuthType Digest
       AuthName "amule"
       AuthUserFile /somewehere/.htdigestamule
       AuthDigestDomain /amule/ http://www.yoursite.org
       AuthDigestAlgorithm MD5
       Require valid-user
       Order allow,deny
       Allow from all
       RewriteRule   ^/$  /amule/ [R]


Please note that the important directive in the Location compound is the "RewriteRule" one.

don't blame me, I'm not an Apache expert! :-)
Logged