|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
FTP redirect howto
I have my hosting box all set on a rewrite from server A to server B. But, my ftp is barfing, I get a SERVER NOT FOUND issue.
my rewrite block is : <VirtualHost 192.168.0.109:80> ServerName xxxxxxxx.org RewriteEngine on RewriteRule ^/icons/(.+) - [PT,L] RewriteRule ^/var/www/html/xxxxxxxx.org/(.+) $1 [R,L] RewriteRule ^(.+) http://192.168.0.202/$1 [P,L] </VirtualHost> How can I add FTP to this rewrite? Do I add RewriteRule ^(.+) ftp://192.168.0.202/$1 [P,L] to this block? or, do I need a new block?
__________________
Curious by Nature, Linux by Choice |
|
#2
|
|||
|
|||
|
Quote:
Are you sure that your apache is serving FTP? I doubt, there is only unstable modules available for this to my knowledge. (moved to FTP HELP) M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
||||
|
||||
|
Maybe I'm looking at this the wrong way...
I have a server box (a) that redirects to another webserver box(b) on my network. When I try to log in to the the server box (b) it sez...'server not found', because the request came thru box (a) and didn't know where to redirect the ftp request. So, I thought that since I redirected my http requests from box (a) to box (b), i'd just update the VirtualHost for the redirect and the FTP would go thru. thoughts and\or corrections to dilemma? |
|
#4
|
|||
|
|||
|
You can't redirect ftp with apache. You have to configure your FTP server to do this, if possible at all.
M. |
|
#5
|
||||
|
||||
|
NP...I'll recofig the router to move the port 21 traffic to that box...just a little cumbersome if I wanna have FTP to my other box
thanks tho |
|
#6
|
|||
|
|||
|
Quote:
Unfortunately, this is only half of the game. FTP is using two connections: A control connection (Port 21) and a data connection (ports configured in client and / or server ; depends on the "passive/active" settings). If you really have to use FTP but you can not redirect your DNS A record to the server, then install a ftp proxy on your router. The best solution would be pointing your A record to the ftp server and dealing with redirecting the other services on that machine. FTP is one of the most troublesome services to set up because it's hard to tell which ports are going to be used. Use a ftp proxy to avoid the problems, but triple your traffic.... ![]() M. |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > FTP redirect howto |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|