Home > Archive > dBASE Web Applications > April 2005 > Apache directory problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Apache directory problem
john

2005-04-04, 8:03 pm

I am trying to set up a web server using apache. I have made the recommended changes to the httpd file as stated in the knowledge base.

My problem is that I cannot get apache to look at my chosen directory ("C:/dbaseWeb"). It keeps going to C:/Apache/HTDOCS by default.

I have attached the httpd file if someone could see the problem.

John

BTW Merry Christmas

Bowen Moursund [DataTech]

2005-04-04, 8:03 pm

> I am trying to set up a web server using apache. I have made the
recommended changes to the httpd file as stated in the knowledge base.
>
> My problem is that I cannot get apache to look at my chosen directory

("C:/dbaseWeb"). It keeps going to C:/Apache/HTDOCS by default.
>
> I have attached the httpd file if someone could see the problem.


Looks OK to me. Ensure that you have modified the correct copy of the .conf
file, and restart Apache.

--
Bowen Moursund
DataTech
http://www.bmmnet.us

David Ball

2005-04-04, 8:03 pm

Hi John

I should get out and start my shopping but...

1. Does apache return any pages at all? ie. 127.0.0.1 in your browser
returns what?

2. There may be a conflict in your cgi-bin settings. I haven't tested your
httpd.conf but there is a scriptAlias that points cgi-bin requests to
c:\apache\cgi-bin. From your <directory> set-up, it looks like you want
these requests to go to c:\dbaseweb\cgi-bin.

Learning opportunity:
To see if this is the case, copy an .exe to c:\apache\cgi-bin and see if it
runs. Check your logs and see if it is doing anything differently from
before.

Quick fix:
Try pointing the scriptAlias to c:\dbaseweb\cgi-bin, and remove the
<directory> directive below it AFTER comparing it with the one you have near
the beginning of section 2 to ensure that you have all of the default
settings correct. Restart apache afterwards.
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the
client.
# The same rules about trailing "/" apply to ScriptAlias directives as
to
# Alias.
#
ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"

#
# "C:/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

Good luck
David Ball
www.ChelseaData.ca


"john" < johnnoble202@hotmail
.com> wrote in message
news:K3NFDZa6EHA.736@news-server...
> I am trying to set up a web server using apache. I have made the

recommended changes to the httpd file as stated in the knowledge base.
>
> My problem is that I cannot get apache to look at my chosen directory

("C:/dbaseWeb"). It keeps going to C:/Apache/HTDOCS by default.
>
> I have attached the httpd file if someone could see the problem.
>
> John
>
> BTW Merry Christmas
>

Thanks; you too!


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com