<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2712.300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Comic Sans MS" size=2>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Before i make what will be a significant alteration to my Apache
configuration file (httpd.conf) as detailed below, does anybody have any
comments or advice!? Proposed alterations are indented.
</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></FONT><FONT face="Times New Roman" size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>I want to create cgi-bins in my user account html directories for
perl and cgi scripts. Each user account is actually a diferent project and
i want to keep the scripts for each project in its own cgi-bin. Each
users home directory currently has a symlink for redirection to there html
directory, these html directories are set as Default root in the
(proftpd.conf) configuration file.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>I want to change things for various reasons but mainly to keep
projects together in there own directories, each complete with there own
scripts. All projects will then be inside the directory (ftp) to
allow tarred, compressed backups in one command line for all projects and
there subdirectories and files.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>######################################</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># Aliases: Add here as many aliases as you need (with no limit). The
format is </FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># Alias fakename realname</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3><IfModule mod_alias.c></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="COLOR: red"><FONT
size=3><FONT face="Times New Roman">Alias /user1/
"/usr/local/ftp/user1/"</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: red"></SPAN><SPAN style="COLOR: red"><FONT size=3><FONT
face="Times New Roman">Alias /user2/
"/usr/local/ftp/user2/"</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: red"></SPAN><SPAN style="COLOR: red"><FONT size=3><FONT
face="Times New Roman"></FONT></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="COLOR: red"><FONT
size=3><FONT face="Times New Roman"><Directory
"/usr/local/ftp/user*"></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: red"></SPAN><SPAN style="COLOR: red"><FONT size=3><FONT
face="Times New Roman">Authuserfile /etc/httpd/passwd</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: red"></SPAN><SPAN style="COLOR: red"><FONT size=3><FONT
face="Times New Roman">AuthGroupfile /etc/httpd/group</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: red"></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: red"></SPAN><FONT face="Times New Roman"><FONT size=3><FONT
color=#ff0000><SPAN>Options -FollowSymLinks +Includes -</SPAN><SPAN
style="COLOR: red">Multiviews +ExecCGI</SPAN></FONT></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT
face="Times New Roman"><SPAN style="COLOR: red"></SPAN></FONT><FONT size=3><FONT
face="Times New Roman"><FONT color=#ff0000><SPAN>AllowOverride
None</SPAN></FONT></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"><FONT
color=#ff0000><SPAN></SPAN></FONT></FONT></FONT><SPAN style="COLOR: red"><FONT
size=3><FONT face="Times New Roman">Order allow,deny</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: red"></SPAN><SPAN style="COLOR: red"><FONT size=3><FONT
face="Times New Roman">Allow from All</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: red"></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="COLOR: red"></SPAN><SPAN style="COLOR: red"><FONT size=3><FONT
face="Times New Roman"></Directory><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># Note that if you include a trailing / on fakename then the server
will</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># require it to be present in the URL.<SPAN
style="mso-spacerun: yes"> </SPAN>So "/icons" isn't aliased in
this</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># example, only "/icons/".<SPAN style="mso-spacerun: yes">
</SPAN>If the fakename is slash-terminated, then the </FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># realname must also be slash terminated, and if the fakename omits the
</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># trailing slash, the realname must also omit it.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Alias /icons/ "/usr/local/httpd/icons/"</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3><Directory "/usr/local/httpd/icons"></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Options Indexes MultiViews</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>AllowOverride None</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Order allow,deny</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Allow from all</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></Directory></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># ScriptAlias: This controls which directories contain server
scripts.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># ScriptAliases are essentially the same as Aliases, except
that</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># documents in the realname directory are treated as applications
and</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># run by the server when requested rather than as documents sent to the
client.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># The same rules about trailing "/" apply to ScriptAlias directives as
to</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># Alias.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>ScriptAlias /cgi-bin/ "/usr/local/httpd/cgi-bin/"</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman">ScriptAlias
/user1/cgi-bin/
"/usr/local/ftp/user1/cgi-bin/"<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman">ScriptAlias
/user2/cgi-bin/
"/usr/local/ftp/user2/cgi-bin/"<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="COLOR: red"><FONT
size=3><FONT face="Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3><IfModule mod_perl.c></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># Provide two aliases to the same cgi-bin directory, </FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># to see the effects of the 2 different mod_perl modes.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># for Apache::Registry Mode</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>ScriptAlias /perl/<SPAN
style="mso-spacerun: yes">
</SPAN>"/usr/local/httpd/cgi-bin/"</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># for Apache::Perlrun Mode</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>ScriptAlias /cgi-perl/<SPAN
style="mso-spacerun: yes">
</SPAN>"/usr/local/httpd/cgi-bin/"</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></IfModule></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># "/usr/local/httpd/cgi-bin" should be changed to whatever your
ScriptAliased</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># CGI directory exists, if you have that configured.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3><Directory "/usr/local/httpd/cgi-bin"></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>AllowOverride None</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Options None</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Order allow,deny</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Allow from all</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></Directory></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman"><Directory
"/usr/local/ftp/user*/cgi-bin"><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman">AllowOverride
None<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman">Options
None<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman">Order
allow,deny<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman">Allow from
all<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT
face="Times New Roman"></Directory><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></IfModule></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># End of aliases.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3># set /cgi-bin for CGI execution</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3><Location /cgi-bin></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>AllowOverride None</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>Options +ExecCGI +Includes</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>SetHandler cgi-script</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></Location></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman"><Location
/user*/cgi-bin><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman">AllowOverride
None<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman">Options +ExecCGI
+Includes<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT size=3><FONT face="Times New Roman">SetHandler
cgi-script<o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT face="Times New Roman"
size=3></Location></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt"><SPAN
style="COLOR: red"><FONT face="Times New Roman"
size=3></FONT></SPAN> </P><SPAN style="COLOR: red"><FONT
face="Times New Roman" size=3><FONT color=#000000>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3>######################################</FONT></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3><FONT color=#000000></FONT></FONT> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3><FONT color=#000000>At the mo all scripts are in the servers default
cgi-bin and a typical link for user1 currently reads</FONT> <FONT
color=#ff0000><!--#exec cgi = "/cgi-bin/counter.pl"--> </FONT><FONT
color=#000000>when i change things should the link be changed to
read </FONT><FONT color=#ff0000><!--#exec cgi =
"/user1/cgi-bin/counter.pl"--></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face="Times New Roman"
color=#000000 size=3>Mark</FONT></P></SPAN>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><FONT
face="Times New Roman"> <o:p></o:p></FONT></FONT></P></FONT></DIV></BODY></HTML>