FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 24th, 2005, 08:07 AM
dba_frog's Avatar
dba_frog dba_frog is offline
cave painting, the 1st Opn Src
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 394 dba_frog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 55 m 5 sec
Reputation Power: 6
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

Reply With Quote
  #2  
Old June 24th, 2005, 01:40 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Quote:
Originally Posted by dba_frog
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?

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.

Reply With Quote
  #3  
Old June 28th, 2005, 11:30 AM
dba_frog's Avatar
dba_frog dba_frog is offline
cave painting, the 1st Opn Src
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 394 dba_frog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 55 m 5 sec
Reputation Power: 6
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?

Reply With Quote
  #4  
Old June 28th, 2005, 12:28 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
You can't redirect ftp with apache. You have to configure your FTP server to do this, if possible at all.

M.

Reply With Quote
  #5  
Old June 28th, 2005, 03:14 PM
dba_frog's Avatar
dba_frog dba_frog is offline
cave painting, the 1st Opn Src
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 394 dba_frog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 55 m 5 sec
Reputation Power: 6
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

Reply With Quote
  #6  
Old June 28th, 2005, 03:29 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Quote:
Originally Posted by dba_frog
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

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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > FTP redirect howto


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway