Web Servers on Windows - Problem with apache

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > May 2006 > Problem with apache





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 Problem with apache
andrewtayloruk@gmail.com

2006-05-09, 7:15 am

Hi, i'm pretty new to all this so please be gentle. I recently decided
to set up my own webserver and run it on my adsl connection i'm just
having one or two problems.

I'm using zone edit for my dns so that is all taken care of.

The problem i'm having is that everytime i visit www.mysite.com i get a
403 "Forbidden You don't have permission to access / on this server."
error.

Is this something to do with the permissions on the folder in my htdocs
directory or is it to do with my httpd.conf file?

Please help.

Andrew

Nil

2006-05-09, 1:15 pm

On 09 May 2006, andrewtayloruk@gmail.com wrote in
news:1147175529.417629.42570@j73g2000cwa.googlegroups.com:

> Is this something to do with the permissions on the folder in my
> htdocs directory or is it to do with my httpd.conf file?


Look in Windows' System and Application logs and in Apache's access and
error logs for errors that might provide a clue.
andrewtayloruk@gmail.com

2006-05-09, 1:15 pm

It's isn't an apache error, from what i've read i think it's got
something to do with the fact i'm using a directory i created inside
the htdocs directory as root for the mysite.com virtualhost.

I've been playing around for a few hours but to be honest i'm pretty
stumped.

Is there anything wrong with this?

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin me@me.com
DocumentRoot /htdocs/mysite.com
ServerName www.mysite.com

ServerAlias mysite.com

</VirtualHost>

Nil

2006-05-09, 1:15 pm

On 09 May 2006, andrewtayloruk@gmail.com wrote in
news:1147186533.759035.136110@i40g2000cwc.googlegroups.com:

> It's isn't an apache error, from what i've read i think it's got
> something to do with the fact i'm using a directory i created inside
> the htdocs directory as root for the mysite.com virtualhost.


Did you look at the logs?

If this has anything to do with Apache's Virtual Host feature, I can't
help you.
andrewlondonuk

2006-05-09, 1:15 pm

I've looked at access.log and it just says the following

myipaddress - - [date and time] "GET / HTTP/1.1 403 202

This doesn't tell me much.....

Nil

2006-05-09, 1:15 pm

On 09 May 2006, "andrewlondonuk" <andrewtayloruk@gmail.com> wrote in
news:1147188664.110080.309500@i40g2000cwc.googlegroups.com:

> I've looked at access.log and it just says the following
>
> myipaddress - - [date and time] "GET / HTTP/1.1 403 202
>
> This doesn't tell me much.....


Man, getting info out of you is like pulling teeth.

Check the other logs I mentioned?
webwolf_3000

2006-05-10, 7:13 pm

theres a sample from my own server, i know that works, so mirror it
with your info, see what happens.

############################
# Virtual Host www.digitalwolf.org

<VirtualHost www.digitalwolf.org>
DocumentRoot "X:\server\www"
ServerName digitalwolf.org
ServerAlias www.digitalwolf.org
</VirtualHost>
###########################
############################
# Virtual Host lair.digitalwolf.org

<VirtualHost lair.digitalwolf.org>
DocumentRoot "X:\server\www\lair"
ServerName digitalwolf.org
ServerAlias lair.digitalwolf.org
</VirtualHost>
###########################

yes the default address has to be included in the virtual server
directory, it should still be defined at the head of the conf file
though.

Server being where apache is installed
www being the document root

/htdocs/mysite.com < that looks like unix addressing to me, if your
using windows use literal addressing ( "c:\apache\htdocs" )

dont forget document root is the path to your documents, not a web
address.

also find and check the following:

#Listen 127.0.0.1:80 ( you dont to define an IP, unless running
multiple servers on a routed #connection
Listen 80

#no need to define the fully qualified domain name, just the DN,and TLD
: PORT
ServerName digitalwolf.org:80

any problems, just post your entire conf file on here, ill have a look
and modify the nessacerry entries for you.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com