Operating System - HP-UX
1827244 Members
2279 Online
109716 Solutions
New Discussion

Re: FTP Site Hosting problem

 
SOLVED
Go to solution
Sutapa Dey
Frequent Advisor

FTP Site Hosting problem

Hi All,

I have modified the Apache httpd.conf file to include the pub dircetory to host the ftp site along with another web application that is running on the server.

The problem is when I am logging into the ftp site. It is giving the directories but the icons are not coming properly. The error log from apache says

client denied by server configuration: /opt/apache/icons/back.gif, re
ferer: /pub/

This is how I modified the httpd.conf to include the pub dircetory


AuthName "FTP Site"
AuthType Basic
AuthUserFile /opt/hpws/apache/pswd.file
require valid-user
#AuthGroupFile /opt/hpws/apache/group.file



Please help.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: FTP Site Hosting problem

Shalom,

ftp is designed to work in a little jail of its own, /pub/ This looks like anonymous ftp to me.

You are trying to impose apache access restrictions on an area that is unable to see the apache icons.

ftp has its own authorization.

What you might be able to do is modify the home directory of the ftp user in /etc/passwd to be inside the apache patch, /var/www/html and then you might get the functionality you want.

I'm not sure your .htaccess configuration will work, but you can try that after relocating the default ftp directory from /pub/ to a better location.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sutapa Dey
Frequent Advisor

Re: FTP Site Hosting problem

Is there no way like what if I copy paste the icons from the apache icons folder to the ftp folder. Space is a constraint in /opt/apache partition. Hence cannot move the ftp folder to /opt. Please suggest any alternate configurations in httpd.conf if there is one for the same.
Ivan Krastev
Honored Contributor
Solution

Re: FTP Site Hosting problem

The problem is with alias /icons in apache configuration. This alias is global for all hosted sites.

You can define your alias for your host or just copy the icons directory under root directory of your virtual host.

regards,
ivan