[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Problem in Apache Configuration



Dear Friends.

I am new to Apache and am unsuccesful in configuring Apache. I have a
standalone PC with NO network cards. I tried Linuxconf and got the following
configuration file. Actually I did not add any IP addresses in the begining and
later I did just for trial. Now whenever I try to access localhost thru a web
broewser it gives me the 403 error saying cannot access root ' /'. at
100.100.100.101 (the IP address I gave., but do i have to give an IP address
when i don't use network cards??)

Well I read some book name Apache Survival Guide from the blacksun website but
am still unsuccessful. The book says that you can write ur domain name at
ServerName but the httpd.conf warned me not to use an anonymous name. 

Do I have to configure DNS? I tried that too but no luck.

Please help Thanx for the help extended.

I tried the following URL :
localhost
localhost:80
GoldComp

All gave the same error message

My http.conf looks like this : -
# # httpd.conf -- Apache HTTP server configuration file

ServerType standalone
Port 80
StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxClients 150
MaxRequestsPerChild 100
PidFile /var/run/httpd.pid
Timeout 300
ScoreBoardFile /var/run/httpd.scoreboard
ServerRoot "/etc/httpd"
HostnameLookups on
# Listen 3000
# Listen 12.34.56.78:80

# Some modules which it loads and adds (i hope this was not necessary


ServerAdmin root@localhost
NameVirtualHost 100.100.100.101
ServerName localhost

# ServerName localhost
DocumentRoot "/home/httpd/html"
ErrorLog /var/log/httpd/error_log
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
User nobody
Group nobody
Options ExecCgi
<IfModule mod_mime_magic.c>
    MIMEMagicFile share/magic
</IfModule>

<IfModule mod_php3.c>
  AddType application/x-httpd-php3 .php3
  AddType application/x-httpd-php3-source .phps
</IfModule>

<IfModule mod_php.c>
  AddType application/x-httpd-php .phtml
</IfModule>

<IfModule mod_perl.c>
  Alias /perl/ /home/httpd/perl/
</IfModule>

<Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
</Location>

<Location /doc>
  order deny,allow
  deny from all
  allow from localhost
  Options Indexes FollowSymLinks
</Location>
LockFile /var/lock/httpd.lock
UserDir public_html
DirectoryIndex index.html index.htm index.shtml index.cgi
AccessFileName .htaccess
UseCanonicalName On
TypesConfig /etc/mime.types
DefaultType text/plain
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/httpd/access_log common

ServerSignature On
Alias /icons/ "/home/httpd/icons/"
IndexOptions FancyIndexing


# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^


DefaultIcon /icons/unknown.gif


ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

<Directory />
	Options FollowSymlinks
	AllowOverride AuthConfig FileInfo Indexes Limit Options
    Order allow,deny
    Allow from all
</Directory>

<Directory "/home/httpd/html">
	Options Includes Indexes FollowSymlinks
	AllowOverride AuthConfig FileInfo Indexes Limit Options
    Order allow,deny
    Allow from all
</Directory>

<Files ~>
	AllowOverride AuthConfig FileInfo Indexes Limit Options
    Order allow,deny
    Deny from all
</Files>

<Directory "/home/httpd/icons">
	Options MultiViews Indexes
	AllowOverride AuthConfig FileInfo Indexes Limit Options
    Order allow,deny
    Allow from all
</Directory>

<Directory "/home/httpd/cgi-bin">
	Options ExecCgi
	AllowOverride AuthConfig FileInfo Indexes Limit Options
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost localhost>
	ServerAdmin root@localhost
	NameVirtualHost 100.100.100.101
	ServerName 100.100.100.101
	Options ExecCgi
</VirtualHost>



Sorry for the huge data sent....
-- 
Goldwyn :o)