Proposal: URL addresses to replace ports

Re: Proposal: URL addresses to replace ports

Postby Jocko » Sun Jun 23, 2013 9:46 pm

Hi favroom,

Yes I made some tests but this is not always a suitable solution. If the server web-interface uses absolute path, proxy trick won't work...

For example, I succeed with transmission client but not with mediatomb.

The conf file used by the apache server is in the folder \etc. So it is this file that you must change.

Be careful, if you changed in the past the memory level in the setup menu, this file is overwritten when the NAS is booting. You must make your change in the file httpd.x according the memory level.

I advice you to add these line in these files :
Code: Select all
#Proxy Pass configurations
Include /etc/proxy.conf
and to write your custom configuration in the file proxy.conf.

For example to redirect transmissionclient, you must add these lines
Code: Select all
LoadModule proxy_module /usr/modules/mod_proxy.so
LoadModule proxy_http_module /usr/modules/mod_proxy_http.so


Redirect /transmissioncli /transmission/web/
<Location /transmission/ >
    Options +Indexes +FollowSymLinks
    ProxyPass http://localhost:9091/transmission/
    ProxyPassReverse http://localhost:9091/transmission/
    DirectoryIndex index.html
</Location>
and the url to get access will be http://yournasname/transmissioncli
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Proposal: URL addresses to replace ports

Postby favroom » Wed Jun 26, 2013 6:50 pm

Jocko wrote:Hi favroom,

Yes I made some tests but this is not always a suitable solution. If the server web-interface uses absolute path, proxy trick won't work...

For example, I succeed with transmission client but not with mediatomb.


I am not using mediatomb, so I am very happy with this sollution!
favroom
 
Posts: 71
Joined: Thu Dec 13, 2012 7:09 am
Location: Netherlands

Re: Proposal: URL addresses to replace ports

Postby favroom » Tue Oct 15, 2013 7:40 pm

Jocko wrote:I advice you to add these line in these files :
Code: Select all
#Proxy Pass configurations
Include /etc/proxy.conf
and to write your custom configuration in the file proxy.conf.


I have add this line to all httpd.x files. So i know that the proxy.conf is loaded on every webserver memory selection I've chosen.
favroom
 
Posts: 71
Joined: Thu Dec 13, 2012 7:09 am
Location: Netherlands

Previous

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 4 guests