"403 forbidden"

This is a discussion on "403 forbidden" within the Apache Web Server forums, part of the Web Server and Related Forums category; hi guys, i'm running apache 2.2 on windows as a service keep getting Forbidden You don't have ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-24-2008
Mazlaghan
 
Posts: n/a
Default "403 forbidden"

hi guys,

i'm running apache 2.2 on windows as a service

keep getting

Forbidden

You don't have permission to access / on this server.

having a bit of nightmare...


here's my httpd:

NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<VirtualHost www.rug-sales.com:80>
DocumentRoot "c:/Websites/rug-sales.com"
ServerName www.rug-sales.com
</VirtualHost>



any ideas?

thanks for your help!

  #2 (permalink)  
Old 04-24-2008
Kees Nuyt
 
Posts: n/a
Default Re: "403 forbidden"

On Thu, 24 Apr 2008 05:15:04 -0700 (PDT), Mazlaghan
<wennek@gmail.com> wrote:

>hi guys,
>
>i'm running apache 2.2 on windows as a service
>
>keep getting
>
>Forbidden
>
>You don't have permission to access / on this server.
>
>having a bit of nightmare...
>
>
>here's my httpd:
>
>NameVirtualHost *:80
>
>#
># VirtualHost example:
># Almost any Apache directive may go into a VirtualHost container.
># The first VirtualHost section is used for requests without a known
># server name.
>#
>#<VirtualHost *:80>
># ServerAdmin webmaster@dummy-host.example.com
># DocumentRoot /www/docs/dummy-host.example.com
># ServerName dummy-host.example.com
># ErrorLog logs/dummy-host.example.com-error_log
># CustomLog logs/dummy-host.example.com-access_log common
>#</VirtualHost>
>
> <VirtualHost www.rug-sales.com:80>


Make that:

<VirtualHost *:80>

(just like the example says).

> DocumentRoot "c:/Websites/rug-sales.com"
> ServerName www.rug-sales.com
> </VirtualHost>
>
>
>any ideas?


Also, don't the first VirtualHost is the default
virtual host, so if requests for www.furniture.com
reach your server, they will be handled by the virtual
host for www.rug-sales.com

>thanks for your help!

--
( Kees
)
c[_] Todays news is tomorrows history. (#379)
  #3 (permalink)  
Old 04-25-2008
Mazlaghan
 
Posts: n/a
Default Re: "403 forbidden"

On Apr 24, 9:04 pm, Kees Nuyt <k.n...@nospam.demon.nl> wrote:
> On Thu, 24 Apr 2008 05:15:04 -0700 (PDT), Mazlaghan
>
>
>
> <wen...@gmail.com> wrote:
> >hi guys,

>
> >i'm running apache 2.2 on windows as a service

>
> >keep getting

>
> >Forbidden

>
> >You don't have permission to access / on this server.

>
> >having a bit of nightmare...

>
> >here's my httpd:

>
> >NameVirtualHost *:80

>
> >#
> ># VirtualHost example:
> ># Almost any Apache directive may go into a VirtualHost container.
> ># The first VirtualHost section is used for requests without a known
> ># server name.
> >#
> >#<VirtualHost *:80>
> ># ServerAdmin webmas...@dummy-host.example.com
> ># DocumentRoot /www/docs/dummy-host.example.com
> ># ServerName dummy-host.example.com
> ># ErrorLog logs/dummy-host.example.com-error_log
> ># CustomLog logs/dummy-host.example.com-access_log common
> >#</VirtualHost>

>
> > <VirtualHostwww.rug-sales.com:80>

>
> Make that:
>
> <VirtualHost *:80>
>
> (just like the example says).
>
> > DocumentRoot "c:/Websites/rug-sales.com"
> > ServerNamewww.rug-sales.com
> > </VirtualHost>

>
> >any ideas?

>
> Also, don't the first VirtualHost is the default
> virtual host, so if requests forwww.furniture.com
> reach your server, they will be handled by the virtual
> host forwww.rug-sales.com
>
> >thanks for your help!

>
> --
> ( Kees
> )
> c[_] Todays news is tomorrows history. (#379


it worked !!! hooray!!! thank you so much for your help kees!

Mazlaghan
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0