•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Linux Servers and Apache section within the Tech Talk category of DaniWeb, a massive community of 423,873 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,976 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Linux Servers and Apache advertiser: Programming Forums
Views: 97435 | Replies: 3
![]() |
•
•
Join Date: Apr 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I am an Apache/linux newbie. (Trying to learn this technology...)
I setup a Mandrake 10.1 server, and am trying to setup virtual hosting.
I created a user and a www folder. Set the www folder permission to 777.
I created a virtual server as follows:
<VirtualHost *>
DocumentRoot "/home/domain/www"
ServerName *.domain.com
<Directory "/home/domain/www">
allow from all
Options +Indexes
DirectoryIndex index.html index.htm default.htm
</Directory>
</VirtualHost>
I added the DirctoryIndex line, but get the same error with or without that line.
If I try to browse any file including the root site, I get the following error message:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I'm assuming that this is a permission based issue, however I have 777 permissions set, so it should work. Any help would be appreciated!
Thanks!
I setup a Mandrake 10.1 server, and am trying to setup virtual hosting.
I created a user and a www folder. Set the www folder permission to 777.
I created a virtual server as follows:
<VirtualHost *>
DocumentRoot "/home/domain/www"
ServerName *.domain.com
<Directory "/home/domain/www">
allow from all
Options +Indexes
DirectoryIndex index.html index.htm default.htm
</Directory>
</VirtualHost>
I added the DirctoryIndex line, but get the same error with or without that line.
If I try to browse any file including the root site, I get the following error message:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I'm assuming that this is a permission based issue, however I have 777 permissions set, so it should work. Any help would be appreciated!
Thanks!
•
•
Join Date: Apr 2005
Posts: 19
Reputation:
Rep Power: 4
Solved Threads: 0
check your permissions... is /home/domain/www readable by apache? Also, is the server & virtHost name really wild-carded? This may be a problem... I usually specify (e.g. for domains I use locally <VitualHost 127.0.0.1:80> (also match <NameVitualHost 127.0.0.1:80> ) ...blah blah.. ServerName mydom.dom
Also, if you're using symbolic links, you my need that option used here
Also, if you're using symbolic links, you my need that option used here
![]() |
•
•
•
•
•
•
•
•
DaniWeb Linux Servers and Apache Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
•
•
•
•
access apple bbc cellphone code computer core daniweb data debian dell desktop development enterprise fedora games gentoo google gpl hardware ibm install internet kernel laptop linux microsoft mmorpg mobile ms news novell open open source openoffice operating os red hat security server software source sun suse system ubuntu unix vista web windows
- "Forbidden / You don't have permission to access / on this server." error (Linux Servers and Apache)
- 403 Forbidden error (PHP)
- Forbidden | You don't have permission to access /~username on this server. (Linux Servers and Apache)
- HTTP Error 403 - Forbidden error for accessing html and asp page (ASP)
- Google 403 Forbidden error (Search Engine Optimization)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: On execution of perl script, popup asks if i want to save or run this file
- Next Thread: I'm fooling with mod_rewrite...


Linear Mode