Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

forbidden directory (apache 1.3.29)

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
adpowers
n00b
n00b
Posts: 25
Joined: Tue Jan 14, 2003 8:05 pm
Contact:
Contact adpowers
Website

forbidden directory (apache 1.3.29)

  • Quote

Post by adpowers » Tue Dec 16, 2003 10:36 pm

Hello. I am running Apache 1.3.29. I trasfered, by hand, the virtual hosts from my old computer to this new Gentoo one. However, I have a problem. Whenever I point my browser to the web server, it gives me 403 Forbidden. If I request / or /index.html, it still says forbidden. This is what I get in my server logs:

Code: Select all

[Tue Dec 16 14:33:39 2003] [error] [client 192.168.1.123] (13)Permission denied: access to / failed because search permissions are missing on a component of the path
This happens to anything I try to request. Any help would be greatly apprieciated.

Andrew

PS: Could this be a problem with suEXEC? The Document Root for this virtual server is located in the home folder under www (/home/*/www).
Top
chtof
n00b
n00b
Posts: 62
Joined: Fri Aug 29, 2003 4:50 pm
Location: France

  • Quote

Post by chtof » Tue Dec 16, 2003 11:09 pm

Do you have something like :

Code: Select all

<Directory /home>
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options -Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
    AllowOverride All
#
# Controls who can get stuff from this server.
#
    <IfModule mod_access.c>
      Order allow,deny
      Allow from all
    </IfModule>
</Directory>
in /etc/apache2/conf/commonapache2.conf ?
Top
adpowers
n00b
n00b
Posts: 25
Joined: Tue Jan 14, 2003 8:05 pm
Contact:
Contact adpowers
Website

  • Quote

Post by adpowers » Tue Dec 16, 2003 11:47 pm

Well, I am running Apache1 and this is part of commonapache.conf:

Code: Select all

<Directory /home>

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
    Options Indexes FollowSymLinks MultiViews

#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo", 
# "AuthConfig", and "Limit"
#
    AllowOverride All

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all
</Directory>
It wasn't /home before, it was the another directory, but it still doesn't work. Here is part of the Vhosts config:

Code: Select all

<VirtualHost *>
 DocumentRoot /home/<username>/www/iis
 ServerName microshaft.com
 ServerAlias microshaft.com *.microshaft.com
 DirectoryIndex index.html

 <Directory /home/<username>/www/iis>
  Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews
  AllowOverride None
  Order allow,deny
  Allow from all
 </Directory>
</VirtualHost> 
That virtual host is supposed to match any that don't have a domain specified, so that people just typing in my IP address will be taken to an different web page.

Thanks,
Andrew
Top
adpowers
n00b
n00b
Posts: 25
Joined: Tue Jan 14, 2003 8:05 pm
Contact:
Contact adpowers
Website

  • Quote

Post by adpowers » Wed Dec 17, 2003 4:32 am

Two other things to mention, not sure if they are important. First, I emerged apache as root. Could that be causing problems?

Second, in the config file, I have Apache set to run with user apache and grou p apache. There wasn't originally a user named apache (even though that has been the setting all along), so I created one. Also, I've adding the User and Group command to the virtual domain (with the username of the home directory that hosts the files) with no effect.

Andrew
Top
ixion
l33t
l33t
User avatar
Posts: 708
Joined: Mon Dec 16, 2002 1:53 pm

  • Quote

Post by ixion » Sat Feb 21, 2004 11:51 pm

adpowers wrote: It wasn't /home before, it was the another directory, but it still doesn't work. Here is part of the Vhosts config:

Code: Select all

<VirtualHost *>
 DocumentRoot /home/<username>/www/iis
 ServerName microshaft.com
 ServerAlias microshaft.com *.microshaft.com
 DirectoryIndex index.html

 <Directory /home/<username>/www/iis>
  Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews
  AllowOverride None
  Order allow,deny
  Allow from all
 </Directory>
</VirtualHost> 
That virtual host is supposed to match any that don't have a domain specified, so that people just typing in my IP address will be taken to an different web page.

Thanks,
Andrew

whoot! I had this same problem, but using your above config and adding "NameVirtualHost *" to the beginning of my virtual config file solved it! Thank You! :D :D :D
only the paranoid survive
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic