Results 1 to 7 of 7
guys i have ubuntu 8.10
Server version: Apache/2.2.9 (Ubuntu)
when i invoke localhost esult
404 Not Found
the apache log error says
[Mon Jul 13 17:39:40 2009] [notice] Apache/2.2.9 (Ubuntu) ...
- 07-13-2009 #1Just Joined!
- Join Date
- Aug 2005
- Posts
- 65
apache2 problem
guys i have ubuntu 8.10
Server version: Apache/2.2.9 (Ubuntu)
when i invoke localhost esult
the apache log error says404 Not Found
i have purged apache2 , apache2.2-common and reinstalled but still no success?[Mon Jul 13 17:39:40 2009] [notice] Apache/2.2.9 (Ubuntu) configured -- resuming normal operations
[Mon Jul 13 17:39:56 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
[Mon Jul 13 17:40:33 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
[Mon Jul 13 17:40:33 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
[Mon Jul 13 17:40:34 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
[Mon Jul 13 17:41:16 2009] [error] [client 127.0.0.1] File does not exist: /htdocs
any help ?
- 07-13-2009 #2
make the directory or file htdocs under the server's root
- 07-13-2009 #3Just Joined!
- Join Date
- Aug 2005
- Posts
- 65
yes , that solved , i made a directory at the root htdocs , but now it opens that directory when i make localhost at the browser , what configuration directive which makes it back to /var/www
that is the file /etc/apache2//sites-available/default
i don't have any other hosts
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
- 07-13-2009 #4
open up terminal execute this code
this will tell you what file the htdocs is set in (hopefully)Code:for i in `find /etc/apache2/*` ; do grep -i htdocs $i && echo $i ; done
- 07-13-2009 #5Just Joined!
- Join Date
- Aug 2005
- Posts
- 65
nothing is displayed , i m sorry
- 07-14-2009 #6Just Joined!
- Join Date
- Aug 2005
- Posts
- 65
even teh folder etc has
Code:for i in `find /etc/*` ; do grep -i htdocs $i && echo $i ; done
nothing direct toward through /htdocs , is it something by default in apache2 ?./apparmor.d/abstractions/web-data: /srv/www/htdocs/ r,
./apparmor.d/abstractions/web-data: /srv/www/htdocs/** r,
./ffserver.conf:#File "/usr/local/httpd/htdocs/tlive.rm"
./ffserver.conf:#File "/usr/local/httpd/htdocs/test.asf"
./ffserver.conf:#File "/usr/local/httpd/htdocs/test1.mpg"
./ffserver.conf:#File "/usr/local/httpd/htdocs/test1.mpg"
- 07-14-2009 #7Just Joined!
- Join Date
- Aug 2005
- Posts
- 65
anyway it is solved i just added teh line
it solved it , thx for ur helpDocumentRoot "/var/www"


Reply With Quote