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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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! |
|
|||
|
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) |
|
|||
|
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 |