Re: [users@httpd] FTP and Virtual directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Muhammad Rizwan wrote:

1- How we can create FTP site in Apache, as we can create in IIS
(Microsoft).

2- How we can create Virtual Directory in apache, and what is the
purpose of it?
Information about your environment, and how it was created would help a great deal.

An ftp server is totally separate from an http server. But for an http server to be useful, it pretty much has to have an ftp server on the same box, to allow the uploading of the web page files.

Linux distributions come with ftp servers. The challenge is to determine a) if it is running, b) if not, is it installed or c) how to install it. And you want it to run automatically when you start the system.

Virtual directories in Apache are entries in the configuration files. In version 2.x they are now placed in Vhosts.conf. Where this file is located depends on your install. In Linux it may be in /etc/http/conf/vhosts

They map domain names to physical directories on the server. In this way, many domains can be hosted on the same server, and the Virtual Directory entries tell Apache where to get the files for each domain.

A simple entry might be:

NameVirtualHost *

<Virtual Host www.domainname.com>
DocumentRoot /home/someusername/www/www.domainname.com
ServerName www.domainname.com
</VirtualHost>

NameVirtualHost tells Apache to accept every domain. This is not adequate in a public host, since it does not deal with requests for non-hosted domains.

The VirtualHost directive tells Apache to map the domain to the directory.

Apache must have a <Directory> directive to include /home/*/www otherwise it will refuse to access files in the home directory and raise a permission error. The directories must be readable by anyone, and writable by 'someusername' the account owner.

The ftp server should be set to allow access based on account name, 'someusername' so users can only access their own directories.

Hope this helps.
begin:vcard
fn:Stephen
n:;Stephen
email;internet:stephen-d@xxxxxxxxxx
x-mozilla-html:FALSE
version:2.1
end:vcard


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux