Networking Forums

Networking Forums > Computer Networking > Linux Networking > Alias vs. ScriptAlias

Reply
Thread Tools Display Modes

Alias vs. ScriptAlias

 
 
kidalex@gmail.com
Guest
Posts: n/a

 
      11-01-2006, 04:10 AM
Is there a difference ( especially in terms of security ) between these

two chunks of configuration file code:

Alias /manager/ "/var/www/secure-bin/"
AddHandler cgi-script .pl
<Directory "/var/www/secure-bin">
SSLOptions +StdEnvVars
AllowOverride All
Options Indexes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>


.... and ...


ScriptAlias /manager/ "/var/www/secure-bin/"
<Directory "/var/www/secure-bin">
SSLOptions +StdEnvVars
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>


The difference is that the second one uses "ScripAlias" instead of the
"Alias" and does not have the "AddHandler" line?

 
Reply With Quote
 
 
 
 
Joe Beanfish
Guest
Posts: n/a

 
      11-01-2006, 04:55 PM
(E-Mail Removed) wrote:
> Is there a difference ( especially in terms of security ) between these
>
> two chunks of configuration file code:
>
> Alias /manager/ "/var/www/secure-bin/"
> AddHandler cgi-script .pl
> <Directory "/var/www/secure-bin">
> SSLOptions +StdEnvVars
> AllowOverride All
> Options Indexes FollowSymLinks ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
>
>
> ... and ...
>
>
> ScriptAlias /manager/ "/var/www/secure-bin/"
> <Directory "/var/www/secure-bin">
> SSLOptions +StdEnvVars
> AllowOverride All
> Options Indexes FollowSymLinks
> Order allow,deny
> Allow from all
> </Directory>
>
>
> The difference is that the second one uses "ScripAlias" instead of the
> "Alias" and does not have the "AddHandler" line?
>


Your alias setup allows you to place regular files and scripts into
the same directory. Any file with .pl extension will be executed instead
of delivered. Your scriptalias setup only allows scripts, regardless of
extension. No files can be delivered from that directory, only executed.
 
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alias? nordnewyorker@gmail.com Linux Networking 0 08-18-2008 10:06 PM
alias and procmail bolero92@yahoo.com Linux Networking 1 07-07-2006 07:13 AM
Server Alias Dav Banks Windows Networking 2 03-22-2006 04:12 PM
Using a DNS Alias... Nuklear Windows Networking 5 12-16-2005 03:46 PM
WINS alias? MartinHTN Windows Networking 3 01-15-2005 09:19 PM



1 2 3 4 5 6 7 8 9 10 11