|
Post by Ka Hooli on Apr 27, 2007 14:40:45 GMT 7
Hay guys, I am no programmer (proven by failed attempts to code and create my own modules), but I think I have found an idea that I know I would find useful, if not others. My internet connections is this: [INTERNET]->[ADSL MODEM]- bridged mode->[ROUTER with Dynamic DNS client]->[CLIENT PC's and NAS] With the details from here, incomming http traffic can be redirected to other clients on the network. This would mean that I could setup a subdomain (eg torrent.mydomain.com) to be redirected to another pc on my lan running a torrent client running a http client interface (eg utorrent). I have done this on a Win2000 server running Apache before, but doing it on this NAS look abit complicated. I am willing to put in hard work, but as I stated before, I am no programmer. Regards, Ka Hooli
|
|
|
Post by dbridges on Apr 28, 2007 7:01:38 GMT 7
I'm sort of doing what you want to do.
You've only got mod_rewrite to work with.
The important thing to do is to leave the original web gui alone and add your configuration around it.
Best approach is to make sure that you've got stable SSH access and backup the original httpd.conf and ssl.conf which are in /app/etc/httpd/conf
Then make your changes to httpd.conf and test them before applying them.
I included the following at the top of my httpd.conf to remind me.
# Test Command # /opt/apache/bin/apachectl configtest # # Restart Command # /opt/apache/bin/apachectl restart #
If you find editing using vi to be a pain in the neck then add the following to your /raid/sys/smb.conf
[httpd] comment = root browseable = yes guest only = no path = /app/etc/httpd read only = no create mask = 0777 directory mask = 0777 force create mode = 0777 force directory mode = 0777 force user = root map acl inherit = no inherit acls = no inherit permissions = no map archive = no map hidden = no
You'll may find that you need to do the following as well but how much you change it will depend on how much memory you have. I've got 512 and these changes work really well.
## Server-Pool Size Regulation (MPM specific) # prefork MPM <IfModule prefork.c> # StartServers 5 # MinSpareServers 5 # MaxSpareServers 10 # MaxClients 150 # MaxRequestsPerChild 0 StartServers 8 MinSpareServers 5 MaxSpareServers 20 MaxClients 250 MaxRequestsPerChild 1000 </IfModule>
Apart from that i can't help you much because your config will be specific to your requirements.
|
|
|
Post by Ka Hooli on May 15, 2007 22:01:43 GMT 7
I'm sort of doing what you want to do. You've only got mod_rewrite to work with. The important thing to do is to leave the original web gui alone and add your configuration around it. Best approach is to make sure that you've got stable SSH access and backup the original httpd.conf and ssl.conf which are in /app/etc/httpd/conf Then make your changes to httpd.conf and test them before applying them. ... I tried this, but I needed a few more modules, so I have tried uploading mod_proxy.so to the /opt/apache/modules directory, but no matter how I try, the system won't let me. Any ideas?
|
|
|
Post by dbridges on May 16, 2007 5:12:43 GMT 7
I tried this, but I needed a few more modules, so I have tried uploading mod_proxy.so to the /opt/apache/modules directory, but no matter how I try, the system won't let me. Any ideas? /opt/apache/modules is on ramdisk and is pretty much read only unless you're really clued up on the flash storage. I can think of two options. Both are potentially risky and could result in you losing your web gui. If you have SSH though that shouldn't be too dangerous. option 1. copy /opt/apache/modules to somewhere on the /raid/ and create a symbolic link to it at boot time. option 2. Try and move the entire apache install to /raid/ and launch it instead. I haven't tried either on here so be careful.
|
|