You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Gunter Verbocht <gu...@verbocht.be> on 2003/01/22 13:52:16 UTC

[users@httpd] FTP redirect with mod rewrite

Hi,
 
Is it possible to redirect FTP requests to other servers? So when for
example someone ftp's to user.domein.com, that I can redirect it to
other.domain.com/user
 
So that it possible for me to let those people go directly to their own
directory on that server.
 
This should also work with ftp clients. I would think in the direction
of rewriting requests for URL's with ports (21-FTP). I'm only not sure
if this is possible with the Apache mod rewrite.
 
 
Regards,
 
Gunter verbocht
 
 

RE: [users@httpd] very basic apache/php questions -- linux

Posted by Bruce Douglas <be...@earthlink.net>.
Roman...

Yes.. PHP is in the RH installation.. However, the Apache config file
appears to be missing some information.

IE.. I can't seem to find ...

never mind..... I just saw the include for the php.conf file...

however, i do have another question....

it appears that I have to use:
<?php
....
?>

... is there a way to simply use "<?" instead of "<?php"...

thanks

bruce


-----Original Message-----
From: Roman [mailto:outbound@centrum.cz]
Sent: Wednesday, January 22, 2003 10:49 AM
To: users@httpd.apache.org
Subject: RE: [users@httpd] very basic apache/php questions -- linux


What exactly do you want ? PHP should work in RH distribution when you
installed it, isn't it ?!

Roman

> I'm not sure what I have to do. I have the RedHat 8.0 version of Apache
> (2.0.40) and PHP (4.2.4) running. I've examined the httpd.conf file for
> Apache and it seems to be missing some things.
>
> The first question, do I need to build/compile Apache with and PHP
> functionality built into it?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] very basic apache/php questions -- linux

Posted by Roman <ou...@centrum.cz>.
What exactly do you want ? PHP should work in RH distribution when you
installed it, isn't it ?!

Roman

> I'm not sure what I have to do. I have the RedHat 8.0 version of Apache
> (2.0.40) and PHP (4.2.4) running. I've examined the httpd.conf file for
> Apache and it seems to be missing some things.
>
> The first question, do I need to build/compile Apache with and PHP
> functionality built into it?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] very basic apache/php questions -- linux

Posted by Bruce Douglas <be...@earthlink.net>.
Hi...

A couple of what I believe to be very basic questions... I have a test
Apache/PHP running under windows. I want to get basically the same thing
under Linux.

I'm not sure what I have to do. I have the RedHat 8.0 version of Apache
(2.0.40) and PHP (4.2.4) running. I've examined the httpd.conf file for
Apache and it seems to be missing some things.

The first question, do I need to build/compile Apache with and PHP
functionality built into it?

I'm hoping that I only need to add a few lins to the config file and restart
Apache and everything will work!!

I guess what I'm really looking for are the basic steps that one needs in
order to be able to handle .php files....

Yea.. I know.. This is fairly basic. I've search the Internet, but I'm
getting confused!!!!

I've had a serious lack of sleep the last couple of days!!

Thanks for any assistance/help....

-Bruce
bedouglas@earthlink.net



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] FTP redirect with mod rewrite

Posted by Jacob Coby <jc...@listingbook.com>.
> Is it possible to redirect FTP requests to other servers? So when for
> example someone ftp's to user.domein.com, that I can redirect it to
> other.domain.com/user
>
> So that it possible for me to let those people go directly to their own
> directory on that server.
>
> This should also work with ftp clients. I would think in the direction
> of rewriting requests for URL's with ports (21-FTP). I'm only not sure
> if this is possible with the Apache mod rewrite.

FTP and HTTP are totally seperate protocols served by totally seperate
servers.  So, no, apache cannot redirect FTP requests.

As far as I know, FTP does not support any kind of transparent server
redirect.   You might be able to setup your FTP server so that it knows that
user.domain.com should dump the user out at /home/user, but this isn't an
issue unless you want anon logins.

You can also make *.domain.com point to another.domain.com or setup
ip[chains|tables] rules so that *.domain.com:21 is tunneled or redirected to
ftp.domain.com:21 so that they don't have to get the domain right.

Another option is to make http://user.domain.com throw up a meta refresh tag
that brings them to ftp://ftp.domain.com/user

-Jacob


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org