aMule Forum

English => en_Linux => Topic started by: egopfe on May 08, 2006, 09:56:16 AM

Title: amulweb modproxy & prefix
Post by: egopfe 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 ?
Title: amulweb modproxy & prefix _SOLUTION_
Post by: egopfe 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! :-)