Operating Systems > Linux and UNIX

simple cgi-bin Q

(1/2) > >>

Master of Reality:
when i do
ScriptAlias /cult/ib/cgi-bin/ "/var/www/cgi-bin"
will my cgi scripts that are in /var/www/cgi-bin fail to work properly if the have relative links that are relative to /var/www/html/cult/ib/cgi-bin (which is where they use to reside)??

I am plannin to upgrade my server and wanna use a cgi-bin at /var/www/cgi-bin instead of having the scripts executable anywhere.

Master of Reality:
another q:
should my cgi-bin directory container look like this:

<Directory "/var/www/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>

or like this:

  <Directory "/var/www/cgi-bin">
        AllowOverride None
        Options None ExecCGI
        Order allow,deny
        Allow from all
    </Directory>

[ November 18, 2002: Message edited by: The Master of Reality / B0B ]

voidmain:

quote:Originally posted by The Master of Reality / B0B:
when i do
ScriptAlias /cult/ib/cgi-bin/ "/var/www/cgi-bin"
will my cgi scripts that are in /var/www/cgi-bin fail to work properly if the have relative links that are relative to /var/www/html/cult/ib/cgi-bin (which is where they use to reside)??

I am plannin to upgrade my server and wanna use a cgi-bin at /var/www/cgi-bin instead of having the scripts executable anywhere.
--- End quote ---


Yes, that should work. Instead of www.someserver.com/cgi-bin/script.cgi you would have www.someserver.com/cult/ib/cgi-bin/script.cgi.

If you want both you'll need to add an "Alias".

[ November 18, 2002: Message edited by: void main ]

voidmain:

quote:m0ranother q:
or like this:

--- End quote ---


Like this (the default):

--- Code: ---
--- End code ---

Just make sure you don't have "ExecCGI" in your other directory definitions and it will only execute CGI from your cgi-bin.

[ November 18, 2002: Message edited by: void main ]

Master of Reality:

quote:Originally posted by void main:


Yes, that should work. Instead of www.someserver.com/cgi-bin/script.cgi you would have www.someserver.com/cult/ib/cgi-bin/script.cgi.

If you want both you'll need to add an "Alias".

[ November 18, 2002: Message edited by: void main ]
--- End quote ---

thanx
that was really the question... but i got it figured out.

[ November 18, 2002: Message edited by: The Master of Reality / B0B ]

Navigation

[0] Message Index

[#] Next page

Go to full version