httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@imdb.com (Rob Hartill)
Subject VirtualHost not Working in Apache 1.1 & 1.1.1 (fwd)
Date Tue, 16 Jul 1996 13:29:10 GMT

not acked

Date: Tue, 16 Jul 1996 17:25:02 +1000 (EST)
From: Rodney Campbell <rodney@campbell.telecom.com.au>
X-Sender: rodney@renoir
To: apache-bugs@apache.org
Subject: VirtualHost not Working in Apache 1.1 & 1.1.1
Message-ID: <Pine.SUN.3.91.960716171257.5784F-100000@renoir>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


I have posted this twice using the online form but it seems to wander 
into the void so...

Quick, one-line summary of the problem: VirtualHost no longer works in 
					Apache 1.1 or later.
Operating system: SunOS 4.1.4
Version of Apache being used: Apache/1.1.0 or Apache/1.1.1
Extra modules used: none

The server runs fine if I don't specify to use a VirtualHost. If I enable
the following lines in my config:

<VirtualHost wwwdk.telecom.com.au>
DocumentRoot /httpd/htdocs/telstra/author
ServerName wwwdk.telecom.com.au
ErrorLog logs/wwwdk/error_log
TransferLog logs/wwwdk/access_log
</VirtualHost>

and try to start the server nothing happens - No error is displayed at the
command line, no PID file is created, the two sets of access or error log
files are created (empty) - but the httpd process does NOT start.

NB: The same thing occured when using version 1.1
NB: Using Version 1.0.5 with this config works fine.

I tried using strace to follow what occurs (we get a SIGSEGV from the
child which is forked off - which we don't get if I run the older version
of the program or when using the new Apache without the VirtualHost
section).

getpagesize() = 0x1000
brk(0x5e088) = 0
brk(0x5f088) = 0
brk(0x62088) = 0
brk(0x65088) = 0
open("/httpd/conf/httpd-apache.conf.ne".., RDONLY, 666) = 3
ioctl(3, TCGETA, (struct termios *)0xefffd8bc) = -1 (Inappropriate ioctl for device)
fstat(3, [REG ino 398738 nlnks 1 ...]) = 0
read(3, "#===============================".., 8192) = 8192
getdomainname("noname", 256) = 0
open("/etc/passwd", RDONLY, 666) = 4
ioctl(4, TCGETA, (struct termios *)0xefffd29c) = -1 (Inappropriate ioctl for device)
fstat(4, [REG ino 8595 nlnks 1 ...]) = 0
brk(0x68088) = 0
read(4, "root:stuff deleted:0:1:Operator:".., 8192) = 1640
close(4) = 0
open("/etc/group", RDONLY, 666) = 4
ioctl(4, TCGETA, (struct termios *)0xefffd2b4) = -1 (Inappropriate ioctl for device)
fstat(4, [REG ino 8536 nlnks 1 ...]) = 0
read(4, "wheel:*:0:root,stuff deleted".., 8192) = 294
close(4) = 0
stat("/httpd", [DIR ino 2 nlnks 16 ...]) = 0
read(3, "cess_log\n\n# NCSA Only - Not Apac".., 8192) = 6145
getrlimit(NOFILE, {cur: 64, max: 256}) = 0
setrlimit(NOFILE, {cur: 66, max: 256}) = 0
getpid() = 16630 ([ppid: 16629])
open("/var/yp/binding/noname.2", RDONLY, 1152351) = -1 (No such file or directory)
socket(PF_INET, STREAM, IPPROTO_IP) = 4
connect(4, AF_INET(111, 127.0.0.1), 16) = 0
close(4) = 0
gettimeofday({837501518,988931}, (struct timezone *)0) = 0
getpid() = 16630 ([ppid: 16629])
socket(PF_INET, DGRAM, IPPROTO_UDP) = 4
getpid() = 16630 ([ppid: 16629])
bind(4, AF_INET(694, 0.0.0.0), 16) = 0
ioctl(4, FIONBIO, (int *)0xefffd4bc) = 0
sendto(4, "1\e5\15\bb\0\0\0\0\0\0\0\2\0\1\86\a0\0\0\0\2\0\0\0\3\0\0\0\0\0\0\0\0".., 56, 0,
AF_INET(111, 127.0.0.1), 16) = 56
gettimeofday({837501519,27319}, (struct timezone *)0) = 0
getdtablesize() = 66
select(66, fdset0:[ 4], 0, 0, tv:[30,0]) = 1 (fdset0:[4])
recvfrom(4, "1\e5\15\bb\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 400, 0, AF_INET(111,
127.0.0.1), 16) = 28
close(4) = 0
close(4) = -1 (Bad file number)
open("/etc/hosts", RDONLY, 666) = 4
ioctl(4, TCGETA, (struct termios *)0xefffd5e4) = -1 (Inappropriate ioctl for device)
fstat(4, [REG ino 8466 nlnks 1 ...]) = 0
read(4, "# /etc/hosts\n# DO NOT EDIT THIS ".., 8192) = 1148
getpid() = 16630 ([ppid: 16629])
open("/var/yp/binding/noname.2", RDONLY, 1152351) = -1 (No such file or directory)
socket(PF_INET, STREAM, IPPROTO_IP) = 5
connect(5, AF_INET(111, 127.0.0.1), 16) = 0
close(5) = 0
gettimeofday({837501519,80747}, (struct timezone *)0) = 0
getpid() = 16630 ([ppid: 16629])
socket(PF_INET, DGRAM, IPPROTO_UDP) = 5
bind(5, AF_INET(695, 0.0.0.0), 16) = 0
ioctl(5, FIONBIO, (int *)0xefffd394) = 0
sendto(5, "1\eb9\d2\0\0\0\0\0\0\0\2\0\1\86\a0\0\0\0\2\0\0\0\3\0\0\0\0\0\0\0\0".., 56, 0, AF_INET(111,
127.0.0.1), 16) = 56
gettimeofday({837501519,101264}, (struct timezone *)0) = 0
select(66, fdset0:[ 5], 0, 0, tv:[30,0]) = 1 (fdset0:[5])
recvfrom(5, "1\eb9\d2\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 400, 0, AF_INET(111,
127.0.0.1), 16) = 28
close(5) = 0
close(5) = -1 (Bad file number)
close(4) = 0
stat("/httpd/htdocs/telstra/author", [DIR ino 489856 nlnks 9 ...]) = 0
read(3, "", 8192) = 0
close(3) = 0
open("/httpd/conf/srm.conf.new", RDONLY, 666) = 3
ioctl(3, TCGETA, (struct termios *)0xefffd8bc) = -1 (Inappropriate ioctl for device)
fstat(3, [REG ino 398731 nlnks 1 ...]) = 0
read(3, "#===============================".., 8192) = 8192
stat("/httpd/htdocs", [DIR SGID ino 17088 nlnks 20 ...]) = 0
read(3, "d directories, uncomment the fol".., 8192) = 3183
read(3, "", 8192) = 0
close(3) = 0
open("/httpd/conf/access.conf.new", RDONLY, 666) = 3
ioctl(3, TCGETA, (struct termios *)0xefffd8bc) = -1 (Inappropriate ioctl for device)
fstat(3, [REG ino 398789 nlnks 1 ...]) = 0
read(3, "#===============================".., 8192) = 2663
read(3, "", 8192) = 0
close(3) = 0
brk(0x6b088) = 0
open("/httpd/logs/access_log", WRONLY|APPEND|CREAT, 644) = 3
open("/httpd/logs/wwwdk/access_log.new".., WRONLY|APPEND|CREAT, 644) = 4
open("/httpd/conf/mime.types", RDONLY, 666) = 5
ioctl(5, TCGETA, (struct termios *)0xefffd944) = -1 (Inappropriate ioctl for device)
fstat(5, [REG ino 85576 nlnks 1 ...]) = 0
read(5, "# This is a comment. I love comm".., 8192) = 2429
brk(0x6e088) = 0
read(5, "", 8192) = 0
close(5) = 0
close(4) = 0
close(3) = 0
chdir("/") = 0
fork(Process 16631 attached
) = 16631
 [pid 16630]: close(0 [pid 16631]: sys_setsid(0x1) = 16631
) = 0
 [pid 16631]: sigblock(0) = 0
 [pid 16630]: close(1 [pid 16631]: sigstack((struct sigstack *)0, {sp: 0,OFF}) = 0
) = 0
 [pid 16631]: sigblock([SIGHUP]) = 0
 [pid 16630]: close(2 [pid 16631]: sigvec(SIGHUP, SIG_IGN, SIG_DFL) = 0
) = 0
 [pid 16631]: sigvec(SIGHUP, SIG_IGN, (struct sigvec *)0) = 0
 [pid 16630]: rexit(0) = ?
 [pid 16631]: sigsetmask(0) = 0x1 ([SIGHUP])
killpg(16631, SIGHUP - [SIGHUP]
  **syscall: RESYNC
) = 0
gettimeofday({837501519,637795}, (struct timezone *)0) = 0
open("/httpd/conf/httpd-apache.conf.ne".., RDONLY, 666) = 3
ioctl(3, TCGETA, (struct termios *)0xefffd83c) = -1 (Inappropriate ioctl for device)
fstat(3, [REG ino 398738 nlnks 1 ...]) = 0
read(3, "#===============================".., 8192) = 8192
open("/etc/passwd", RDONLY, 666) = 4
ioctl(4, TCGETA, (struct termios *)0xefffd21c) = -1 (Inappropriate ioctl for device)
fstat(4, [REG ino 8595 nlnks 1 ...]) = 0
read(4, "root:stuff deleted:0:1:Operator:".., 8192) = 1640
close(4) = 0
open("/etc/group", RDONLY, 666) = 4
ioctl(4, TCGETA, (struct termios *)0xefffd234) = -1 (Inappropriate ioctl for device)
fstat(4, [REG ino 8536 nlnks 1 ...]) = 0
read(4, "wheel:*:0:root,stuff deleted".., 8192) = 294
close(4) = 0
stat("/httpd", [DIR ino 2 nlnks 16 ...]) = 0
read(3, "cess_log\n\n# NCSA Only - Not Apac".., 8192) = 6145
getrlimit(NOFILE, {cur: 66, max: 256}) = 0
setrlimit(NOFILE, {cur: 68, max: 256}) = 0
getpid() = 16631 ([ppid: 1])
open("/var/yp/binding/noname.2", RDONLY, 1152351) = -1 (No such file or directory)
socket(PF_INET, STREAM, IPPROTO_IP) = 4
connect(4, AF_INET(111, 127.0.0.1), 16) = 0
close(4) = 0
gettimeofday({837501519,746202}, (struct timezone *)0) = 0
getpid() = 16631 ([ppid: 1])
socket(PF_INET, DGRAM, IPPROTO_UDP) = 4
bind(4, AF_INET(696, 0.0.0.0), 16) = 0
ioctl(4, FIONBIO, (int *)0xefffd43c) = 0
sendto(4, "1\e1`b\0\0\0\0\0\0\0\2\0\1\86\a0\0\0\0\2\0\0\0\3\0\0\0\0\0\0\0\0".., 56, 0, AF_INET(111,
127.0.0.1), 16) = 56
gettimeofday({837501519,767713}, (struct timezone *)0) = 0
select(66, fdset0:[ 4], 0, 0, tv:[30,0]) = 1 (fdset0:[4])
recvfrom(4, "1\e1`b\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 400, 0, AF_INET(111,
127.0.0.1), 16) = 28
close(4) = 0
close(4) = -1 (Bad file number)
open("/etc/hosts", RDONLY, 666) = 4
ioctl(4, TCGETA, (struct termios *)0xefffd564) = -1 (Inappropriate ioctl for device)
fstat(4, [REG ino 8466 nlnks 1 ...]) = 0
read(4, "# /etc/hosts\n# DO NOT EDIT THIS ".., 8192) = 1148
getpid() = 16631 ([ppid: 1])
open("/var/yp/binding/noname.2", RDONLY, 1152351) = -1 (No such file or directory)
socket(PF_INET, STREAM, IPPROTO_IP) = 5
connect(5, AF_INET(111, 127.0.0.1), 16) = 0
close(5) = 0
gettimeofday({837501519,819241}, (struct timezone *)0) = 0
getpid() = 16631 ([ppid: 1])
socket(PF_INET, DGRAM, IPPROTO_UDP) = 5
bind(5, AF_INET(697, 0.0.0.0), 16) = 0
ioctl(5, FIONBIO, (int *)0xefffd314) = 0
sendto(5, "1\e8\82\91\0\0\0\0\0\0\0\2\0\1\86\a0\0\0\0\2\0\0\0\3\0\0\0\0\0\0\0\0".., 56, 0,
AF_INET(111, 127.0.0.1), 16) = 56
gettimeofday({837501519,840022}, (struct timezone *)0) = 0
select(66, fdset0:[ 5], 0, 0, tv:[30,0]) = 1 (fdset0:[5])
recvfrom(5, "1\e8\82\91\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 400, 0, AF_INET(111,
127.0.0.1), 16) = 28
close(5) = 0
close(5) = -1 (Bad file number)
close(4) = 0
stat("/httpd/htdocs/telstra/author", [DIR ino 489856 nlnks 9 ...]) = 0
read(3, "", 8192) = 0
close(3) = 0
open("/httpd/conf/srm.conf.new", RDONLY, 666) = 3
ioctl(3, TCGETA, (struct termios *)0xefffd83c) = -1 (Inappropriate ioctl for device)
fstat(3, [REG ino 398731 nlnks 1 ...]) = 0
read(3, "#===============================".., 8192) = 8192
stat("/httpd/htdocs", [DIR SGID ino 17088 nlnks 20 ...]) = 0
read(3, "d directories, uncomment the fol".., 8192) = 3183
read(3, "", 8192) = 0
close(3) = 0
open("/httpd/conf/access.conf.new", RDONLY, 666) = 3
ioctl(3, TCGETA, (struct termios *)0xefffd83c) = -1 (Inappropriate ioctl for device)
fstat(3, [REG ino 398789 nlnks 1 ...]) = 0
read(3, "#===============================".., 8192) = 2663
read(3, "", 8192) = 0
close(3) = 0
open("/httpd/logs/access_log", WRONLY|APPEND|CREAT, 644) = 3
open("/httpd/logs/wwwdk/access_log.new".., WRONLY|APPEND|CREAT, 644) = 4
open("/httpd/conf/mime.types", RDONLY, 666) = 5
ioctl(5, TCGETA, (struct termios *)0xefffd8c4) = -1 (Inappropriate ioctl for device)
fstat(5, [REG ino 85576 nlnks 1 ...]) = 0
read(5, "# This is a comment. I love comm".., 8192) = 2429
read(5, "", 8192) = 0
close(5) = 0
open("/httpd/logs/error_log", WRONLY|CREAT, 666) = 5
lseek(5, 0, END) = 0
open("/httpd/logs/wwwdk/error_log.new", WRONLY|CREAT, 666) = 6
lseek(6, 0, END) = 0
getuid() = 0 ([euid 0])
open("/etc/group", RDONLY, 666) = 7
ioctl(7, TCGETA, (struct termios *)0xeffff2dc) = -1 (Inappropriate ioctl for device)
fstat(7, [REG ino 8536 nlnks 1 ...]) = 0
read(7, "wheel:*:0:root,stuff deleted".., 8192) = 294
read(7, "", 8192) = 0
close(7) = 0
setgroups(1, [ 65534]) = 0
setregid(65534, 65534) = 0
open("/dev/zero", RDWR, 35777775160) = 7
smmap(0, 22200, READ|WRITE, SHARED, 7, 0) = 0xef7f9000
close(7) = 0
getpid() = 16631 ([ppid: 1])
open("/var/yp/binding/noname.2", RDONLY, 1152351) = -1 (No such file or directory)
socket(PF_INET, STREAM, IPPROTO_IP) = 7
connect(7, AF_INET(111, 127.0.0.1), 16) = 0
close(7) = 0
gettimeofday({837501520,121393}, (struct timezone *)0) = 0
getpid() = 16631 ([ppid: 1])
socket(PF_INET, DGRAM, IPPROTO_UDP) = 7
bind(7, AF_INET(698, 0.0.0.0), 16) = 0
ioctl(7, FIONBIO, (int *)0xeffff74c) = 0
sendto(7, "1\eb\d8\96\0\0\0\0\0\0\0\2\0\1\86\a0\0\0\0\2\0\0\0\3\0\0\0\0\0\0\0\0".., 56, 0,
AF_INET(111, 127.0.0.1), 16) = 56
gettimeofday({837501520,141929}, (struct timezone *)0) = 0
select(66, fdset0:[ 7], 0, 0, tv:[30,0]) = 1 (fdset0:[7])
recvfrom(7, "1\eb\d8\96\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 400, 0, AF_INET(111,
127.0.0.1), 16) = 28
close(7) = 0
close(7) = -1 (Bad file number)
open("/etc/hosts", RDONLY, 666) = 7
ioctl(7, TCGETA, (struct termios *)0xeffff874) = -1 (Inappropriate ioctl for device)
fstat(7, [REG ino 8466 nlnks 1 ...]) = 0
read(7, "# /etc/hosts\n# DO NOT EDIT THIS ".., 8192) = 1148
getpid() = 16631 ([ppid: 1])
open("/var/yp/binding/noname.2", RDONLY, 1152351) = -1 (No such file or directory)
socket(PF_INET, STREAM, IPPROTO_IP) = 8
connect(8, AF_INET(111, 127.0.0.1), 16) = 0
close(8) = 0
gettimeofday({837501520,193480}, (struct timezone *)0) = 0
getpid() = 16631 ([ppid: 1])
socket(PF_INET, DGRAM, IPPROTO_UDP) = 8
bind(8, AF_INET(699, 0.0.0.0), 16) = 0
ioctl(8, FIONBIO, (int *)0xeffff624) = 0
sendto(8, "1\ea\f1o\0\0\0\0\0\0\0\2\0\1\86\a0\0\0\0\2\0\0\0\3\0\0\0\0\0\0\0\0".., 56, 0, AF_INET(111,
127.0.0.1), 16) = 56
gettimeofday({837501520,214034}, (struct timezone *)0) = 0
select(66, fdset0:[ 8], 0, 0, tv:[30,0]) = 1 (fdset0:[8])
recvfrom(8, "1\ea\f1o\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 400, 0, AF_INET(111,
127.0.0.1), 16) = 28
close(8) = 0
close(8) = -1 (Bad file number)
read(7, "", 8192) = 0
close(7) = 0
 - [SIGSEGV]

Process 16631 detached


								Rodney...

    Rodney Campbell    |Email : Rodney.Campbell@Telstra.com.au
   Telstra Corp. Ltd   |Snail : Locked Bag 6560, Sydney 1100, Australia.
Information Technology |      : Level 25, 201 Elizabeth St, Sydney NSW 2000.
         Group         |Phone : +61 2 396 8512  Fax: +61 2 396 8527
                       |  http://www.telstra.com.au/rodney/rodney.html


----- End of forwarded message from Rodney Campbell -----

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.

Mime
View raw message