Newbe bogged down

Newbe bogged down

Post by Znar » Wed, 27 Oct 2004 23:47:31


Hi folks, need a little gray matter if you please.
running apache 2.0.52 on a xp-home box..
trying to run two web pages on vhost...
first page running ok..
second page will not work....
error log states "Directory index forbidden by rule:C:/Program
Files/Apache/Apache2/varcroot/".
here is the setup in http.conf
am behind a firewall/router and
have ports 8000-8050 forward to 192.168.1.102

-------------------------------
Listen 8000
Listen 8050
#
NameVirtualHost 192.168.1.102:8000
NameVirtualHost 192.168.1.102:8050

<VirtualHost 192.168.1.102:8000>
ServerName Znar.com
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>

<VirtualHost 192.168.1.102:8050>
ServerName VictoriaAmateurRadioClub.info
DocumentRoot "C:/Program Files/Apache Group/Apache2/varcroot"
</VirtualHost>
------------------------------
Yep, I know RTFM.. I have till I am bugeyed...I just not sinkin in..
If you could help get me over the hump...
Tnks..
Glenn
 
 
 

Newbe bogged down

Post by noSp » Thu, 28 Oct 2004 08:59:41


> snip
Howdy, well kept digging and got it to work...
now have to get the cgi scripts to work on both pages..
Glenn

 
 
 

Newbe bogged down

Post by Jim Patter » Thu, 28 Oct 2004 10:11:51


You'll need a Directory block to permit access to the .../varcroot
directory - you may have found this out by now.



FYI, this is not the usual setup for a named virtual host - it's the
other (IP) variety. If you're using a named virtual host, you don't need
to put them onto different ports. They can share the same port; Apache
distinguishes by which hostname you use to connect to the web server.

--
Jim Patterson
Ottawa, Ont
CANADA
 
 
 

Newbe bogged down

Post by Znar » Fri, 29 Oct 2004 04:52:23


Tnks for the reply Jim...got both pages running for now..
however the cgi scrips. don't run...perl is in the C:\perl\bin\perl.exe
the pl scripts are in the document root/cgi-bin
not getting any errors in the error file below is the access file
---
192.168.1.1 - - [27/Oct/2004:14:12:21 -0500] "GET / HTTP/1.1" 304 -
192.168.1.1 - - [27/Oct/2004:14:12:23 -0500] "GET /pass.html HTTP/1.1" 304 -
192.168.1.1 - - [27/Oct/2004:14:12:33 -0500] "POST /cgi-bin/pass.pl
HTTP/1.1" 200 -
---
tnks
Glenn
 
 
 

Newbe bogged down

Post by Jim Patter » Fri, 29 Oct 2004 07:58:18


The status indicates that it executed okay. If Perl failed somehow, I'm
pretty sure you'd get some error status (i.e. not "200"). So, what did
you see in the browser? A blank page? The text of the Perl script?

--
Jim Patterson
Ottawa, Ont
CANADA
 
 
 

Newbe bogged down

Post by Nil » Fri, 29 Oct 2004 11:37:18

On 27 Oct 2004, "@znar(noSpam).com" <""znar\"@znar(noSpam).com">



I won't know the answer to your question because I don't know
anything about virtual hosts, but the above log entries are normal.

Check the Windows system and application logs for more possible
clues.
 
 
 

Newbe bogged down

Post by Jim Patter » Sat, 30 Oct 2004 13:42:36


Looks normal. I think you should dig into what your perl script is
sending down the line. It might be useful to do a "view source" to see
if the document is actually blank - it could just be that the HTML is
messed up. Some debug code in your perl script (e.g. logging to a log
file) might also be a good thing to try.

If you're running your server on a different machine, you might find a
network snooping tool like Ethereal ( http://www.yqcomputer.com/ ) useful.
That will allow you to see what the request and reply are without the
browser interpreting it for you. There are simpler ways like Telnet or
wget, but because you're POSTing your request, you'll have to put
together a sensible parameter string first.

--
Jim Patterson
Ottawa, Ont
CANADA
 
 
 

Newbe bogged down

Post by noSp » Mon, 01 Nov 2004 11:08:07

> -- snip
Hi again Jim
tnks for the info...
I think that my problems are all connected to the way I have the 2Vhosts
set up...let me give you a thumb-nail view of my set up...
I am on a net work, cable modem connected to router/firewall..
only have one isp address...have ports 8000 and 8050 being forward
to computer(3)...Vhost(1) root dir to web1(8000) Vhost(2) root dir to
web2(8050).both web's have their own cgi-bin...All the HTML links on
both webs are working ok...On computer(4) I have set up a test Apache
on port 80 and have that being forward from the router..as it is a
single with not trying to setup and Vhosts, it works fine and I am able
to run cgi scrips on it ok..On the computer with the Vhost, do I still
set the master dir or comment it out and just work with the Vhosts??
Tnks again
Glenn