Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
cbd72dff
Commit
cbd72dff
authored
Feb 11, 2007
by
justdave%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 369956: Have testserver.pl report whether or not the server is using mod_perl
r=mkanat, a=justdave
parent
2f97f350
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
testagent.cgi
testagent.cgi
+1
-1
testserver.pl
testserver.pl
+2
-2
No files found.
testagent.cgi
View file @
cbd72dff
...
@@ -19,6 +19,6 @@
...
@@ -19,6 +19,6 @@
use
strict
;
use
strict
;
print
"content-type:text/plain\n\n"
;
print
"content-type:text/plain\n\n"
;
print
"OK\n"
;
print
"OK
"
.
(
$::ENV
{
MOD_PERL
}
||
"mod_cgi"
)
.
"
\n"
;
exit
;
exit
;
testserver.pl
View file @
cbd72dff
...
@@ -107,8 +107,8 @@ Check your webserver configuration and try again.\n";
...
@@ -107,8 +107,8 @@ Check your webserver configuration and try again.\n";
# Try to execute a cgi script
# Try to execute a cgi script
my
$response
=
fetch
(
$ARGV
[
0
]
.
"/testagent.cgi"
);
my
$response
=
fetch
(
$ARGV
[
0
]
.
"/testagent.cgi"
);
if
(
$response
=~
/^OK/
)
{
if
(
$response
=~
/^OK
(.*)$
/
)
{
print
"TEST-OK Webserver is executing CGIs.\n"
;
print
"TEST-OK Webserver is executing CGIs
via $1
.\n"
;
}
elsif
(
$response
=~
/^#!/
)
{
}
elsif
(
$response
=~
/^#!/
)
{
print
print
"TEST-FAILED Webserver is fetching rather than executing CGI files.
"TEST-FAILED Webserver is fetching rather than executing CGI files.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment